Pixel plugin to create placeholder images for Fansoro
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CHANGELOG.md
LICENSE
README.md
pixel.php
pixel.yml

README.md

Pixel

Pixel plugin to create placeholder images for Fansoro

Installation

See this instruction

Usage in page content

Simple usage

![Image]({pixel})

Set width and height

![Image]({pixel width=200 height=200})

Set category name

![Image]({pixel width=200 height=200 category=city})

Set gray filter

![Image]({pixel width=200 height=200 category=city gray=true})

Set text

![Image]({pixel width=200 height=200 category=city gray=true text='Pixel'})

Usage in template

<img src="{pixel(['width' => 200, 'height' => 200, 'category' => 'city', 'gray' => 'true', 'text' => "Pixel"])}" alt="">

Options

name value description
enabled true or false to disable the plugin
width 300 Image width
height 200 Image height
category sports Image category (abstract, animals, business, cats, city, food, night, life, fashion, people, nature, sports, technics, transport)
text '' Image text

License

See LICENSE