- just copy the folder
shortcode
to /site/plugins in Kirby. - add custom shortcode values to
/site/plugins/shortcode/config.php
if you are using Font Awesome or similar you can come up with this:
c::set('kirbytext.shortcodes', array(
':threema:' => '<span class="fa-stack fa-lg fa-fw"><i class="fa fa-comment-o fa-stack-2x"></i><i class="fa fa-lock fa-stack-1x"></i></span>',
':email:' => '<i class="fa fa-envelope fa-2x fa-fw"></i>',
':twitter:' => '<i class="fa fa-twitter"></i>',
));
Just use the individual shortcodes you create and Kirby will replace them with the code defined in config.php in any text that is processed with kirbytext();
based on http://getkirby.com/docs/advanced/kirbytext#kirbytext-filters by https://github.com/bastianallgeier / https://github.com/getkirby