Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created January 23, 2012 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bastianallgeier/1662410 to your computer and use it in GitHub Desktop.
Save bastianallgeier/1662410 to your computer and use it in GitHub Desktop.
(test: Hello someattr: nice!)
<?php
// add this to your site/plugins folder. Create the folder if it is not there yet.
class kirbytextExtended extends kirbytext {
function __construct($text, $markdown=true) {
parent::__construct($text, $markdown);
$this->addTags('test');
$this->addAttributes('someattr');
}
static function test($params) {
a::show($params);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment