[WordPress] 外掛分享: Simple Quotes

首頁外掛目錄 › Simple Quotes
30+
安裝啟用
★★★★★
5/5 分(3 則評價)
4354 天前
最後更新
問題解決
WordPress 3.0+ v2.0 上架:2011-02-21

內容簡介

這是一個簡單的項目,可以在 WordPress 頁面的任何地方顯示隨機引用語錄。實質上,它只是一個自定義文章類型,包括引用語錄和作者。單個函數調用會返回隨機引用語錄,然後您可以在頁面上的任何位置顯示它。

要使用這個外掛,只需在您的網站上使用 WordPress 管理介面添加引用語錄。然後要顯示引用語錄,可以調用 quote_dispaly_random() 函數顯示預設樣式,或使用 quote_random() 函數,將返回一個關聯數組,其中包含內容、作者和日期的訊息。詳細信息請參閱www.jasonernst.com/projects/quotes/。

更新:自版本 1.05 起,還可以使用小工具系統來顯示隨機引用語錄。您可以通過為 “quote” 類創建CSS來設置引用語錄的樣式。

之所以選擇這種格式,是為了在模板中創建最靈活的使用方式。它很容易將它們放置在 div 內或對其進行 CSS 樣式設置。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

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

原文外掛簡介

Just a simple project that prints random quotes anywhere on a wordpress page. Essentially it is just a custom post type that includes the quote and the author. A single function call returns the random quote which can then be displayed wherever you like on your pages.
To use the plugin just add the quotes using the WordPress admin interface on your site. Then to get the quotes to display on the site, call quote_dispaly_random() to display a default styling or the quote_random() function which will return an associative array with both the content, author and date in it. For more details see www.jasonernst.com/projects/quotes/ for more details.
Update: As of version 1.05 it is also possible to use the widget system to display a random quote. You can style the quote by creating css for the “quote” class.
The reason why this format was chosen, was to create the most flexibility for use in a template. It is easy to stick these inside of a div or apply css styling to it.

延伸相關外掛

文章
Filter
Mastodon