PHP code example of lemmon / kirby-callouts
1. Go to this page and download the library: Download lemmon/kirby-callouts library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lemmon / kirby-callouts example snippets
<?= css($kirby->plugin('lemmon/callouts')->asset('callouts-github.css')->url())
return [
'lemmon.callouts.classPrefix' => 'callout',
'lemmon.callouts.renderHeader' => true,
'lemmon.callouts.icons' => [
// Provide inline SVG (using currentColor keeps it in sync with theme accents)
'tip' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M12 2c4.418 0 8 3.477 8 7.77 0 2.616-1.424 4.98-3.566 6.249-.662.393-1.062 1.112-1.062 1.885V18H8.628v-.096c0-.773-.4-1.492-1.062-1.885C5.424 14.75 4 12.386 4 9.77 4 5.477 7.582 2 12 2Z"/></svg>',
'default' => '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 2.5-3 5"/><circle cx="12" cy="19" r="0.5"/></svg>',
],
'lemmon.callouts.wrapper' => 'div', // 'div' or 'blockquote'
];