Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Dice display for Raspberry Pi + PaPiRus Zero 1.2
# V1.2
# By Joachim Robert
# http://github.com/joachimesque
# Shared under the WTFPL - Do What the Fuck You Want to Public License
#
@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');
}