Add notice to theme activation, tidy activation table markup
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Add notice to theme activation, tidy activation table markup
|
||||||
* Remove changing media folder from theme activation (use [Bedrock](https://github.com/roots/bedrock) for clean URLs out of the box)
|
* Remove changing media folder from theme activation (use [Bedrock](https://github.com/roots/bedrock) for clean URLs out of the box)
|
||||||
* Update to Bootstrap 3.0.3
|
* Update to Bootstrap 3.0.3
|
||||||
* Switch `div.main` to `main` element now that Modernizr uses the latest HTML5 Shiv
|
* Switch `div.main` to `main` element now that Modernizr uses the latest HTML5 Shiv
|
||||||
|
|||||||
@@ -48,70 +48,63 @@ function roots_get_theme_activation_options() {
|
|||||||
function roots_theme_activation_options_render_page() { ?>
|
function roots_theme_activation_options_render_page() { ?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php printf(__('%s Theme Activation', 'roots'), wp_get_theme()); ?></h2>
|
<h2><?php printf(__('%s Theme Activation', 'roots'), wp_get_theme()); ?></h2>
|
||||||
|
<div class="update-nag">
|
||||||
|
<?php _e('These settings are optional and should usually be used only on a fresh installation', 'roots'); ?>
|
||||||
|
</div>
|
||||||
<?php settings_errors(); ?>
|
<?php settings_errors(); ?>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
|
<?php settings_fields('roots_activation_options'); ?>
|
||||||
<?php
|
|
||||||
settings_fields('roots_activation_options');
|
|
||||||
?>
|
|
||||||
|
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
|
|
||||||
<tr valign="top"><th scope="row"><?php _e('Create static front page?', 'roots'); ?></th>
|
<tr valign="top"><th scope="row"><?php _e('Create static front page?', 'roots'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Create static front page?', 'roots'); ?></span></legend>
|
<fieldset>
|
||||||
|
<legend class="screen-reader-text"><span><?php _e('Create static front page?', 'roots'); ?></span></legend>
|
||||||
<select name="roots_theme_activation_options[create_front_page]" id="create_front_page">
|
<select name="roots_theme_activation_options[create_front_page]" id="create_front_page">
|
||||||
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
||||||
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
<br>
|
<p class="description"><?php printf(__('Create a page called Home and set it to be the static front page', 'roots')); ?></p>
|
||||||
<small class="description"><?php printf(__('Create a page called Home and set it to be the static front page', 'roots')); ?></small>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="top"><th scope="row"><?php _e('Change permalink structure?', 'roots'); ?></th>
|
<tr valign="top"><th scope="row"><?php _e('Change permalink structure?', 'roots'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Update permalink structure?', 'roots'); ?></span></legend>
|
<fieldset>
|
||||||
|
<legend class="screen-reader-text"><span><?php _e('Update permalink structure?', 'roots'); ?></span></legend>
|
||||||
<select name="roots_theme_activation_options[change_permalink_structure]" id="change_permalink_structure">
|
<select name="roots_theme_activation_options[change_permalink_structure]" id="change_permalink_structure">
|
||||||
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
||||||
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
<br>
|
<p class="description"><?php printf(__('Change permalink structure to /%postname%/', 'roots')); ?></p>
|
||||||
<small class="description"><?php printf(__('Change permalink structure to /%postname%/', 'roots')); ?></small>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="top"><th scope="row"><?php _e('Create navigation menu?', 'roots'); ?></th>
|
<tr valign="top"><th scope="row"><?php _e('Create navigation menu?', 'roots'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Create navigation menu?', '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">
|
<select name="roots_theme_activation_options[create_navigation_menus]" id="create_navigation_menus">
|
||||||
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
||||||
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
<br>
|
<p class="description"><?php printf(__('Create the Primary Navigation menu and set the location', 'roots')); ?></p>
|
||||||
<small class="description"><?php printf(__('Create the Primary Navigation menu and set the location', 'roots')); ?></small>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="top"><th scope="row"><?php _e('Add pages to menu?', 'roots'); ?></th>
|
<tr valign="top"><th scope="row"><?php _e('Add pages to menu?', 'roots'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Add pages to menu?', 'roots'); ?></span></legend>
|
<fieldset>
|
||||||
|
<legend class="screen-reader-text"><span><?php _e('Add pages to menu?', 'roots'); ?></span></legend>
|
||||||
<select name="roots_theme_activation_options[add_pages_to_primary_navigation]" id="add_pages_to_primary_navigation">
|
<select name="roots_theme_activation_options[add_pages_to_primary_navigation]" id="add_pages_to_primary_navigation">
|
||||||
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
|
||||||
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
<br>
|
<p class="description"><?php printf(__('Add all current published pages to the Primary Navigation', 'roots')); ?></p>
|
||||||
<small class="description"><?php printf(__('Add all current published pages to the Primary Navigation', 'roots')); ?></small>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php submit_button(); ?>
|
<?php submit_button(); ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user