Rename to Sage

This commit is contained in:
Ben Word
2015-01-09 20:48:11 -06:00
parent eaf4d7b73b
commit 030c084134
29 changed files with 198 additions and 201 deletions

View File

@@ -1,11 +1,11 @@
<?php
/**
* Roots initial setup and constants
* Sage initial setup and constants
*/
function roots_setup() {
function sage_setup() {
// Make theme available for translation
// Community translations can be found at https://github.com/roots/roots-translations
load_theme_textdomain('roots', get_template_directory() . '/lang');
// Community translations can be found at https://github.com/roots/sage-translations
load_theme_textdomain('sage', get_template_directory() . '/lang');
// Enable plugins to manage the document title
// http://codex.wordpress.org/Function_Reference/add_theme_support#Title_Tag
@@ -14,7 +14,7 @@ function roots_setup() {
// Register wp_nav_menu() menus
// http://codex.wordpress.org/Function_Reference/register_nav_menus
register_nav_menus(array(
'primary_navigation' => __('Primary Navigation', 'roots')
'primary_navigation' => __('Primary Navigation', 'sage')
));
// Add post thumbnails
@@ -34,14 +34,14 @@ function roots_setup() {
// Tell the TinyMCE editor to use a custom stylesheet
add_editor_style('/dist/css/editor-style.css');
}
add_action('after_setup_theme', 'roots_setup');
add_action('after_setup_theme', 'sage_setup');
/**
* Register sidebars
*/
function roots_widgets_init() {
function sage_widgets_init() {
register_sidebar(array(
'name' => __('Primary', 'roots'),
'name' => __('Primary', 'sage'),
'id' => 'sidebar-primary',
'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>',
@@ -50,7 +50,7 @@ function roots_widgets_init() {
));
register_sidebar(array(
'name' => __('Footer', 'roots'),
'name' => __('Footer', 'sage'),
'id' => 'sidebar-footer',
'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>',
@@ -58,4 +58,4 @@ function roots_widgets_init() {
'after_title' => '</h3>',
));
}
add_action('widgets_init', 'roots_widgets_init');
add_action('widgets_init', 'sage_widgets_init');