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.
This commit is contained in:
Scott Walkinshaw
2012-09-21 16:20:03 -04:00
parent b2c340da05
commit ba56e0fa4d
6 changed files with 60 additions and 43 deletions

View File

@@ -15,7 +15,5 @@ Roots is a starting WordPress theme made for developers thats based on [HTML5
## Development
* [Contributing to Roots](/retlehs/roots/blob/master/CONTRIBUTING.md) — Guidelines on how to
contribute effectively.
* [Extending and customizing Roots](extend.md) — Going further with
Roots.
* [Contributing to Roots](/retlehs/roots/blob/master/CONTRIBUTING.md) — Guidelines on how to contribute effectively.
* [Extending and customizing Roots](extend.md) — Going further with Roots.

View File

@@ -51,6 +51,10 @@ This file contains HTML5 Boilerplate's `.htaccess` which is automatically added
This file handles the clean URL rewrites and HTML5 Boilerplate `.htaccess`. [About the rewrites](rewrites.md).
### init.php
This file runs the initial theme setup and defines helper constants for later use
### metaboxes.php
This file is a placeholder for you to put in custom metaboxes. We recommend the use of [Custom Metaboxes and Fields for WordPress](https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress).