Skip to content

benplum/Nano-Placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Nano-Placeholder

Pico Plugin for handling placeholder images.

Installation

Start by moving the plugins/nano_placeholder.php file into your existing Pico install. Then define the placeholder attributes in the configuration array. You can override the default attributes or define custom styles.

Configuration

$config["nano_placeholder"] = array(
	"default" => array(
		"background_color" => "CCCCCC",
		"text_color" => "666666",
		"image" => false,
		"text" => false
	),
	"custom" => array(
		"background_color" => "222222",
		"text_color" => "666666",
		"image" => false,
		"text" => "Placeholder"
	)
);

Usage

You can then start requesting placeholder images:

http://site.com/placeholder/300x300

http://site.com/placeholder/custom/300x300

About

Pico Plugin for handling placeholder images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages