1. Go to this page and download the library: Download parisek/timber-kit 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/ */
parisek / timber-kit example snippets
function timber_block_render_callback( ...$args ): void {
\Parisek\TimberKit\BlockRenderer::render( ...$args );
}
use Parisek\TimberKit\StarterBase;
use Parisek\TimberKit\Helpers;
class Base extends StarterBase {
public function __construct() {
$this->menus = [
'main-menu' => 'Main Menu',
'footer-menu' => 'Footer Menu',
];
$this->font_stylesheets = [
'poppins' => 'fonts/poppins/stylesheet.css',
];
$this->disable_search = false;
parent::__construct();
}
}