-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
36 lines (30 loc) · 921 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Theme functions file.
*
* This file is used to bootstrap the theme.
*
* @package Forsite
* @author Marty Helmick <info@martyhelmick.com>
* @copyright 2018 Marty Helmick
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0-or-later
* @link https://github.com/m-e-h/forsite
*/
// Bootstrap the theme.
require_once( get_parent_theme_file_path( 'app/bootstrap-autoload.php' ) );
// Create a new application.
$forsite = new \Hybrid\Core\Application();
// Register service providers with the application.
$forsite->provider( \Forsite\Customize\Provider::class );
// Creates an action hook for child themes (or plugins).
// Passes application instance to the action callback.
do_action( 'forsite/bootstrap', $forsite );
// Bootstrap the application.
$forsite->boot();
// Move views/ to a top level folder.
add_filter(
'hybrid/template/path',
function( $path ) {
return;
}
);