-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
35 lines (29 loc) · 951 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
<?php
/**
* Genese files includes
*
* The $includes array determines the code library included in your theme.
* Add or remove files to the array as needed. Supports child theme overrides.
*
* Please note that missing files will produce a fatal error.
*
* @package WordPress
* @subpackage Genese
* @since 1.0
* @author Mystro Ken <[email protected]>
*/
$includes = array(
'app/inc/class-genese-wrapping.php', // Theme wrapper class.
'app/inc/helpers.php', // Helper functions.
'app/inc/setup.php', // Theme setup.
'app/inc/template-tags.php', // Custom template tags functions.
);
foreach ( $includes as $file ) {
$filepath = locate_template( $file );
if ( ! $filepath ) {
/* translators: %s: Failed included file. */
trigger_error( sprintf( esc_html_x( 'Error locating %s for inclusion', 'genese' ), $file ), E_USER_ERROR );
}
require_once $filepath;
}
unset( $file, $filepath );