31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Roots includes
|
|
*/
|
|
$roots_includes = array(
|
|
'/lib/utils.php', // Utility functions
|
|
'/lib/init.php', // Initial theme setup and constants
|
|
'/lib/wrapper.php', // Theme wrapper class
|
|
'/lib/sidebar.php', // Sidebar class
|
|
'/lib/config.php', // Configuration
|
|
'/lib/activation.php', // Theme activation
|
|
'/lib/titles.php', // Page titles
|
|
'/lib/cleanup.php', // Cleanup
|
|
'/lib/nav.php', // Custom nav modifications
|
|
'/lib/gallery.php', // Custom [gallery] modifications
|
|
'/lib/comments.php', // Custom comments modifications
|
|
'/lib/relative-urls.php', // Root relative URLs
|
|
'/lib/widgets.php', // Sidebars and widgets
|
|
'/lib/scripts.php', // Scripts and stylesheets
|
|
'/lib/custom.php', // Custom functions
|
|
);
|
|
|
|
foreach($roots_includes as $file){
|
|
if(!$filepath = locate_template($file)) {
|
|
trigger_error("Error locating `$file` for inclusion!", E_USER_ERROR);
|
|
}
|
|
|
|
require_once $filepath;
|
|
}
|
|
unset($file, $filepath);
|