-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathfunctions.php
31 lines (29 loc) · 1.25 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
<?php
/**
* Cutlass includes
*
* The $cutlass_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.
*/
$cutlass_includes = array(
'inc/blade.php', // Load Laravel's Blade Templating Engine
'inc/utils.php', // Utility functions
'inc/init.php', // Initial theme setup and constants
'inc/config.php', // Configuration
'inc/activation.php', // Theme activation
'inc/titles.php', // Page titles
'inc/wp_bootstrap_navwalker.php', // Bootstrap Nav Walker (From https://github.com/twittem/wp-bootstrap-navwalker)
'inc/gallery.php', // Custom [gallery] modifications
'inc/comments.php', // Custom comments modifications
'inc/scripts.php', // Scripts and stylesheets
'inc/extras.php' // Custom functions
);
foreach ($cutlass_includes as $file) {
if (!$filepath = locate_template($file)) {
trigger_error(sprintf(__('Error locating %s for inclusion', 'cutlass'), $file), E_USER_ERROR);
}
require_once $filepath;
}
unset($file, $filepath);