內容簡介
需求
WordPress 2.2+,或 2.0.x/2.1.x 搭配 WordPress Widgets
PHP 4.3.0 或更高版本(需要 function file_get_contents)
您的 Google Reader 使用者 ID
功能
顯示您在 Google Reader 上最新分享的文章
完全可自訂的顯示
大流量網站的快取
使用者 ID
為了取得您的分享文章,您需要知道您在 Google Reader 上的使用者 ID。這可以透過前往「已分享的文章」連結,複製連結結尾的 20 位數字找到。
例如:
http://www.google.com/reader/shared/02774557510273097991
其中,02774557510273097991 就是我的使用者 ID。
格式化
顯示輸出需要 3 個部分的格式。
第一部分在管理面板中稱為「items start」,是小工具標題後的第一個部分。預設格式只有 <ul>。
第二部分是「items end」,是小工具的結尾部分。預設格式為:
</ul>
<a href=”%googlereader%” style=”float:right;”>Shared Items</a>
第三部分是每個文章的呼叫。預設格式為:
<li style=”list-style-type: none;”><a href=”%link%”>%title%</a></li>
呼叫每個值的前提是:
開始
文章
文章
…
文章
結尾
文章的格式化包含:
%link% – 文章連結
%title% – 文章標題
%site% – 文章來源的網站標題
%sitelink% – 文章來源的網站連結
%number% – 目前文章的編號
%comment% – 分享文章時的註解(注意事項)
開始和結尾的格式化包含:
%googlereader% – 指向您在 Google Reader 上分享內容的頁面連結
%count% – 顯示文章數量
外掛標籤
開發者團隊
原文外掛簡介
Requirements
WordPress 2.2+ or 2.0.x/2.1.x with WordPress Widgets
PHP 4.3.0 or greater (needed for function file_get_contents)
Your Google Reader User ID
Features
Displays your latest shared items from Google Reader
Completely customizable display
Caching for large traffic sites
User ID
In order to get your shares, you need to know your user id according to Google Reader. This can be found by going to the ‘Shared Items’ link, and copying the 20 digit number at the end of your shared items link.
So something like:
http://www.google.com/reader/shared/02774557510273097991
Where 02774557510273097991 would be my user id.
Formatting
There are 3 parts needed to format the output.
The first part, called items start in the admin panel, is the first part of the widget after the title. For the default formatting, this is just
- .
The second part, called items end, is the ending of the widget. By default, this is:
Shared Items
The third part is what is called for each item. By default, this is:
The premise of calling each value is this:
start
item
item
…
item
end
The formatting for items is:
%link% – Link to the item
%title% – Title of the item
%site% – The title of the site the item is from
%sitelink% – The link to the site the item is from
%number% – The number of the current item
%comment% – The comment (note) made when sharing an item
The formatting for start and end is:
%googlereader% – Link to your Google Reader shared page
%count% – Number of items shown
