forked from ardyheijnekamp/wbb-starter-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
48 lines (38 loc) · 2.23 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
<?php if ( ! defined ( 'WPINC' ) )
{
header ( 'HTTP/1.0 404 Not Found' , TRUE , 404 );
die( "404 Not Found" );
}
// IMPORTANT : KEEP THIS FILE CLEAN AS YOU CAN ....
/*
| ----------------------------------------------------------------------------------------------------------------------
| Required by WordPress.
| ----------------------------------------------------------------------------------------------------------------------
| Keep this file clean and only use it for requires.
|
*/
if ( ! defined ( '__DIR__' ) )
{
define( '__DIR__' , dirname ( __FILE__ ) );
}
/**********************************************************************************************************************
* Load system helpers ..
*********************************************************************************************************************/
require_once locate_template ( 'system/WBB-Core/WBB-System-helpers.php' );
/**********************************************************************************************************************
* Load Theme Configuration
*********************************************************************************************************************/
require_once locate_template ( 'config/theme-config.php' );
/**********************************************************************************************************************
* Load Theme Scripts
*********************************************************************************************************************/
require_once locate_template ( 'config/theme-scripts.php' );
/**********************************************************************************************************************
* Load Theme Settings
*********************************************************************************************************************/
require_once locate_template ( 'system/WBB-Core/WBB-System-settings.php' );
/**********************************************************************************************************************
* Load Theme Core Functions
*********************************************************************************************************************/
require_once locate_template ( 'system/WBB-Core/WBB-System-Core.php' );
WBB_System_Core::init ();