Files
sage/functions.php
Scott Walkinshaw ba56e0fa4d Re-organize theme configuration and setup
functions.php should not contain any Roots specific code. It's just used
to require files and bootstrap Roots. lib/init.php now handles initial
theme setup and defines helper constants which did not belong in
lib/config.php.

config.php should be limited to strictly configuration settings.
2012-09-21 16:20:03 -04:00

19 lines
993 B
PHP

<?php
/**
* Required by WordPress.
*
* Keep this file clean and only use it for requires.
*/
require_once locate_template('/lib/init.php'); // Initial theme setup and constants
require_once locate_template('/lib/utils.php'); // Utility functions
require_once locate_template('/lib/config.php'); // Configuration
require_once locate_template('/lib/activation.php'); // Theme activation
require_once locate_template('/lib/cleanup.php'); // Cleanup
require_once locate_template('/lib/htaccess.php'); // Rewrites for assets, H5BP .htaccess
require_once locate_template('/lib/widgets.php'); // Sidebars and widgets
require_once locate_template('/lib/scripts.php'); // Scripts and stylesheets
require_once locate_template('/lib/post-types.php'); // Custom post types
require_once locate_template('/lib/metaboxes.php'); // Custom metaboxes
require_once locate_template('/lib/custom.php'); // Custom functions