[WordPress] 外掛分享: Single Post Widget

首頁外掛目錄 › Single Post Widget
WordPress 外掛 Single Post Widget 的封面圖片
200+
安裝啟用
尚無評分
4791 天前
最後更新
問題解決
WordPress 3.2+ v0.4.0 上架:2011-10-04

內容簡介

此外掛可在側邊欄小工具上顯示從 URL 讀取的單篇文章。

此外掛於 GitHub 上維護。

部分功能:

在側邊欄小工具上顯示從 URL 讀取的單篇文章。
可自訂 HTML 輸出。
在自己的外掛中可自訂預設 HTML 模板。

filter hooks 範例

預設模板過濾器。

<?php
add_filter("single-post-widget-template", "my_template");
function my_template($template) {
return '<div class="%class%"><a href="%post_url%">%post_thumb%</a></div>';
}
?>

樣式表 URI 過濾器。

<?php
add_filter("single-post-widget-stylesheet", "my_style");
function my_style($url) {
return 'http://example.com/path/to/style.css';
}
?>

翻譯人員

日文(ja) - Takayuki Miyauchi

聯絡方式:

http://wpist.me/ (英文)
http://firegoby.jp/ (日文)
Twitter:@miya0001
https://github.com/miya0001/single-post-widget

貢獻者

Takayuki Miyauchi

感謝

此外掛的操作與支援並不提供任何保證,但使用者可以自由免費使用此外掛來達成其目的。

聯繫方式

Twitter:@miya0001

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4.0) 或搜尋安裝

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

原文外掛簡介

Display single post from url on sidebar widget.
This plugin maintained on GitHub.
Some features:

Display single post from url on sidebar widget.
You can customize HTML output.
You can customize default HTML template on your plugin.

filter hooks example
Filter for default template.
%post_thumb%

';
}
?>

Filter for stylesheet URI.

Translators

Japanese(ja) – Takayuki Miyauchi

Please contact to me.

http://wpist.me/ (en)
http://firegoby.jp/ (ja)
@miya0001 on twitter.
https://github.com/miya0001/single-post-widget

Contributors

Takayuki Miyauchi

Credits
This plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plug-in use are not done at all beforehand.
Contact
twitter @miya0001

延伸相關外掛

文章
Filter
Apply Filters
Mastodon