Close #992 - Move some Roots features into Soil

This commit is contained in:
Ben Word
2014-03-11 23:34:17 -05:00
parent 6d8b82a7e5
commit dede0bd851
10 changed files with 42 additions and 457 deletions

View File

@@ -23,3 +23,27 @@ function roots_setup() {
add_editor_style('/assets/css/editor-style.css');
}
add_action('after_setup_theme', 'roots_setup');
/**
* Register sidebars
*/
function roots_widgets_init() {
register_sidebar(array(
'name' => __('Primary', 'roots'),
'id' => 'sidebar-primary',
'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => __('Footer', 'roots'),
'id' => 'sidebar-footer',
'before_widget' => '<section class="widget %1$s %2$s">',
'after_widget' => '</section>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}
add_action('widgets_init', 'roots_widgets_init');