-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
49 lines (44 loc) · 1.38 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Gotta Blast!
*
* WARNING: This file is should not be modified under any circumstances.
* Customizations should be made in the form of a core-functionality
* plugin so that the theme can be updated without losing changes.
*
* @package NeutronCreative\GottaBlast
* @link https://neutroncreative.com/gotta-blast
* @author Neutron Creative Inc
* @copyright Copyright © 2018 Neutron Creative Inc
* @license GPL-3.0-or-later
*/
namespace NeutronCreative\GottaBlast;
use SeoThemes\Core\Theme;
add_action( 'genesis_setup', __NAMESPACE__ . '\\child_theme_setup', 15 );
/**
* Child theme setup.
*
* Hooking to `genesis_setup` means we don't have to "start the engine"
* by requiring the Genesis `lib/init.php` file, and it provides us
* with access to all of Genesis functions once it's been loaded.
*
* @since 3.2.0
*
* @return void
*/
function child_theme_setup() {
$vendor = require_once __DIR__ . '/vendor/autoload.php';
$config = require_once __DIR__ . '/config/defaults.php';
/**
* Set up child theme using seothemes/core.
*
* Passes all of the theme configuration over to the core, which is responsible
* for instantiating the components and injecting the correct configuration.
* Custom components can be created and loaded from the `app/` directory.
*
* @link https://github.com/seothemes/core
*
* @since 3.2.0
*/
Theme::setup( $config );
}