Remove all frameworks except Bootstrap (#251)
- Remove all frameworks except Bootstrap - Remove roots-options.php and replace with a more simple roots-config.php - Include all Bootstrap Javascript plugins by default in js/plugins.js - Use Bootstrap Responsive and Topbar navigation by default - Use Bootstrap markup on forms, page titles, image galleries, alerts and errors, post and comment navigation - Remove Roots styles from style.css and introduce app.css for site-specific CSS. Remove almost all previous default Roots styles. - Add latest updates from H5BP project
This commit is contained in:
@@ -37,7 +37,7 @@ function roots_theme_activation_options_add_page() {
|
||||
);
|
||||
} else {
|
||||
if (is_admin() && isset($_GET['page']) && $_GET['page'] === 'theme_activation_options') {
|
||||
wp_redirect(admin_url('themes.php?page=theme_options'));
|
||||
wp_redirect(admin_url('themes.php'));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
@@ -121,15 +121,15 @@ function roots_theme_activation_options_render_page() { ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top"><th scope="row"><?php _e('Create navigation menus?', 'roots'); ?></th>
|
||||
<tr valign="top"><th scope="row"><?php _e('Create navigation menu?', 'roots'); ?></th>
|
||||
<td>
|
||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Create navigation menus?', 'roots'); ?></span></legend>
|
||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Create navigation menu?', 'roots'); ?></span></legend>
|
||||
<select name="roots_theme_activation_options[create_navigation_menus]" id="create_navigation_menus">
|
||||
<option selected="selected" value="yes"><?php echo _e('Yes', 'roots'); ?></option>
|
||||
<option value="no"><?php echo _e('No', 'roots'); ?></option>
|
||||
</select>
|
||||
<br />
|
||||
<small class="description"><?php printf(__('Create the Primary and Utility Navigation menus and set their locations', 'roots')); ?></small>
|
||||
<small class="description"><?php printf(__('Create the Primary Navigation menu and set the location', 'roots')); ?></small>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -285,11 +285,6 @@ function roots_theme_activation_action() {
|
||||
$roots_nav_theme_mod['primary_navigation'] = $primary_nav_id;
|
||||
}
|
||||
|
||||
if (!has_nav_menu('utility_navigation')) {
|
||||
$utility_nav_id = wp_create_nav_menu('Utility Navigation', array('slug' => 'utility_navigation'));
|
||||
$roots_nav_theme_mod['utility_navigation'] = $utility_nav_id;
|
||||
}
|
||||
|
||||
if ($roots_nav_theme_mod) {
|
||||
set_theme_mod('nav_menu_locations', $roots_nav_theme_mod);
|
||||
}
|
||||
@@ -326,4 +321,4 @@ function roots_deactivation_action() {
|
||||
|
||||
add_action('switch_theme', 'roots_deactivation_action');
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user