PHP code example of presprog / kirby-block-loader
1. Go to this page and download the library: Download presprog/kirby-block-loader 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/ */
presprog / kirby-block-loader example snippets
// Have everything nicely grouped together. Let our plugin do the heavy lifting.
📂 site
📂 blocks
📂 call-to-action
📄 call-to-action.yml // Block blueprint
📄 call-to-action.php // Block snippet
// […]
'blueprints' => [
'blocks/call-to-action' => 'site/blocks/call-to-action/call-to-action.yml',
],
'snippets' => [
'blocks/call-to-action' => 'site/blocks/call-to-action/call-to-action.php',
],
// […]