Ticket #16413: 16143-options.diff
File 16143-options.diff, 47.5 KB (added by , 13 years ago) |
---|
-
wp-admin/options-privacy.php
38 38 <form method="post" action="options.php"> 39 39 <?php settings_fields('privacy'); ?> 40 40 41 < table class="form-table">42 < tr valign="top">43 < th scope="row"><?php _e( 'Site Visibility' ); ?> </th>44 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Site Visibility' ); ?> </span></legend>41 <div class="form-fields"> 42 <div class="field-row"> 43 <div class="field-label"><?php _e( 'Site Visibility' ); ?> </div> 44 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Site Visibility' ); ?> </span></legend> 45 45 <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> 46 46 <label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/> 47 47 <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> 48 48 <label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label> 49 49 <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p> 50 50 <?php do_action('blog_privacy_selector'); ?> 51 </fieldset></ td>52 </ tr>51 </fieldset></div> 52 </div> 53 53 <?php do_settings_fields('privacy', 'default'); ?> 54 </ table>54 </div> 55 55 56 56 <?php do_settings_sections('privacy'); ?> 57 57 -
wp-admin/options-general.php
91 91 <form method="post" action="options.php"> 92 92 <?php settings_fields('general'); ?> 93 93 94 < table class="form-table">95 < tr valign="top">96 < th scope="row"><label for="blogname"><?php _e('Site Title') ?></label></th>97 < td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></td>98 </ tr>99 < tr valign="top">100 < th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>101 < td><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" />102 <span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></ td>103 </ tr>94 <div class="form-fields"> 95 <div class="field-row"> 96 <div class="field-label"><label for="blogname"><?php _e('Site Title') ?></label></div> 97 <div class="field-input"><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></div> 98 </div> 99 <div class="field-row"> 100 <div class="field-label"><label for="blogdescription"><?php _e('Tagline') ?></label></div> 101 <div class="field-input"><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" /> 102 <span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></div> 103 </div> 104 104 <?php if ( !is_multisite() ) { ?> 105 < tr valign="top">106 < th scope="row"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></th>107 < td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>108 </ tr>109 < tr valign="top">110 < th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>111 < td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />112 <span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></ td>113 </ tr>114 < tr valign="top">115 < th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>116 < td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />117 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></ td>118 </ tr>119 < tr valign="top">120 < th scope="row"><?php _e('Membership') ?></th>121 < td> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register">105 <div class="field-row"> 106 <div class="field-label"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></div> 107 <div class="field-input"><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></div> 108 </div> 109 <div class="field-row"> 110 <div class="field-label"><label for="home"><?php _e('Site Address (URL)') ?></label></div> 111 <div class="field-input"><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" /> 112 <span class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></div> 113 </div> 114 <div class="field-row"> 115 <div class="field-label"><label for="admin_email"><?php _e('E-mail Address') ?> </label></div> 116 <div class="field-input"><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" /> 117 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></div> 118 </div> 119 <div class="field-row"> 120 <div class="field-label"><?php _e('Membership') ?></div> 121 <div class="field-input"> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register"> 122 122 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> /> 123 123 <?php _e('Anyone can register') ?></label> 124 </fieldset></ td>125 </ tr>126 < tr valign="top">127 < th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th>128 < td>124 </fieldset></div> 125 </div> 126 <div class="field-row"> 127 <div class="field-label"><label for="default_role"><?php _e('New User Default Role') ?></label></div> 128 <div class="field-input"> 129 129 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select> 130 </ td>131 </ tr>130 </div> 131 </div> 132 132 <?php } else { ?> 133 < tr valign="top">134 < th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>135 < td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" />133 <div class="field-row"> 134 <div class="field-label"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></div> 135 <div class="field-input"><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" /> 136 136 <span class="description"><?php _e('This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>') ?></span> 137 137 <?php 138 138 $new_admin_email = get_option( 'new_admin_email' ); … … 141 141 <p><?php printf( __('There is a pending change of the admin e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p> 142 142 </div> 143 143 <?php endif; ?> 144 </ td>145 </ tr>144 </div> 145 </div> 146 146 <?php } ?> 147 < tr>147 <div class="field-row"> 148 148 <?php 149 149 $current_offset = get_option('gmt_offset'); 150 150 $tzstring = get_option('timezone_string'); … … 166 166 } 167 167 168 168 ?> 169 < th scope="row"><label for="timezone_string"><?php _e('Timezone') ?></label></th>170 < td>169 <div class="field-label"><label for="timezone_string"><?php _e('Timezone') ?></label></div> 170 <div class="field-input"> 171 171 172 172 <select id="timezone_string" name="timezone_string"> 173 173 <?php echo wp_timezone_choice($tzstring); ?> … … 223 223 ?> 224 224 </span> 225 225 <?php endif; ?> 226 </ td>226 </div> 227 227 228 </ tr>229 < tr>230 < th scope="row"><?php _e('Date Format') ?></th>231 < td>228 </div> 229 <div class="field-row"> 230 <div class="field-label"><?php _e('Date Format') ?></div> 231 <div class="field-input"> 232 232 <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend> 233 233 <?php 234 234 … … 257 257 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') . "</p>\n"; 258 258 ?> 259 259 </fieldset> 260 </ td>261 </ tr>262 < tr>263 < th scope="row"><?php _e('Time Format') ?></th>264 < td>260 </div> 261 </div> 262 <div class="field-row"> 263 <div class="field-label"><?php _e('Time Format') ?></div> 264 <div class="field-input"> 265 265 <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend> 266 266 <?php 267 267 … … 288 288 ; 289 289 ?> 290 290 </fieldset> 291 </ td>292 </ tr>293 < tr>294 < th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>295 < td><select name="start_of_week" id="start_of_week">291 </div> 292 </div> 293 <div class="field-row"> 294 <div class="field-label"><label for="start_of_week"><?php _e('Week Starts On') ?></label></div> 295 <div class="field-input"><select name="start_of_week" id="start_of_week"> 296 296 <?php 297 297 for ($day_index = 0; $day_index <= 6; $day_index++) : 298 298 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 299 299 echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>'; 300 300 endfor; 301 301 ?> 302 </select></ td>303 </ tr>302 </select></div> 303 </div> 304 304 <?php do_settings_fields('general', 'default'); ?> 305 305 <?php 306 306 $languages = get_available_languages(); 307 307 if ( is_multisite() && !empty( $languages ) ): 308 308 ?> 309 < tr valign="top">310 < th width="33%" scope="row"><?php _e('Site Language') ?></th>311 < td>309 <div class="field-row"> 310 <div class="field-label"><?php _e('Site Language') ?></div> 311 <div class="field-input"> 312 312 <select name="WPLANG" id="WPLANG"> 313 313 <?php mu_dropdown_languages( $languages, get_option('WPLANG') ); ?> 314 314 </select> 315 </ td>316 </ tr>315 </div> 316 </div> 317 317 <?php 318 318 endif; 319 319 ?> 320 </ table>320 </div> 321 321 322 322 <?php do_settings_sections('general'); ?> 323 323 -
wp-admin/options-media.php
55 55 <h3><?php _e('Image sizes') ?></h3> 56 56 <p><?php _e('The sizes listed below determine the maximum dimensions in pixels to use when inserting an image into the body of a post.'); ?></p> 57 57 58 < table class="form-table">59 < tr valign="top">60 < th scope="row"><?php _e('Thumbnail size') ?></th>61 < td>58 <div class="form-fields"> 59 <div class="field-row"> 60 <div class="field-label"><?php _e('Thumbnail size') ?></div> 61 <div class="field-input"> 62 62 <label for="thumbnail_size_w"><?php _e('Width'); ?></label> 63 63 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" /> 64 64 <label for="thumbnail_size_h"><?php _e('Height'); ?></label> 65 65 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br /> 66 66 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/> 67 67 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label> 68 </ td>69 </ tr>68 </div> 69 </div> 70 70 71 < tr valign="top">72 < th scope="row"><?php _e('Medium size') ?></th>73 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>71 <div class="field-row"> 72 <div class="field-label"><?php _e('Medium size') ?></div> 73 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend> 74 74 <label for="medium_size_w"><?php _e('Max Width'); ?></label> 75 75 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" /> 76 76 <label for="medium_size_h"><?php _e('Max Height'); ?></label> 77 77 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" /> 78 </fieldset></ td>79 </ tr>78 </fieldset></div> 79 </div> 80 80 81 < tr valign="top">82 < th scope="row"><?php _e('Large size') ?></th>83 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>81 <div class="field-row"> 82 <div class="field-label"><?php _e('Large size') ?></div> 83 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend> 84 84 <label for="large_size_w"><?php _e('Max Width'); ?></label> 85 85 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" /> 86 86 <label for="large_size_h"><?php _e('Max Height'); ?></label> 87 87 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" /> 88 </fieldset></ td>89 </ tr>88 </fieldset></div> 89 </div> 90 90 91 91 <?php do_settings_fields('media', 'default'); ?> 92 </ table>92 </div> 93 93 94 94 <h3><?php _e('Embeds') ?></h3> 95 95 96 < table class="form-table">96 <div class="form-fields"> 97 97 98 < tr valign="top">99 < th scope="row"><?php _e('Auto-embeds'); ?></th>100 < td><fieldset><legend class="screen-reader-text"><span><?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></span></legend>98 <div class="field-row"> 99 <div class="field-label"><?php _e('Auto-embeds'); ?></div> 100 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></span></legend> 101 101 <label for="embed_autourls"><input name="embed_autourls" type="checkbox" id="embed_autourls" value="1" <?php checked( '1', get_option('embed_autourls') ); ?>/> <?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></label> 102 </fieldset></ td>103 </ tr>102 </fieldset></div> 103 </div> 104 104 105 < tr valign="top">106 < th scope="row"><?php _e('Maximum embed size') ?></th>107 < td>105 <div class="field-row"> 106 <div class="field-label"><?php _e('Maximum embed size') ?></div> 107 <div class="field-input"> 108 108 <label for="embed_size_w"><?php _e('Width'); ?></label> 109 109 <input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" /> 110 110 <label for="embed_size_h"><?php _e('Height'); ?></label> 111 111 <input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" /> 112 112 <?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?> 113 </ td>114 </ tr>113 </div> 114 </div> 115 115 116 116 <?php do_settings_fields('media', 'embeds'); ?> 117 </ table>117 </div> 118 118 119 119 <?php if ( !is_multisite() ) : ?> 120 120 <h3><?php _e('Uploading Files'); ?></h3> 121 < table class="form-table">122 < tr valign="top">123 < th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>124 < td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />121 <div class="form-fields"> 122 <div class="field-row"> 123 <div class="field-label"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></div> 124 <div class="field-input"><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" /> 125 125 <span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span> 126 </ td>127 </ tr>126 </div> 127 </div> 128 128 129 < tr valign="top">130 < th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>131 < td><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" />129 <div class="field-row"> 130 <div class="field-label"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></div> 131 <div class="field-input"><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" /> 132 132 <span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span> 133 </ td>134 </ tr>133 </div> 134 </div> 135 135 136 < tr>137 < th scope="row" colspan="2" class="th-full">136 <div class="field-row"> 137 <div class="field-label label-full"> 138 138 <label for="uploads_use_yearmonth_folders"> 139 139 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> /> 140 140 <?php _e('Organize my uploads into month- and year-based folders'); ?> 141 141 </label> 142 </ th>143 </ tr>142 </div> 143 </div> 144 144 145 145 <?php do_settings_fields('media', 'uploads'); ?> 146 </ table>146 </div> 147 147 <?php endif; ?> 148 148 149 149 <?php do_settings_sections('media'); ?> -
wp-admin/options-discussion.php
38 38 <form method="post" action="options.php"> 39 39 <?php settings_fields('discussion'); ?> 40 40 41 < table class="form-table">42 < tr valign="top">43 < th scope="row"><?php _e('Default article settings'); ?></th>44 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings'); ?></span></legend>41 <div class="form-fields"> 42 <div class="field-row"> 43 <div class="field-label"><?php _e('Default article settings'); ?></div> 44 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings'); ?></span></legend> 45 45 <label for="default_pingback_flag"> 46 46 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> /> 47 47 <?php _e('Attempt to notify any blogs linked to from the article'); ?></label> … … 55 55 <?php _e('Allow people to post comments on new articles'); ?></label> 56 56 <br /> 57 57 <small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small> 58 </fieldset></ td>59 </ tr>60 < tr valign="top">61 < th scope="row"><?php _e('Other comment settings'); ?></th>62 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend>58 </fieldset></div> 59 </div> 60 <div class="field-row"> 61 <div class="field-label"><?php _e('Other comment settings'); ?></div> 62 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend> 63 63 <label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail'); ?></label> 64 64 <br /> 65 65 <label for="comment_registration"> … … 115 115 printf( __('Comments should be displayed with the %s comments at the top of each page'), $comment_order ); 116 116 117 117 ?></label> 118 </fieldset></ td>119 </ tr>120 < tr valign="top">121 < th scope="row"><?php _e('E-mail me whenever'); ?></th>122 < td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever'); ?></span></legend>118 </fieldset></div> 119 </div> 120 <div class="field-row"> 121 <div class="field-label"><?php _e('E-mail me whenever'); ?></div> 122 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever'); ?></span></legend> 123 123 <label for="comments_notify"> 124 124 <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> /> 125 125 <?php _e('Anyone posts a comment'); ?> </label> … … 127 127 <label for="moderation_notify"> 128 128 <input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> /> 129 129 <?php _e('A comment is held for moderation'); ?> </label> 130 </fieldset></ td>131 </ tr>132 < tr valign="top">133 < th scope="row"><?php _e('Before a comment appears'); ?></th>134 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears'); ?></span></legend>130 </fieldset></div> 131 </div> 132 <div class="field-row"> 133 <div class="field-label"><?php _e('Before a comment appears'); ?></div> 134 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears'); ?></span></legend> 135 135 <label for="comment_moderation"> 136 136 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> /> 137 137 <?php _e('An administrator must always approve the comment'); ?> </label> 138 138 <br /> 139 139 <label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked('1', get_option('comment_whitelist')); ?> /> <?php _e('Comment author must have a previously approved comment'); ?></label> 140 </fieldset></ td>141 </ tr>142 < tr valign="top">143 < th scope="row"><?php _e('Comment Moderation'); ?></th>144 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend>140 </fieldset></div> 141 </div> 142 <div class="field-row"> 143 <div class="field-label"><?php _e('Comment Moderation'); ?></div> 144 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend> 145 145 <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ); ?></label></p> 146 146 147 147 <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> 148 148 <p> 149 149 <textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea> 150 150 </p> 151 </fieldset></ td>152 </ tr>153 < tr valign="top">154 < th scope="row"><?php _e('Comment Blacklist'); ?></th>155 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend>151 </fieldset></div> 152 </div> 153 <div class="field-row"> 154 <div class="field-label"><?php _e('Comment Blacklist'); ?></div> 155 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend> 156 156 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> 157 157 <p> 158 158 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> 159 159 </p> 160 </fieldset></ td>161 </ tr>160 </fieldset></div> 161 </div> 162 162 <?php do_settings_fields('discussion', 'default'); ?> 163 </ table>163 </div> 164 164 165 165 <h3><?php _e('Avatars'); ?></h3> 166 166 … … 168 168 169 169 <?php // the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? ?> 170 170 171 < table class="form-table">172 < tr valign="top">173 < th scope="row"><?php _e('Avatar Display'); ?></th>174 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>171 <div class="form-fields"> 172 <div class="field-row"> 173 <div class="field-label"><?php _e('Avatar Display'); ?></div> 174 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend> 175 175 <?php 176 176 $yesorno = array( 0 => __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) ); 177 177 foreach ( $yesorno as $key => $value) { … … 179 179 echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />"; 180 180 } 181 181 ?> 182 </fieldset></ td>183 </ tr>184 < tr valign="top">185 < th scope="row"><?php _e('Maximum Rating'); ?></th>186 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend>182 </fieldset></div> 183 </div> 184 <div class="field-row"> 185 <div class="field-label"><?php _e('Maximum Rating'); ?></div> 186 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend> 187 187 188 188 <?php 189 189 $ratings = array( … … 202 202 endforeach; 203 203 ?> 204 204 205 </fieldset></ td>206 </ tr>207 < tr valign="top">208 < th scope="row"><?php _e('Default Avatar'); ?></th>209 < td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend>205 </fieldset></div> 206 </div> 207 <div class="field-row"> 208 <div class="field-label"><?php _e('Default Avatar'); ?></div> 209 <div class="field-input defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend> 210 210 211 211 <?php _e('For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.'); ?><br /> 212 212 … … 239 239 echo apply_filters('default_avatar_select', $avatar_list); 240 240 ?> 241 241 242 </fieldset></ td>243 </ tr>242 </fieldset></div> 243 </div> 244 244 <?php do_settings_fields('discussion', 'avatars'); ?> 245 </ table>245 </div> 246 246 247 247 <?php do_settings_sections('discussion'); ?> 248 248 -
wp-admin/options-reading.php
68 68 69 69 <?php if ( ! get_pages() ) : ?> 70 70 <input name="show_on_front" type="hidden" value="posts" /> 71 < table class="form-table">71 <div class="form-fields"> 72 72 <?php 73 73 if ( 'posts' != get_option( 'show_on_front' ) ) : 74 74 update_option( 'show_on_front', 'posts' ); … … 78 78 if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) 79 79 update_option( 'show_on_front', 'posts' ); 80 80 ?> 81 < table class="form-table">82 < tr valign="top">83 < th scope="row"><?php _e( 'Front page displays' ); ?></th>84 < tdid="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>81 <div class="form-fields"> 82 <div class="field-row"> 83 <div class="field-label"><?php _e( 'Front page displays' ); ?></div> 84 <div class="field-input" id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend> 85 85 <p><label> 86 86 <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> /> 87 87 <?php _e( 'Your latest posts' ); ?> … … 99 99 <?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?> 100 100 <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> 101 101 <?php endif; ?> 102 </fieldset></ td>103 </ tr>102 </fieldset></div> 103 </div> 104 104 <?php endif; ?> 105 < tr valign="top">106 < th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>107 < td>105 <div class="field-row"> 106 <div class="field-label"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></div> 107 <div class="field-input"> 108 108 <input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?> 109 </ td>110 </ tr>111 < tr valign="top">112 < th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>113 < td><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></td>114 </ tr>115 < tr valign="top">116 < th scope="row"><?php _e( 'For each article in a feed, show' ); ?> </th>117 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend>109 </div> 110 </div> 111 <div class="field-row"> 112 <div class="field-label"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></div> 113 <div class="field-input"><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></div> 114 </div> 115 <div class="field-row"> 116 <div class="field-label"><?php _e( 'For each article in a feed, show' ); ?> </div> 117 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend> 118 118 <p><label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br /> 119 119 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label></p> 120 </fieldset></ td>121 </ tr>120 </fieldset></div> 121 </div> 122 122 123 < tr valign="top">124 < th scope="row"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></th>125 < td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" />126 <span class="description"><?php _e( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended, if you are adventurous there are some <a href="http://en.wikipedia.org/wiki/Character_set">other encodings</a>)' ); ?></span></ td>127 </ tr>123 <div class="field-row"> 124 <div class="field-label"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></div> 125 <div class="field-input"><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" /> 126 <span class="description"><?php _e( 'The <a href="http://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended, if you are adventurous there are some <a href="http://en.wikipedia.org/wiki/Character_set">other encodings</a>)' ); ?></span></div> 127 </div> 128 128 <?php do_settings_fields( 'reading', 'default' ); ?> 129 </ table>129 </div> 130 130 131 131 <?php do_settings_sections( 'reading' ); ?> 132 132 -
wp-admin/options-permalink.php
191 191 ); 192 192 ?> 193 193 <h3><?php _e('Common Settings'); ?></h3> 194 < table class="form-table">195 < tr>196 < th><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th>197 < td><code><?php echo get_option('home'); ?>/?p=123</code></td>198 </ tr>199 < tr>200 < th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></th>201 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>202 </ tr>203 < tr>204 < th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></th>205 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>206 </ tr>207 < tr>208 < th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></th>209 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></td>210 </ tr>211 < tr>212 < th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[4]); ?>" class="tog" <?php checked($structures[4], $permalink_structure); ?> /> <?php _e('Post name'); ?></label></th>213 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>214 </ tr>215 < tr>216 < th>194 <div class="form-fields"> 195 <div class="field-row"> 196 <div class="field-label"><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></div> 197 <div class="field-input"><code><?php echo get_option('home'); ?>/?p=123</code></div> 198 </div> 199 <div class="field-row"> 200 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></div> 201 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div> 202 </div> 203 <div class="field-row"> 204 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></div> 205 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div> 206 </div> 207 <div class="field-row"> 208 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></div> 209 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></div> 210 </div> 211 <div class="field-row"> 212 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[4]); ?>" class="tog" <?php checked($structures[4], $permalink_structure); ?> /> <?php _e('Post name'); ?></label></div> 213 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div> 214 </div> 215 <div class="field-row"> 216 <div class="field-label"> 217 217 <label><input name="selection" id="custom_selection" type="radio" value="custom" class="tog" <?php checked( !in_array($permalink_structure, $structures) ); ?> /> 218 218 <?php _e('Custom Structure'); ?> 219 219 </label> 220 </ th>221 < td>220 </div> 221 <div class="field-input"> 222 222 <?php echo $blog_prefix; ?> 223 223 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" /> 224 </ td>225 </ tr>226 </ table>224 </div> 225 </div> 226 </div> 227 227 228 228 <h3><?php _e('Optional'); ?></h3> 229 229 <?php if ( $is_apache || $iis7_permalinks ) : ?> … … 232 232 <p><?php _e('If you like, you may enter custom structures for your category and tag <abbr title="Universal Resource Locator">URL</abbr>s here. For example, using <code>topics</code> as your category base would make your category links like <code>http://example.org/index.php/topics/uncategorized/</code>. If you leave these blank the defaults will be used.') ?></p> 233 233 <?php endif; ?> 234 234 235 < table class="form-table">236 < tr>237 < th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></th>238 < td><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td>239 </ tr>240 < tr>241 < th><label for="tag_base"><?php _e('Tag base'); ?></label></th>242 < td><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></td>243 </ tr>235 <div class="form-fields"> 236 <div class="field-row"> 237 <div class="field-label"><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></div> 238 <div class="field-input"><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></div> 239 </div> 240 <div class="field-row"> 241 <div class="field-label"><label for="tag_base"><?php _e('Tag base'); ?></label></div> 242 <div class="field-input"><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></div> 243 </div> 244 244 <?php do_settings_fields('permalink', 'optional'); ?> 245 </ table>245 </div> 246 246 247 247 <?php do_settings_sections('permalink'); ?> 248 248 -
wp-admin/options-writing.php
69 69 <form method="post" action="options.php"> 70 70 <?php settings_fields('writing'); ?> 71 71 72 < table class="form-table">73 < tr valign="top">74 < th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th>75 < td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" />76 <?php _e('lines') ?></ td>77 </ tr>78 < tr valign="top">79 < th scope="row"><?php _e('Formatting') ?></th>80 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend>72 <div class="form-fields"> 73 <div class="field-row"> 74 <div class="field-label"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></div> 75 <div class="field-input"><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" /> 76 <?php _e('lines') ?></div> 77 </div> 78 <div class="field-row"> 79 <div class="field-label"><?php _e('Formatting') ?></div> 80 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend> 81 81 <label for="use_smilies"> 82 82 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> /> 83 83 <?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br /> 84 84 <label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_option('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label> 85 </fieldset></ td>86 </ tr>87 < tr valign="top">88 < th scope="row"><label for="default_category"><?php _e('Default Post Category') ?></label></th>89 < td>85 </fieldset></div> 86 </div> 87 <div class="field-row"> 88 <div class="field-label"><label for="default_category"><?php _e('Default Post Category') ?></label></div> 89 <div class="field-input"> 90 90 <?php 91 91 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_category', 'orderby' => 'name', 'selected' => get_option('default_category'), 'hierarchical' => true)); 92 92 ?> 93 </ td>94 </ tr>93 </div> 94 </div> 95 95 <?php 96 96 if ( current_theme_supports( 'post-formats' ) ) : 97 97 $post_formats = get_theme_support( 'post-formats' ); 98 98 if ( is_array( $post_formats[0] ) ) : 99 99 ?> 100 < tr valign="top">101 < th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th>102 < td>100 <div class="field-row"> 101 <div class="field-label"><label for="default_post_format"><?php _e('Default Post Format') ?></label></div> 102 <div class="field-input"> 103 103 <select name="default_post_format" id="default_post_format"> 104 104 <option value="0"><?php _e('Standard'); ?></option> 105 105 <?php foreach ( $post_formats[0] as $format ): ?> 106 106 <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> 107 107 <?php endforeach; ?> 108 108 </select> 109 </ td>110 </ tr>109 </div> 110 </div> 111 111 <?php endif; endif; ?> 112 < tr valign="top">113 < th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>114 < td>112 <div class="field-row"> 113 <div class="field-label"><label for="default_link_category"><?php _e('Default Link Category') ?></label></div> 114 <div class="field-input"> 115 115 <?php 116 116 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category')); 117 117 ?> 118 </ td>119 </ tr>118 </div> 119 </div> 120 120 <?php do_settings_fields('writing', 'default'); ?> 121 </ table>121 </div> 122 122 123 123 124 124 <h3 class="title"><?php _e('Press This') ?></h3> … … 135 135 <h3><?php _e('Post via e-mail') ?></h3> 136 136 <p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p> 137 137 138 < table class="form-table">139 < tr valign="top">140 < th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>141 < td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />138 <div class="form-fields"> 139 <div class="field-row"> 140 <div class="field-label"><label for="mailserver_url"><?php _e('Mail Server') ?></label></div> 141 <div class="field-input"><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" /> 142 142 <label for="mailserver_port"><?php _e('Port') ?></label> 143 143 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" /> 144 </ td>145 </ tr>146 < tr valign="top">147 < th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>148 < td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></td>149 </ tr>150 < tr valign="top">151 < th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>152 < td>144 </div> 145 </div> 146 <div class="field-row"> 147 <div class="field-label"><label for="mailserver_login"><?php _e('Login Name') ?></label></div> 148 <div class="field-input"><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></div> 149 </div> 150 <div class="field-row"> 151 <div class="field-label"><label for="mailserver_pass"><?php _e('Password') ?></label></div> 152 <div class="field-input"> 153 153 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" /> 154 </ td>155 </ tr>156 < tr valign="top">157 < th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>158 < td>154 </div> 155 </div> 156 <div class="field-row"> 157 <div class="field-label"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></div> 158 <div class="field-input"> 159 159 <?php 160 160 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true)); 161 161 ?> 162 </ td>163 </ tr>162 </div> 163 </div> 164 164 <?php do_settings_fields('writing', 'post_via_email'); ?> 165 </ table>165 </div> 166 166 <?php } ?> 167 167 168 168 <h3><?php _e('Remote Publishing') ?></h3> 169 169 <p><?php printf(__('To post to WordPress from a desktop blogging client or remote website that uses the Atom Publishing Protocol or one of the XML-RPC publishing interfaces you must enable them below.')) ?></p> 170 < table class="form-table">171 < tr valign="top">172 < th scope="row"><?php _e('Atom Publishing Protocol') ?></th>173 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend>170 <div class="form-fields"> 171 <div class="field-row"> 172 <div class="field-label"><?php _e('Atom Publishing Protocol') ?></div> 173 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend> 174 174 <label for="enable_app"> 175 175 <input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> /> 176 176 <?php _e('Enable the Atom Publishing Protocol.') ?></label><br /> 177 </fieldset></ td>178 </ tr>179 < tr valign="top">180 < th scope="row"><?php _e('XML-RPC') ?></th>181 < td><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend>177 </fieldset></div> 178 </div> 179 <div class="field-row"> 180 <div class="field-label"><?php _e('XML-RPC') ?></div> 181 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend> 182 182 <label for="enable_xmlrpc"> 183 183 <input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php checked('1', get_option('enable_xmlrpc')); ?> /> 184 184 <?php _e('Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.') ?></label><br /> 185 </fieldset></ td>186 </ tr>185 </fieldset></div> 186 </div> 187 187 <?php do_settings_fields('writing', 'remote_publishing'); ?> 188 </ table>188 </div> 189 189 190 190 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> 191 191 <h3><?php _e('Update Services') ?></h3> -
wp-admin/options.php
175 175 <?php wp_nonce_field('options-options') ?> 176 176 <input type="hidden" name="action" value="update" /> 177 177 <input type='hidden' name='option_page' value='options' /> 178 < table class="form-table">178 <div class="form-fields"> 179 179 <?php 180 180 $options = $wpdb->get_results( "SELECT * FROM $wpdb->options ORDER BY option_name" ); 181 181 … … 201 201 } 202 202 $name = esc_attr( $option->option_name ); 203 203 echo " 204 < tr>205 < th scope='row'><label for='$name'>" . esc_html( $option->option_name ) . "</label></th>206 < td>";204 <div class='field-row> 205 <div class='field-label'><label for='$name'>" . esc_html( $option->option_name ) . "</label></div> 206 <div class='field-input'>"; 207 207 if ( strpos( $value, "\n" ) !== false ) 208 208 echo "<textarea class='$class' name='$name' id='$name' cols='30' rows='5'>" . esc_textarea( $value ) . "</textarea>"; 209 209 else 210 210 echo "<input class='regular-text $class' type='text' name='$name' id='$name' value='" . esc_attr( $value ) . "'" . disabled( $disabled, true, false ) . " />"; 211 echo "</ td>212 </ tr>";211 echo "</div> 212 </div>"; 213 213 endforeach; 214 214 ?> 215 </ table>215 </div> 216 216 217 217 <input type="hidden" name="page_options" value="<?php echo esc_attr( implode( ',', $options_to_update ) ); ?>" /> 218 218