Quick and flexible placeholders, created right in browser.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
php
.gitignore
composer.json
composer.lock
holder.php
readme.md

readme.md

Holder image placeholders for WordPress

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.