-
Notifications
You must be signed in to change notification settings - Fork 3
/
functions.php
33 lines (31 loc) · 1.04 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
<?php
/**
* Theme functions file.
*
* This file is used to bootstrap the theme.
*
* @package Luxe
* @author Brett Mason <[email protected]>
* @copyright Copyright (c) 2018, Brett Mason
* @link https://github.com/brettsmason/luxe
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
/**
* Compatibility check.
*
* Check that the site meets the minimum requirements for the theme before
* proceeding if this is a theme for public release. If building for a client
* that meets these requirements, this code is unnecessary.
*/
if ( version_compare( $GLOBALS['wp_version'], '5.2', '<' ) || version_compare( PHP_VERSION, '5.6', '<' ) ) {
require_once get_parent_theme_file_path( 'bootstrap/compat.php' );
return;
}
/**
* Bootstrap the theme.
*
* Load the bootstrap files. Note that autoloading should happen first so that
* any classes/functions are available that we might need.
*/
require_once get_parent_theme_file_path( 'bootstrap/autoload.php' );
require_once get_parent_theme_file_path( 'bootstrap/app.php' );