PHP code example of mcaskill / sage-theme-wrapper
1. Go to this page and download the library: Download mcaskill/sage-theme-wrapper 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/ */
mcaskill / sage-theme-wrapper example snippets
add_filter('template_
use Roots\Sage\Wrapper as W;
add_filter('template_tring($main)) {
return $main;
}
W::$main_template = $main;
W::$base = basename(W::$main_template, '.php');
if (W::$base === 'index') {
W::$base = false;
}
return new W('layouts/base.php');
}, 109);