內容簡介
Blog Summary 是一個WordPress外掛程式,可以使用簡碼 [blog-summary] 在任何文章或頁面上產生一個內含摘要、日期和評論連結的語義化hAtom最新文章列表。可用的簡碼屬性可自定義輸出,並指定顯示文章數。
當使用 Sandbox(或基於Sandbox的主題)時,Blog Summary是在靜態頁面上展示最新的部落格文章最簡單的方法,標記了hAtom微格式,並利用了語義化的Class函數。
Blog Summary 適用於WordPress 2.6.x並擁有以下特點:
可在不編輯任何檔案的情況下使用簡碼功能
進階簡碼屬性解析,容易自由設定
使用hAtom微格式的高度語義化XHTML
整合Sandbox(或Sandbox-based)類別產生函數
使用方法
啟用此外掛後,在您想顯示最新文章列表的任何位置使用簡碼 [blog-summary],並使用以下可選屬性來自定義輸出:
count – 顯示最近文章的數目。預設為5。
grouptag – 將所有最近的文章組成HTML元素包裹起來。預設為 ol。
entrytag – 將每篇文章組成HTML元素包裹起來。預設為 li。
titletag – 將每篇文章標題組成HTML元素包裹起來。預設為 h4。
datetag – 將每篇文章日期時間組成HTML元素包裹起來。預設為 span。
commentstag – 將每篇文章評論連結組成HTML元素包裹起來。預設為 span。
summarytag – 將每篇文章摘要組成HTML元素包裹起來。預設為 div。
您可以指定所有或某些屬性。屬性是可選的,而且可以按任意順序給出。
[blog-summary count="3" titletag="h2" datetag="p" commentstag="div"]
如此類推。這是一個非常簡單的外掛。
授權
Blog Summary 是一個 WordPress 的外掛程式,©2008年由Scott Allan Wallick開發並遵從 GNU通用公共許可證授權。
Blog Summary是自由軟體:您可以重新分發或修改它,並依據自由軟體基金會發行的GNU通用公共許可證,進行重新發行或修改,無論是本授權條款的第三版或任何更高版本。
Blog Summary希望自己對您有所幫助,但沒有任何保證;甚至沒有任何明示或暗示的擔保商業適售性或特定用途的適用性。有關更多詳細信息,請參閱GNU通用公共許可證。
您應當已經收到了這個Blog Summary的GNU通用公共許可證的副本。如果沒有,請參閱http://www.gnu.org/licenses/
外掛標籤
開發者團隊
原文外掛簡介
Blog Summary produces a semantic, hAtom-enabled list of latest blog entries with excerpts, dates, and comments links that is generated with the shortcode [blog-summary] on any post or page. Shortcode attributes are available to customize the output as well as specify number of entries to show.
Blog Summary is the easiest way to show the latest blog entries on a static page, marked up in the hAtom microformat and utilizing the semantic class funtions when the Sandbox (or Sandbox-based) theme is active.
Blog Summary is for WordPress 2.6.x and features:
Out-of-the-box function using shortcode without editing any files
Advanced shortcode attribute parsing for easy and complete customization
Highly semantic XHTML in the hAtom microformat
Integration with Sandbox (or Sandbox-based) class-generating functions
Use
After activating this plugin, simply use the shortcode [blog-summary] wherever you want a list of recent entries. The following optional attributes are parsed by this shortcode to customize the output:
count – Number of recent entries to show. Default is 5.
grouptag – HTML element to wrap all recent entries. Default is ol.
entrytag – HTML element to wrap each entry. Default is li.
titletag – HTML element to wrap each entry title. Default is h4.
datetag – HTML element to wrap each entry date. Default is span.
commentstag – HTML element to wrap each entry comments link. Default is span.
summarytag – HTML element to wrap each entry summary. Default is div.
You may specify all or some of the attributes above. Attributes are optional and can be given in any order.
[blog-summary count="3" titletag="h2" datetag="p" commentstag="div"]
And so on. A very simple plugin.
License
Blog Summary, a plugin for WordPress, (C) 2008 by Scott Allan Wallick, is licensed under the GNU General Public License.
Blog Summary is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Blog Summary is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Blog Summary. If not, see http://www.gnu.org/licenses/.
