Skip to content

Instantly share code, notes, and snippets.

@joachimesque
joachimesque / kirbytext.extended.php
Created November 12, 2012 11:07
adding a more complete image link kirbytext tag by extending the functionalities (requires the thumbs plugin to work)
function __construct($text, $markdown=true) {
parent::__construct($text, $markdown);
// define custom tags
$this->addTags('imglink');
$this->addAttributes('legend', 'crop', 'quality', 'rel', 'class', 'size');
}