rarst/holder

Quick and flexible placeholders, created right in browser.

Installs: 5

Dependents: 0

Stars: 2

Watchers: 2

Language: PHP

2.0 2014-03-20 17:15 UTC

README

This is WordPress plugin for convenient use of holder.js library by Ivan Malopinsky.

Holder generates customizable placeholder images right in browser, using JavaScript. You can use it both in templates (via template tag) and content (via shortcode).

Example usage:

holder( array( 'height' => '50', 'width' => '50', 'theme' => 'industrial' ) );
Image [holder height="50" width="100" text="thumbnail"] in content
holder_add_theme( 'wordpress', 'd54e21', '464646' );

Installation

Plugin is a Composer package and can be installed via:

composer create-project rarst/holder --no-dev

Changelog

2.0

  • Composer package and autoload
  • class renamed and namespaced
  • general cleanup and rewrite

1.1

  • (dependency update) holder.js v1.8
  • (enhancement) implemented font argument for font family of text

1.0.2

  • (docs) added Ivan Malopinsky account to contributors
  • (enhancement) added default text support for custom themes

1.0.1

  • (docs) fixed wrong function name in examples

1.0

  • Initial public release.