This extension for Kirbytext will make it possible to use
(codepen: http://codepen.io/CBeghin/pen/HeuiF)
Put kirbytext.extended.php
in your site/plugins
folder (or edit it)
In your content text files you can now use the new codepen tag:
(codepen: http://codepen.io/CBeghin/pen/HeuiF)
(codepen: codepen_path height: xxx type: xxx)
Feel free to change the $defaults
array in kirbytext.extended.php
to add the values which fit best to your project.
// customize this:
$defaults = array(
'height' => '300',
'type' => 'result'
);
Those defaults will make it possible to use the codepen tag without specifying all the attributes.
Amazing! Great work and thanks for sharing. ♥