[WordPress] 外掛分享: Lorem Ipsum and Place Holder Image Generator

首頁外掛目錄 › Lorem Ipsum and Place Holder Image Generator
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4865 天前
最後更新
問題解決
WordPress 3.0.1+ v0.2 上架:2012-11-18

內容簡介

我不確定你何時需要使用它,但以下是兩個簡單易用的短碼,可以產生 Lorem Ipsum 和占位圖片。
短碼 [loremipsum] 使用 loripsum.net 的 API。甚至可以輕鬆設置選項。
添加 paragraph 屬性以更改顯示的段落數,length 屬性更改平均長度(短、中、長或非常長),而 options 屬性允許您列出任何其他選項(以‘ / ’分離)。
以下是可用選項的分解:

decorate – 加粗、斜體和標記文本。
link – 添加鏈接。
ul – 添加無序列表。
ol – 添加編號列表。
dl – 添加描述列表。
bq – 添加引用塊。
code – 添加代碼示例。
headers – 添加標題。
allcaps – 使用全大寫字母。
prude – 守禮者版本。
plaintext – 返回純文本,不帶 HTML。

下面是具有某些選項的短碼示例:

[loremipsum paragraph=”3″ length=”long” options=”decorate/link/code”]

這將生成以下內容http://loripsum.net/api/3/long/decorate/link/code

短碼 [placeholder] 將生成來自 placehold.it 的圖像。添加 size 屬性以選擇您的大小
(預設為100×100),fill 和 text 屬性將使用 HEX 顏色。您還可以選擇文件類型(png、jpg、jpeg 或 gif,預設為 gif),以及更改圖像內部的單詞(大小是預設值)。

以下是一個示例:

[placeholder size=”200×200″ fill=”CCCCCC” text=”FFFFFF” words=”Hello WordPress!” type=”png”]

http://placehold.it/200×200/CCCCCC/FFFFFF.png&text=Hello+Wordpress!

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Lorem Ipsum and Place Holder Image Generator」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

I’m not sure when you will ever need to use it but here are two simple to use shortcodes that will generate Lorem Ipsum and a Place Holder image.
The shortcode [loremipsum] uses loripsum.net API. It is easy to set the options as well.
Add the paragraph attribute to change how many paragraphs are displayed, the length attribute changes the average length (short, medium, long or verylong) and the options attribute allows you to list any of the other options (seperated by ‘/’).
Here is the break down of the availible options:

decorate – Add bold, italic and marked text.
link – Add links.
ul – Add unordered lists.
ol – Add numbered lists.
dl – Add description lists.
bq – Add blockquotes.
code – Add code samples.
headers – Add headers.
allcaps – Use ALL CAPS.
prude – Prude version.
plaintext – Return plain text, no HTML.

An example of the shortcode with some of the options:
[loremipsum paragraph=”3″ length=”long” options=”decorate/link/code”]
This will generate this content http://loripsum.net/api/3/long/decorate/link/code
The [placeholder] shortcode will generate an image from placehold.it. Add the size attribute to choose your size
(100×100 is the default), the fill and text attributes will take HEX colors. You can also choose the file type (png, jpg, jpeg or gif, gif is the
default) as well as change the words inside the image (the size is the default).
Here is an example:
[placeholder size=”200×200″ fill=”CCCCCC” text=”FFFFFF” words=”Hello WordPress!” type=”png”]
http://placehold.it/200×200/CCCCCC/FFFFFF.png&text=Hello+Wordpress!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon