このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

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!

インストール

  1. Upload ag_lorem to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the [loremipsum] shortcode in a post or page to generate Lorem Ipsum.
  4. Use the [placeholder] shortcode in a post or page to generate a Place Holder Image.

FAQ

Have a question or request?

Awesome! Submit it via the “Support” tab and I’ll be sure to answer you.

評価

このプラグインにはレビューがありません。

貢献者と開発者

Lorem Ipsum and Place Holder Image Generator はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Lorem Ipsum and Place Holder Image Generator” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

0.2

Updated the placeholder shortcode to allow for text and file types

0.1

The first release. Tested and works.