diff --git a/CHANGELOG.md b/CHANGELOG.md index 628b330..9f28fdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ### HEAD +* Re-organize configuration/setup files * Update to jQuery 1.8.2 * Refactor/simplify Roots vCard Widget * Move custom entry_meta code into template diff --git a/doc/README.md b/doc/README.md index b38cce1..4760dc2 100755 --- a/doc/README.md +++ b/doc/README.md @@ -15,7 +15,5 @@ Roots is a starting WordPress theme made for developers that’s 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. \ No newline at end of file +* [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. diff --git a/doc/lib.md b/doc/lib.md index 73014aa..b173127 100644 --- a/doc/lib.md +++ b/doc/lib.md @@ -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). diff --git a/functions.php b/functions.php index 16a8c6b..9a685c9 100644 --- a/functions.php +++ b/functions.php @@ -1,12 +1,13 @@ __('Primary Navigation', 'roots'), - )); - - // Add post thumbnails (http://codex.wordpress.org/Post_Thumbnails) - add_theme_support('post-thumbnails'); - // set_post_thumbnail_size(150, 150, false); - // add_image_size('category-thumb', 300, 9999); // 300px wide (and unlimited height) - - // Add post formats (http://codex.wordpress.org/Post_Formats) - // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); - - // Tell the TinyMCE editor to use a custom stylesheet - add_editor_style('assets/css/editor-style.css'); - -} - -add_action('after_setup_theme', 'roots_setup'); diff --git a/lib/config.php b/lib/config.php index e3a657b..6dead0d 100644 --- a/lib/config.php +++ b/lib/config.php @@ -1,7 +1,9 @@ __('Primary Navigation', 'roots'), + )); + + // Add post thumbnails (http://codex.wordpress.org/Post_Thumbnails) + add_theme_support('post-thumbnails'); + // set_post_thumbnail_size(150, 150, false); + // add_image_size('category-thumb', 300, 9999); // 300px wide (and unlimited height) + + // Add post formats (http://codex.wordpress.org/Post_Formats) + // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); + + // Tell the TinyMCE editor to use a custom stylesheet + add_editor_style('assets/css/editor-style.css'); + +} + +add_action('after_setup_theme', 'roots_setup');