Skip to content

Instantly share code, notes, and snippets.

@fanningert
fanningert / tags_code.php
Last active August 7, 2016 18:00
Code KirbyText tag for Kirby CMS
<?php
/**
* This KirbyText is for display the code of an file as a code block.
*
* Install
* =======
* Move this file to /site/tags/ and rename it code.php
*
* @author: Thomas Fanninger <thomas@fanninger.at>
@fanningert
fanningert / tags_image.php
Last active August 29, 2015 14:12
Extended version of the original KirbyText image function.
<?php
/**
* Move this file to /site/tags/ and rename it image.php
*/
/**
* @param array['width'] Width in pixel of the image. When crop/resize active, this is the new image width. Default: null
* @param array['height'] Height in pixel of the image. When crop/resize active, this is the new image height. Default: null
* @param array['alt']
@fanningert
fanningert / snippets_video.php
Last active August 29, 2015 14:12
HTML5 video tag for Kirby CMS
<?php
/**
*
* Install
* =======
* Move this file to /site/snippets/ and rename it video.php
*
* @author: Thomas Fanninger <thomas@fanninger.at>
* @version: 0.3
@fanningert
fanningert / snippets_audio.php
Last active March 26, 2018 12:08
HTML5 audio tag for Kirby CMS
<?php
/**
*
* Install
* =======
* Move this file to /site/snippets/ and rename it audio.php
*
* @author: Thomas Fanninger <thomas@fanninger.at>
* @version: 0.3