Move rewrites to a plugin, Roots 6.5.1

This commit is contained in:
Ben Word
2013-11-05 14:54:09 -06:00
parent 8575130b02
commit f8bc0ca80b
11 changed files with 10 additions and 84 deletions

View File

@@ -3,7 +3,6 @@
* Enable theme features
*/
add_theme_support('root-relative-urls'); // Enable relative URLs
add_theme_support('rewrites'); // Enable URL rewrites
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's top navbar
add_theme_support('bootstrap-gallery'); // Enable Bootstrap's thumbnails component on [gallery]
add_theme_support('nice-search'); // Enable /?s= to /search/ redirect
@@ -78,13 +77,3 @@ function roots_display_sidebar() {
* Default: 1140px is the default Bootstrap container width.
*/
if (!isset($content_width)) { $content_width = 1140; }
/**
* Define helper constants
*/
$get_theme_name = explode('/themes/', get_template_directory());
define('RELATIVE_PLUGIN_PATH', str_replace(home_url() . '/', '', plugins_url()));
define('RELATIVE_CONTENT_PATH', str_replace(home_url() . '/', '', content_url()));
define('THEME_NAME', next($get_theme_name));
define('THEME_PATH', RELATIVE_CONTENT_PATH . '/themes/' . THEME_NAME);