Ticket #16413: 16413.diff
File 16413.diff, 154.7 KB (added by , 10 years ago) |
---|
-
wp-admin/network.php
211 211 <p><?php _e( 'Please choose whether you would like sites in your WordPress network to use sub-domains or sub-directories. <strong>You cannot change this later.</strong>' ); ?></p> 212 212 <p><?php _e( 'You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.' ); ?></p> 213 213 <?php // @todo: Link to an MS readme? ?> 214 < table class="form-table">215 < tr>216 < th><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th>217 < td><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></td>218 </ tr>219 < tr>220 < th><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></th>221 < td><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></td>222 </ tr>223 </ table>214 <div class="form-fields"> 215 <div class="form-row"> 216 <div class="form-label"><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></div> 217 <div class="form-input"><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></div> 218 </div> 219 <div class="form-row"> 220 <div class="form-label"><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></div> 221 <div class="form-input"><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></div> 222 </div> 223 </div> 224 224 225 225 <?php 226 226 endif; … … 230 230 ?> 231 231 <h3><?php esc_html_e( 'Server Address' ); ?></h3> 232 232 <p><?php printf( __( 'We recommend you change your siteurl to <code>%1$s</code> before enabling the network feature. It will still be possible to visit your site using the <code>www</code> prefix with an address like <code>%2$s</code> but any links will not have the <code>www</code> prefix.' ), substr( $hostname, 4 ), $hostname ); ?></h3> 233 < table class="form-table">234 < tr>235 < th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>236 < td>233 <div class="form-fields"> 234 <div class="form-row"> 235 <div class="form-label"><?php esc_html_e( 'Server Address' ); ?></div> 236 <div class="form-input"> 237 237 <?php printf( __( 'The internet address of your network will be <code>%s</code>.' ), $hostname ); ?> 238 </ td>239 </ tr>240 </ table>238 </div> 239 </div> 240 </div> 241 241 <?php endif; ?> 242 242 243 243 <h3><?php esc_html_e( 'Network Details' ); ?></h3> 244 < table class="form-table">244 <div class="form-fields"> 245 245 <?php if ( 'localhost' == $hostname ) : ?> 246 < tr>247 < th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>248 < td><?php246 <div class="form-row"> 247 <div class="form-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div> 248 <div class="form-input"><?php 249 249 _e( 'Because you are using <code>localhost</code>, the sites in your WordPress network must use sub-directories. Consider using <code>localhost.localdomain</code> if you wish to use sub-domains.' ); 250 250 // Uh oh: 251 251 if ( !allow_subdirectory_install() ) 252 252 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 253 ?></ td>254 </ tr>253 ?></div> 254 </div> 255 255 <?php elseif ( !allow_subdomain_install() ) : ?> 256 < tr>257 < th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>258 < td><?php256 <div class="form-row"> 257 <div class="form-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div> 258 <div class="form-input"><?php 259 259 _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' ); 260 260 // Uh oh: 261 261 if ( !allow_subdirectory_install() ) 262 262 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 263 ?></ td>264 </ tr>263 ?></div> 264 </div> 265 265 <?php elseif ( !allow_subdirectory_install() ) : ?> 266 < tr>267 < th scope="row"><?php esc_html_e( 'Sub-domain Install' ); ?></th>268 < td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );266 <div class="form-row"> 267 <div class="form-label"><?php esc_html_e( 'Sub-domain Install' ); ?></div> 268 <div class="form-input"><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' ); 269 269 echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>'; 270 ?></ td>271 </ tr>270 ?></div> 271 </div> 272 272 <?php endif; ?> 273 273 <?php if ( ! $is_www ) : ?> 274 < tr>275 < th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>276 < td>274 <div class="form-row"> 275 <div class="form-label"><?php esc_html_e( 'Server Address' ); ?></div> 276 <div class="form-input"> 277 277 <?php printf( __( 'The internet address of your network will be <code>%s</code>.' ), $hostname ); ?> 278 </ td>279 </ tr>278 </div> 279 </div> 280 280 <?php endif; ?> 281 < tr>282 < th scope='row'><?php esc_html_e( 'Network Title' ); ?></th>283 < td>281 <div class="form-row"> 282 <div class="form-label"><?php esc_html_e( 'Network Title' ); ?></div> 283 <div class="form-input"> 284 284 <input name='sitename' type='text' size='45' value='<?php echo esc_attr( $site_name ); ?>' /> 285 285 <br /><?php _e( 'What would you like to call your network?' ); ?> 286 </ td>287 </ tr>288 < tr>289 < th scope='row'><?php esc_html_e( 'Admin E-mail Address' ); ?></th>290 < td>286 </div> 287 </div> 288 <div class="form-row"> 289 <div class="form-label"><?php esc_html_e( 'Admin E-mail Address' ); ?></div> 290 <div class="form-input"> 291 291 <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' /> 292 292 <br /><?php _e( 'Your email address.' ); ?> 293 </ td>294 </ tr>295 </ table>293 </div> 294 </div> 295 </div> 296 296 <?php submit_button( __( 'Install' ), 'primary', 'submit' ); ?> 297 297 </form> 298 298 <?php -
wp-admin/options-privacy.php
34 34 <form method="post" action="options.php"> 35 35 <?php settings_fields('privacy'); ?> 36 36 37 <table class="form-table"> 38 <tr valign="top"> 39 <th scope="row"><?php _e('Site Visibility') ?> </th> 40 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Site Visibility') ?> </span></legend> 37 <div class="form-fields"> 38 <div class="form-row"> 39 <div class="form-label"><?php _e('Site Visibility') ?></div> 40 <div class="form-input"> 41 <fieldset><legend class="screen-reader-text"><span><?php _e('Site Visibility') ?> </span></legend> 41 42 <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> 42 43 <label for="blog-public"><?php _e('I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers');?></label><br/> 43 44 <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> 44 45 <label for="blog-norobots"><?php _e('I would like to block search engines, but allow normal visitors'); ?></label> 45 46 <?php do_action('blog_privacy_selector'); ?> 46 </fieldset></td> 47 </tr> 47 </fieldset> 48 </div> 49 </div> 48 50 <?php do_settings_fields('privacy', 'default'); ?> 49 </ table>51 </div> 50 52 51 53 <?php do_settings_sections('privacy'); ?> 52 54 -
wp-admin/includes/file.php
1021 1021 } 1022 1022 _e('If you do not remember your credentials, you should contact your web host.'); 1023 1023 ?></p> 1024 < table class="form-table">1025 < tr valign="top">1026 < th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th>1027 < td><input name="hostname" type="text" id="hostname" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> size="40" /></td>1028 </ tr>1024 <div class="form-fields"> 1025 <div class="form-row"> 1026 <div class="form-label"><label for="hostname"><?php _e('Hostname') ?></label></div> 1027 <div class="form-input"><input name="hostname" type="text" id="hostname" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> size="40" /></div> 1028 </div> 1029 1029 1030 < tr valign="top">1031 < th scope="row"><label for="username"><?php echo $label_user; ?></label></th>1032 < td><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php disabled( defined('FTP_USER') ); ?> size="40" /></td>1033 </ tr>1030 <div class="form-row"> 1031 <div class="form-label"><label for="username"><?php echo $label_user; ?></label></div> 1032 <div class="form-input"><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php disabled( defined('FTP_USER') ); ?> size="40" /></div> 1033 </div> 1034 1034 1035 < tr valign="top">1036 < th scope="row"><label for="password"><?php echo $label_pass; ?></label></th>1037 < td><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> size="40" /></td>1038 </ tr>1035 <div class="form-row"> 1036 <div class="form-label"><label for="password"><?php echo $label_pass; ?></label></div> 1037 <div class="form-input"><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> size="40" /></div> 1038 </div> 1039 1039 1040 1040 <?php if ( isset($types['ssh']) ) : ?> 1041 < tr id="ssh_keys" valign="top" style="<?php if ( 'ssh' != $connection_type ) echo 'display:none' ?>">1042 < th scope="row"><?php _e('Authentication Keys') ?>1041 <div class="form-row" id="ssh_keys" style="<?php if ( 'ssh' != $connection_type ) echo 'display:none' ?>"> 1042 <div class="form-label"><?php _e('Authentication Keys') ?> 1043 1043 <div class="key-labels textright"> 1044 1044 <label for="public_key"><?php _e('Public Key:') ?></label ><br /> 1045 1045 <label for="private_key"><?php _e('Private Key:') ?></label> 1046 </div></ th>1047 < td><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php disabled( defined('FTP_PUBKEY') ); ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> size="40" />1048 <div><?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?></div></ td>1049 </ tr>1046 </div></div> 1047 <div class="form-input"><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php disabled( defined('FTP_PUBKEY') ); ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> size="40" /> 1048 <div><?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?></div></div> 1049 </div> 1050 1050 <?php endif; ?> 1051 1051 1052 < tr valign="top">1053 < th scope="row"><?php _e('Connection Type') ?></th>1054 < td>1052 <div class="form-row"> 1053 <div class="form-label"><?php _e('Connection Type') ?></div> 1054 <div class="form-input"> 1055 1055 <fieldset><legend class="screen-reader-text"><span><?php _e('Connection Type') ?></span></legend> 1056 1056 <?php 1057 1057 $disabled = disabled( (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH), true, false ); … … 1062 1062 </label> 1063 1063 <?php endforeach; ?> 1064 1064 </fieldset> 1065 </ td>1066 </ tr>1067 </ table>1065 </div> 1066 </div> 1067 </div> 1068 1068 1069 1069 <?php 1070 1070 foreach ( (array) $extra_fields as $field ) { -
wp-admin/includes/meta-boxes.php
760 760 </tr> 761 761 <tr> 762 762 <td colspan="2"> 763 < table cellpadding="3" cellspacing="5" class="form-table">764 < tr>765 < th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </th>766 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend>763 <div class="form-fields"> 764 <div class="form-row"> 765 <div class="form-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </div> 766 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend> 767 767 <label for="me"> 768 768 <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> /> 769 769 <?php _e('another web address of mine') ?></label> 770 </fieldset></ td>771 </ tr>772 < tr>773 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </th>774 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend>770 </fieldset></div> 771 </div> 772 <div class="form-row"> 773 <div class="form-label"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </div> 774 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend> 775 775 <label for="contact"> 776 776 <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label> 777 777 <label for="acquaintance"> … … 780 780 <input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?></label> 781 781 <label for="friendship"> 782 782 <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 783 </fieldset></ td>784 </ tr>785 < tr>786 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </th>787 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend>783 </fieldset></div> 784 </div> 785 <div class="form-row"> 786 <div class="form-label"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </div> 787 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend> 788 788 <label for="met"> 789 789 <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> /> 790 790 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('met') ?></label> 791 </fieldset></ td>792 </ tr>793 < tr>794 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </th>795 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend>791 </fieldset></div> 792 </div> 793 <div class="form-row"> 794 <div class="form-label"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </div> 795 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend> 796 796 <label for="co-worker"> 797 797 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> /> 798 798 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-worker') ?></label> 799 799 <label for="colleague"> 800 800 <input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> /> 801 801 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('colleague') ?></label> 802 </fieldset></ td>803 </ tr>804 < tr>805 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </th>806 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend>802 </fieldset></div> 803 </div> 804 <div class="form-row"> 805 <div class="form-label"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </div> 806 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend> 807 807 <label for="co-resident"> 808 808 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident'); ?> /> 809 809 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?></label> … … 813 813 <label for="geographical"> 814 814 <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical'); ?> /> 815 815 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 816 </fieldset></ td>817 </ tr>818 < tr>819 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </th>820 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend>816 </fieldset></div> 817 </div> 818 <div class="form-row"> 819 <div class="form-label"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </div> 820 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend> 821 821 <label for="child"> 822 822 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> /> 823 823 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label> … … 836 836 <label for="family"> 837 837 <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family'); ?> /> 838 838 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 839 </fieldset></ td>840 </ tr>841 < tr>842 < th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </th>843 < td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend>839 </fieldset></div> 840 </div> 841 <div class="form-row"> 842 <div class="form-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </div> 843 <div class="form-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend> 844 844 <label for="muse"> 845 845 <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> /> 846 846 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('muse') ?></label> … … 853 853 <label for="romantic"> 854 854 <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> /> 855 855 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sweetheart') ?></label> 856 </fieldset></ td>857 </ tr>858 </ table>856 </fieldset></div> 857 </div> 858 </div> 859 859 </td> 860 860 </tr> 861 861 </table> … … 873 873 */ 874 874 function link_advanced_meta_box($link) { 875 875 ?> 876 < table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">877 < tr class="form-field">878 < th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>879 < td><input type="text" name="link_image" class="code" id="link_image" size="50" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" style="width: 95%" /></td>880 </ tr>881 < tr class="form-field">882 < th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>883 < td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td>884 </ tr>885 < tr class="form-field">886 < th valign="top" scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>887 < td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : ''); // textarea_escaped ?></textarea></td>888 </ tr>889 < tr class="form-field">890 < th valign="top" scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th>891 < td><select name="link_rating" id="link_rating" size="1">876 <div class="form-fields"> 877 <div class="form-row form-field"> 878 <div class="form-label"><label for="link_image"><?php _e('Image Address') ?></label></div> 879 <div class="form-input"><input type="text" name="link_image" class="code" id="link_image" size="50" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" style="width: 95%" /></div> 880 </div> 881 <div class="form-row form-field"> 882 <div class="form-label"><label for="rss_uri"><?php _e('RSS Address') ?></label></div> 883 <div class="form-input"><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></div> 884 </div> 885 <div class="form-row form-field"> 886 <div class="form-label"><label for="link_notes"><?php _e('Notes') ?></label></div> 887 <div class="form-input"><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : ''); // textarea_escaped ?></textarea></div> 888 </div> 889 <div class="form-row form-field"> 890 <div class="form-label"><label for="link_rating"><?php _e('Rating') ?></label></div> 891 <div class="form-input"><select name="link_rating" id="link_rating" size="1"> 892 892 <?php 893 893 for ($r = 0; $r <= 10; $r++) { 894 894 echo(' <option value="'. esc_attr($r) .'" '); … … 897 897 echo('>'.$r.'</option>'); 898 898 } 899 899 ?></select> <?php _e('(Leave at 0 for no rating.)') ?> 900 </ td>901 </ tr>902 </ table>900 </div> 901 </div> 902 </div> 903 903 <?php 904 904 } 905 905 -
wp-admin/includes/template.php
622 622 $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />'; 623 623 624 624 echo '<div class="timestamp-wrap">'; 625 echo '<input type="radio" name="publish_when[]" value="immediately" id="immediately" checked="checked" /> <label for="immediately">' . __( 'Immediately' ) . '</label><br />'; 626 echo '<input type="radio" name="publish_when[]" value="future" id="future" /> <label for="future">'; 625 627 /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */ 626 628 printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute); 627 629 echo '</label>'; 628 630 echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />'; 629 631 630 632 if ( $multi ) return; … … 1160 1162 call_user_func($section['callback'], $section); 1161 1163 if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) 1162 1164 continue; 1163 echo '< table class="form-table">';1165 echo '<div class="form-fields">'; 1164 1166 do_settings_fields($page, $section['id']); 1165 echo '</ table>';1167 echo '</div>'; 1166 1168 } 1167 1169 } 1168 1170 … … 1187 1189 return; 1188 1190 1189 1191 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1190 echo '< tr valign="top">';1192 echo '<div class="field-row">'; 1191 1193 if ( !empty($field['args']['label_for']) ) 1192 echo '< th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>';1194 echo '<div class="form-label"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></div>'; 1193 1195 else 1194 echo '< th scope="row">' . $field['title'] . '</th>';1195 echo '< td>';1196 echo '<div class="form-label">' . $field['title'] . '</div>'; 1197 echo '<div class="field-input">'; 1196 1198 call_user_func($field['callback'], $field['args']); 1197 echo '</ td>';1198 echo '</ tr>';1199 echo '</div>'; 1200 echo '</div>'; 1199 1201 } 1200 1202 } 1201 1203 -
wp-admin/includes/ms.php
612 612 613 613 function choose_primary_blog() { 614 614 ?> 615 <table class="form-table"> 616 <tr> 617 <?php /* translators: My sites label */ ?> 618 <th scope="row"><?php _e( 'Primary Site' ); ?></th> 619 <td> 620 <?php 621 $all_blogs = get_blogs_of_user( get_current_user_id() ); 622 $primary_blog = get_user_meta( get_current_user_id(), 'primary_blog', true ); 623 if ( count( $all_blogs ) > 1 ) { 624 $found = false; 625 ?> 626 <select name="primary_blog"> 627 <?php foreach( (array) $all_blogs as $blog ) { 628 if ( $primary_blog == $blog->userblog_id ) 629 $found = true; 630 ?><option value="<?php echo $blog->userblog_id ?>"<?php selected( $primary_blog, $blog->userblog_id ); ?>><?php echo esc_url( get_home_url( $blog->userblog_id ) ) ?></option><?php 631 } ?> 632 </select> 615 <div class="form-fields"> 616 <div class="form-row"> 617 <?php /* translators: My sites label */ ?> 618 <div class="form-label"><?php _e( 'Primary Site' ); ?></div> 619 <div class="form-input"> 633 620 <?php 634 if ( !$found ) { 621 $all_blogs = get_blogs_of_user( get_current_user_id() ); 622 $primary_blog = get_user_meta( get_current_user_id(), 'primary_blog', true ); 623 if ( count( $all_blogs ) > 1 ) { 624 $found = false; 625 ?> 626 <select name="primary_blog"> 627 <?php foreach( (array) $all_blogs as $blog ) { 628 if ( $primary_blog == $blog->userblog_id ) 629 $found = true; 630 ?><option value="<?php echo $blog->userblog_id ?>"<?php selected( $primary_blog, $blog->userblog_id ); ?>><?php echo esc_url( get_home_url( $blog->userblog_id ) ) ?></option><?php 631 } ?> 632 </select> 633 <?php 634 if ( !$found ) { 635 $blog = array_shift( $all_blogs ); 636 update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id ); 637 } 638 } elseif ( count( $all_blogs ) == 1 ) { 635 639 $blog = array_shift( $all_blogs ); 636 update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id ); 640 echo $blog->domain; 641 if ( $primary_blog != $blog->userblog_id ) // Set the primary blog again if it's out of sync with blog list. 642 update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id ); 643 } else { 644 echo "N/A"; 637 645 } 638 } elseif ( count( $all_blogs ) == 1 ) { 639 $blog = array_shift( $all_blogs ); 640 echo $blog->domain; 641 if ( $primary_blog != $blog->userblog_id ) // Set the primary blog again if it's out of sync with blog list. 642 update_user_meta( get_current_user_id(), 'primary_blog', $blog->userblog_id ); 643 } else { 644 echo "N/A"; 645 } 646 ?> 647 </td> 648 </tr> 646 ?> 647 </div> 648 </div> 649 649 <?php if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) : ?> 650 < tr>651 < th scope="row" colspan="2" class="th-full">650 <div class="form-row"> 651 <div class="form-input input-full"> 652 652 <a href="<?php echo apply_filters( 'wp_signup_location', network_home_url( 'wp-signup.php' ) ); ?>"><?php _e( 'Create a New Site' ); ?></a> 653 653 </th> 654 </ tr>654 </div> 655 655 <?php endif; ?> 656 </ table>656 </div> 657 657 <?php 658 658 } 659 659 -
wp-admin/revision.php
153 153 154 154 <h2 class="long-header"><?php echo $h2; ?></h2> 155 155 156 <table class="form-table ie-fixed"> 157 <col class="th" /> 156 <div class="form-fields"> 158 157 <?php if ( 'diff' == $action ) : ?> 159 <tr id="revision"> 160 <th scope="row"></th> 161 <th scope="col" class="th-full"> 158 <div class="form-row" id="revision"> 159 <div class="form-input input-full"> 162 160 <span class="alignleft"><?php printf( __('Older: %s'), wp_post_revision_title( $left_revision ) ); ?></span> 163 161 <span class="alignright"><?php printf( __('Newer: %s'), wp_post_revision_title( $right_revision ) ); ?></span> 164 </ th>165 </ tr>162 </div> 163 </div> 166 164 <?php endif; 167 165 168 166 // use get_post_to_edit filters? … … 180 178 } 181 179 ?> 182 180 183 < trid="revision-field-<?php echo $field; ?>">184 < th scope="row"><?php echo esc_html( $field_title ); ?></th>185 < td><div class="pre"><?php echo $content; ?></div></td>186 </ tr>181 <div class="form-row" id="revision-field-<?php echo $field; ?>"> 182 <div class="form-label"><?php echo esc_html( $field_title ); ?></div> 183 <div class="form-input"><div class="pre"><?php echo $content; ?></div></div> 184 </div> 187 185 188 186 <?php 189 187 … … 193 191 194 192 ?> 195 193 196 < tr><td colspan="2"><div class="updated"><p><?php _e( 'These revisions are identical.' ); ?></p></div></td></tr>194 <div class="form-row"><div class="form-input"><div class="updated"><p><?php _e( 'These revisions are identical.' ); ?></p></div></div></div> 197 195 198 196 <?php 199 197 … … 201 199 202 200 ?> 203 201 204 </ table>202 </div> 205 203 206 <br class="clear" />207 208 204 <h3><?php echo $title; ?></h3> 209 205 210 206 <?php -
wp-admin/custom-header.php
432 432 <?php } ?> 433 433 434 434 <h3><?php _e( 'Header Image' ) ?></h3> 435 <table class="form-table"> 436 <tbody> 437 438 439 <tr valign="top"> 440 <th scope="row"><?php _e( 'Preview' ); ?></th> 441 <td > 435 <div class="form-fields"> 436 <div class="form-row"> 437 <div class="form-label"><?php _e( 'Preview' ); ?></div> 438 <div class="form-input"> 442 439 <?php if ( $this->admin_image_div_callback ) { 443 440 call_user_func( $this->admin_image_div_callback ); 444 441 } else { … … 454 451 <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> 455 452 </div> 456 453 <?php } ?> 457 </ td>458 </ tr>454 </div> 455 </div> 459 456 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?> 460 < tr valign="top">461 < th scope="row"><?php _e( 'Upload Image' ); ?></th>462 < td>457 <div class="form-row"> 458 <div class="form-label"><?php _e( 'Upload Image' ); ?></div> 459 <div class="form-input"> 463 460 <p><?php _e( 'You can upload a custom header image to be shown at the top of your site instead of the default one. On the next screen you will be able to crop the image.' ); ?><br /> 464 461 <?php printf( __( 'Images of exactly <strong>%1$d × %2$d pixels</strong> will be used as-is.' ), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); ?></p> 465 462 <form enctype="multipart/form-data" id="upload-form" method="post" action="<?php echo esc_attr( add_query_arg( 'step', 2 ) ) ?>"> … … 471 468 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?> 472 469 </p> 473 470 </form> 474 </ td>475 </ tr>471 </div> 472 </div> 476 473 <?php endif; ?> 477 </tbody> 478 </table> 474 </div> 479 475 480 476 <form method="post" action="<?php echo esc_attr( add_query_arg( 'step', 1 ) ) ?>"> 481 <table class="form-table"> 482 <tbody> 477 <div class="form-fields"> 483 478 <?php if ( ! empty( $this->default_headers ) ) : ?> 484 < tr valign="top">485 < th scope="row"><?php _e( 'Default Images' ); ?></th>486 < td>479 <div class="form-row"> 480 <div class="form-label"><?php _e( 'Default Images' ); ?></div> 481 <div class="form-input"> 487 482 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?> 488 483 <p><?php _e( 'If you don‘t want to upload your own image, you can use one of these cool headers.' ) ?></p> 489 484 <?php else: ?> … … 492 487 <?php 493 488 $this->show_default_header_selector(); 494 489 ?> 495 </ td>496 </ tr>490 </div> 491 </div> 497 492 <?php endif; 498 493 499 494 if ( get_header_image() ) : ?> 500 < tr valign="top">501 < th scope="row"><?php _e( 'Remove Image' ); ?></th>502 < td>495 <div class="form-row"> 496 <div class="form-label"><?php _e( 'Remove Image' ); ?></div> 497 <div class="form-input"> 503 498 <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p> 504 499 <?php submit_button( __( 'Remove Header Image' ), 'button', 'removeheader', false ); ?> 505 </ td>506 </ tr>500 </div> 501 </div> 507 502 <?php endif; 508 503 509 504 if ( defined( 'HEADER_IMAGE' ) ) : ?> 510 < tr valign="top">511 < th scope="row"><?php _e( 'Reset Image' ); ?></th>512 < td>505 <div class="form-row"> 506 <div class="form-label"><?php _e( 'Reset Image' ); ?></div> 507 <div class="form-input"> 513 508 <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p> 514 509 <?php submit_button( __( 'Restore Original Header Image' ), 'button', 'resetheader', false ); ?> 515 </ td>516 </ tr>510 </div> 511 </div> 517 512 <?php endif; ?> 518 </tbody> 519 </table> 513 </div> 520 514 521 515 <?php if ( $this->header_text() ) : ?> 522 516 <h3><?php _e( 'Header Text' ) ?></h3> 523 <table class="form-table"> 524 <tbody> 525 <tr valign="top" class="hide-if-no-js"> 526 <th scope="row"><?php _e( 'Display Text' ); ?></th> 527 <td> 517 <div class="form-fields"> 518 <div class="form-row" class="hide-if-no-js"> 519 <div class="form-label"><?php _e( 'Display Text' ); ?></div> 520 <div class="form-input"> 528 521 <p> 529 522 <?php $hidetext = get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ); ?> 530 523 <label><input type="radio" value="1" name="hidetext" id="hidetext"<?php checked( ( 'blank' == $hidetext || empty( $hidetext ) ) ? true : false ); ?> /> <?php _e( 'No' ); ?></label> 531 524 <label><input type="radio" value="0" name="hidetext" id="showtext"<?php checked( ( 'blank' == $hidetext || empty( $hidetext ) ) ? false : true ); ?> /> <?php _e( 'Yes' ); ?></label> 532 525 </p> 533 </td> 534 </tr> 535 536 <tr valign="top" id="text-color-row"> 537 <th scope="row"><?php _e( 'Text Color' ); ?></th> 538 <td> 526 </div> 527 </div> 528 <div class="form-row" id="text-color-row"> 529 <div class="form-label"><?php _e( 'Text Color' ); ?></div> 530 <div class="form-input"> 539 531 <p> 540 532 <input type="text" name="text-color" id="text-color" value="#<?php echo esc_attr( get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) ); ?>" /> 541 533 <span class="description hide-if-js"><?php _e( 'If you want to hide header text, add <strong>#blank</strong> as text color.' );?></span> 542 534 <input type="button" class="button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color' ); ?>" id="pickcolor" /> 543 535 </p> 544 536 <div id="color-picker" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 545 </td> 546 </tr> 547 537 </div> 538 </div> 548 539 <?php if ( defined('HEADER_TEXTCOLOR') && get_theme_mod('header_textcolor') ) { ?> 549 < tr valign="top">550 < th scope="row"><?php _e('Reset Text Color'); ?></th>551 < td>540 <div class="form-row"> 541 <div class="form-label"><?php _e('Reset Text Color'); ?></div> 542 <div class="form-input"> 552 543 <p><?php _e( 'This will restore the original header text. You will not be able to restore any customizations.' ) ?></p> 553 544 <?php submit_button( __( 'Restore Original Header Text' ), 'button', 'resettext', false ); ?> 554 </ td>555 </ tr>545 </div> 546 </div> 556 547 <?php } ?> 557 558 </tbody> 559 </table> 548 </div> 560 549 <?php endif; 561 550 562 551 do_action( 'custom_header_options' ); -
wp-admin/comment.php
150 150 ?> 151 151 <p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p> 152 152 153 < table class="form-tablecomment-ays">154 < tr class="alt">155 < th scope="row"><?php _e('Author'); ?></th>156 < td><?php echo $comment->comment_author; ?></td>157 </ tr>153 <div class="form-fields comment-ays"> 154 <div class="form-row alt"> 155 <div class="form-label"><?php _e('Author'); ?></div> 156 <div class="form-field"><?php echo $comment->comment_author; ?></div> 157 </div> 158 158 <?php if ( $comment->comment_author_email ) { ?> 159 < tr>160 < th scope="row"><?php _e('E-mail'); ?></th>161 < td><?php echo $comment->comment_author_email; ?></td>162 </ tr>159 <div class="form-row"> 160 <div class="form-label"><?php _e('E-mail'); ?></div> 161 <div class="form-field"><?php echo $comment->comment_author_email; ?></div> 162 </div> 163 163 <?php } ?> 164 164 <?php if ( $comment->comment_author_url ) { ?> 165 < tr>166 < th scope="row"><?php _e('URL'); ?></th>167 < td><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></td>168 </ tr>165 <div class="form-field"> 166 <div class="form-label"><?php _e('URL'); ?></div> 167 <div class="form-field"><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></div> 168 </div> 169 169 <?php } ?> 170 < tr>171 < th scope="row" valign="top"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></th>172 < td><?php echo $comment->comment_content; ?></td>173 </ tr>174 </ table>170 <div class="form-row"> 171 <div class="form-label"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></div> 172 <div class="form-field"><?php echo $comment->comment_content; ?></div> 173 </div> 174 </div> 175 175 176 176 <p><?php _e('Are you sure you want to do this?'); ?></p> 177 177 -
wp-admin/user-new.php
236 236 <input name="action" type="hidden" value="adduser" /> 237 237 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 238 238 239 < table class="form-table">240 < tr class="form-field form-required">241 < th scope="row"><label for="adduser-email"><?php echo $label; ?></label></th>242 < td><input name="email" type="text" id="adduser-email" value="" /></td>243 </ tr>244 < tr class="form-field">245 < th scope="row"><label for="adduser-role"><?php _e('Role'); ?></label></th>246 < td><select name="role" id="adduser-role">239 <div class="form-fields"> 240 <div class="form-row form-field form-required"> 241 <div class="form-label"><label for="adduser-email"><?php echo $label; ?></label></div> 242 <div class="form-input"><input name="email" type="text" id="adduser-email" value="" /></div> 243 </div> 244 <div class="form-row form-field"> 245 <div class="form-label"><label for="adduser-role"><?php _e('Role'); ?></label></div> 246 <div class="form-input"><select name="role" id="adduser-role"> 247 247 <?php wp_dropdown_roles( get_option('default_role') ); ?> 248 248 </select> 249 </ td>250 </ tr>249 </div> 250 </div> 251 251 <?php if ( is_super_admin() ) { ?> 252 < tr>253 < th scope="row"><label for="adduser-noconfirmation"><?php _e('Skip Confirmation Email') ?></label></th>254 < td><label for="adduser-noconfirmation"><input type="checkbox" name="noconfirmation" id="adduser-noconfirmation" value="1" /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></td>255 </ tr>252 <div class="form-row"> 253 <div class="form-label"><label for="adduser-noconfirmation"><?php _e('Skip Confirmation Email') ?></label></div> 254 <div class="form-input"><label for="adduser-noconfirmation"><input type="checkbox" name="noconfirmation" id="adduser-noconfirmation" value="1" /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></div> 255 </div> 256 256 <?php } ?> 257 </ table>257 </div> 258 258 <?php submit_button( __( 'Add Existing User '), 'primary', 'adduser', true, array( 'id' => 'addusersub' ) ); ?> 259 259 </form> 260 260 <?php … … 282 282 } 283 283 284 284 ?> 285 < table class="form-table">286 < tr class="form-field form-required">287 < th scope="row"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>288 < td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr($new_user_login); ?>" aria-required="true" /></td>289 </ tr>290 < tr class="form-field form-required">291 < th scope="row"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>292 < td><input name="email" type="text" id="email" value="<?php echo esc_attr($new_user_email); ?>" /></td>293 </ tr>285 <div class="form-fields"> 286 <div class="form-row form-field form-required"> 287 <div class="form-label"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 288 <div class="form-input"><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr($new_user_login); ?>" aria-required="true" /></div> 289 </div> 290 <div class="form-row form-field form-required"> 291 <div class="form-label"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 292 <div class="form-input"><input name="email" type="text" id="email" value="<?php echo esc_attr($new_user_email); ?>" /></div> 293 </div> 294 294 <?php if ( !is_multisite() ) { ?> 295 < tr class="form-field">296 < th scope="row"><label for="first_name"><?php _e('First Name') ?> </label></th>297 < td><input name="first_name" type="text" id="first_name" value="<?php echo esc_attr($new_user_firstname); ?>" /></td>298 </ tr>299 < tr class="form-field">300 < th scope="row"><label for="last_name"><?php _e('Last Name') ?> </label></th>301 < td><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr($new_user_lastname); ?>" /></td>302 </ tr>303 < tr class="form-field">304 < th scope="row"><label for="url"><?php _e('Website') ?></label></th>305 < td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td>306 </ tr>295 <div class="form-row form-field"> 296 <div class="form-label"><label for="first_name"><?php _e('First Name') ?> </label></div> 297 <div class="form-input"><input name="first_name" type="text" id="first_name" value="<?php echo esc_attr($new_user_firstname); ?>" /></div> 298 </div> 299 <div class="form-row form-field"> 300 <div class="form-label"><label for="last_name"><?php _e('Last Name') ?> </label></div> 301 <div class="form-input"><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr($new_user_lastname); ?>" /></div> 302 </div> 303 <div class="form-row form-field"> 304 <div class="form-label"><label for="url"><?php _e('Website') ?></label></div> 305 <div class="form-input"><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></div> 306 </div> 307 307 <?php if ( apply_filters('show_password_fields', true) ) : ?> 308 < tr class="form-field form-required">309 < th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></th>310 < td><input name="pass1" type="password" id="pass1" autocomplete="off" />308 <div class="form-row form-field form-required"> 309 <div class="form-label"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></div> 310 <div class="form-input"><input name="pass1" type="password" id="pass1" autocomplete="off" /> 311 311 <br /> 312 312 <input name="pass2" type="password" id="pass2" autocomplete="off" /> 313 313 <br /> 314 314 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 315 315 <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p> 316 </ td>317 </ tr>318 < tr>319 < th scope="row"><label for="send_password"><?php _e('Send Password?') ?></label></th>320 < td><label for="send_password"><input type="checkbox" name="send_password" id="send_password" <?php checked( $new_user_send_password ); ?> /> <?php _e('Send this password to the new user by email.'); ?></label></td>321 </ tr>316 </div> 317 </div> 318 <div class="form-row"> 319 <div class="form-label"><label for="send_password"><?php _e('Send Password?') ?></label></div> 320 <div class="form-input"><label for="send_password"><input type="checkbox" name="send_password" id="send_password" <?php checked( $new_user_send_password ); ?> /> <?php _e('Send this password to the new user by email.'); ?></label></div> 321 </div> 322 322 <?php endif; ?> 323 323 <?php } // !is_multisite ?> 324 < tr class="form-field">325 < th scope="row"><label for="role"><?php _e('Role'); ?></label></th>326 < td><select name="role" id="role">324 <div class="form-row form-field"> 325 <div class="form-label"><label for="role"><?php _e('Role'); ?></label></div> 326 <div class="form-input"><select name="role" id="role"> 327 327 <?php 328 328 if ( !$new_user_role ) 329 329 $new_user_role = !empty($current_role) ? $current_role : get_option('default_role'); 330 330 wp_dropdown_roles($new_user_role); 331 331 ?> 332 332 </select> 333 </ td>334 </ tr>333 </div> 334 </div> 335 335 <?php if ( is_multisite() && is_super_admin() ) { ?> 336 < tr>337 < th scope="row"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></th>338 < td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></td>339 </ tr>336 <div class="form-row"> 337 <div class="form-label"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></div> 338 <div class="form-input"><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></div> 339 </div> 340 340 <?php } ?> 341 </ table>341 </div> 342 342 343 343 <?php submit_button( __( 'Add New User '), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?> 344 344 -
wp-admin/options-general.php
80 80 <form method="post" action="options.php"> 81 81 <?php settings_fields('general'); ?> 82 82 83 < table class="form-table">84 < tr valign="top">85 < th scope="row"><label for="blogname"><?php _e('Site Title') ?></label></th>86 < td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></td>87 </ tr>88 < tr valign="top">89 < th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>90 < td><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" />91 <span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></ td>92 </ tr>83 <div class="form-fields"> 84 <div class="form-row"> 85 <div class="form-label"><label for="blogname"><?php _e('Site Title') ?></label></div> 86 <div class="form-input"><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></div> 87 </div> 88 <div class="form-row"> 89 <div class="form-label"><label for="blogdescription"><?php _e('Tagline') ?></label></div> 90 <div class="form-input"><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" /> 91 <span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></div> 92 </div> 93 93 <?php if ( !is_multisite() ) { ?> 94 < tr valign="top">95 < th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th>96 < 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>97 </ tr>98 < tr valign="top">99 < th scope="row"><label for="home"><?php _e('Site address (URL)') ?></label></th>100 < 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' ?>" />101 <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>102 </ tr>103 < tr valign="top">104 < th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th>105 < td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" />106 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></ td>107 </ tr>108 < tr valign="top">109 < th scope="row"><?php _e('Membership') ?></th>110 < td> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register">94 <div class="form-row"> 95 <div class="form-label"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></div> 96 <div class="form-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> 97 </div> 98 <div class="form-row"> 99 <div class="form-label"><label for="home"><?php _e('Site address (URL)') ?></label></div> 100 <div class="form-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' ?>" /> 101 <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> 102 </div> 103 <div class="form-row"> 104 <div class="form-label"><label for="admin_email"><?php _e('E-mail address') ?> </label></div> 105 <div class="form-input"><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" /> 106 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></div> 107 </div> 108 <div class="form-row"> 109 <div class="form-label"><?php _e('Membership') ?></div> 110 <div class="form-input"> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register"> 111 111 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> /> 112 112 <?php _e('Anyone can register') ?></label> 113 </fieldset></ td>114 </ tr>115 < tr valign="top">116 < th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th>117 < td>113 </fieldset></div> 114 </div> 115 <div class="form-row"> 116 <div class="form-label"><label for="default_role"><?php _e('New User Default Role') ?></label></div> 117 <div class="form-input"> 118 118 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select> 119 </ td>120 </ tr>119 </div> 120 </div> 121 121 <?php } else { ?> 122 < tr valign="top">123 < th scope="row"><label for="new_admin_email"><?php _e('E-mail address') ?> </label></th>124 < td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" />122 <div class="form-row"> 123 <div class="form-label"><label for="new_admin_email"><?php _e('E-mail address') ?> </label></div> 124 <div class="form-input"><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" /> 125 125 <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> 126 126 <?php 127 127 $new_admin_email = get_option( 'new_admin_email' ); … … 130 130 <p><?php printf( __('There is a pending change of the admin e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), $new_admin_email, esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p> 131 131 </div> 132 132 <?php endif; ?> 133 </ td>134 </ tr>133 </div> 134 </div> 135 135 <?php } ?> 136 < tr>136 <div class="form-row"> 137 137 <?php 138 138 if ( !wp_timezone_supported() ) : // no magic timezone support here 139 139 ?> 140 < th scope="row"><label for="gmt_offset"><?php _e('Timezone') ?> </label></th>141 < td>140 <div class="form-label"><label for="gmt_offset"><?php _e('Timezone') ?> </label></div> 141 <div class="form-input"> 142 142 <select name="gmt_offset" id="gmt_offset"> 143 143 <?php 144 144 $current_offset = get_option('gmt_offset'); … … 170 170 <?php endif; ?> 171 171 <br /> 172 172 <span class="description"><?php _e('Unfortunately, you have to manually update this for daylight saving time. The PHP Date/Time library is not supported by your web host.'); ?></span> 173 </ td>173 </div> 174 174 <?php 175 175 else: // looks like we can do nice timezone selection! 176 176 $current_offset = get_option('gmt_offset'); … … 193 193 } 194 194 195 195 ?> 196 < th scope="row"><label for="timezone_string"><?php _e('Timezone') ?></label></th>197 < td>196 <div class="form-label"><label for="timezone_string"><?php _e('Timezone') ?></label></div> 197 <div class="form-input"> 198 198 199 199 <select id="timezone_string" name="timezone_string"> 200 200 <?php echo wp_timezone_choice($tzstring); ?> … … 248 248 ?> 249 249 </span> 250 250 <?php endif; ?> 251 </ td>251 </div> 252 252 253 253 <?php endif; ?> 254 </ tr>255 < tr>256 < th scope="row"><?php _e('Date Format') ?></th>257 < td>254 </div> 255 <div class="form-row"> 256 <div class="form-label"><?php _e('Date Format') ?></div> 257 <div class="form-input"> 258 258 <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend> 259 259 <?php 260 260 … … 283 283 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') . "</p>\n"; 284 284 ?> 285 285 </fieldset> 286 </ td>287 </ tr>288 < tr>289 < th scope="row"><?php _e('Time Format') ?></th>290 < td>286 </div> 287 </div> 288 <div class="form-row"> 289 <div class="form-label"><?php _e('Time Format') ?></div> 290 <div class="form-input"> 291 291 <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend> 292 292 <?php 293 293 … … 314 314 ; 315 315 ?> 316 316 </fieldset> 317 </ td>318 </ tr>319 < tr>320 < th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>321 < td><select name="start_of_week" id="start_of_week">317 </div> 318 </div> 319 <div class="form-row"> 320 <div class="form-label"><label for="start_of_week"><?php _e('Week Starts On') ?></label></div> 321 <div class="form-input"><select name="start_of_week" id="start_of_week"> 322 322 <?php 323 323 for ($day_index = 0; $day_index <= 6; $day_index++) : 324 324 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 325 325 echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>'; 326 326 endfor; 327 327 ?> 328 </select></ td>329 </ tr>328 </select></div> 329 </div> 330 330 <?php do_settings_fields('general', 'default'); ?> 331 331 <?php 332 332 $languages = get_available_languages(); 333 333 if ( is_multisite() && !empty( $languages ) ): 334 334 ?> 335 < tr valign="top">336 < th width="33%" scope="row"><?php _e('Site language:') ?></th>337 < td>335 <div class="form-row"> 336 <div class="form-label"><?php _e('Site language:') ?></div> 337 <div class="form-input"> 338 338 <select name="WPLANG" id="WPLANG"> 339 339 <?php mu_dropdown_languages( $languages, get_option('WPLANG') ); ?> 340 340 </select> 341 </ td>342 </ tr>341 </div> 342 </div> 343 343 <?php 344 344 endif; 345 345 ?> 346 </ table>346 </div> 347 347 348 348 <?php do_settings_sections('general'); ?> 349 349 -
wp-admin/options-media.php
39 39 <h3><?php _e('Image sizes') ?></h3> 40 40 <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> 41 41 42 < table class="form-table">43 < tr valign="top">44 < th scope="row"><?php _e('Thumbnail size') ?></th>45 < td>42 <div class="form-fields"> 43 <div class="form-row"> 44 <div class="form-label"><?php _e('Thumbnail size') ?></div> 45 <div class="form-input"> 46 46 <label for="thumbnail_size_w"><?php _e('Width'); ?></label> 47 47 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" /> 48 48 <label for="thumbnail_size_h"><?php _e('Height'); ?></label> 49 49 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br /> 50 50 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/> 51 51 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label> 52 </ td>53 </ tr>52 </div> 53 </div> 54 54 55 < tr valign="top">56 < th scope="row"><?php _e('Medium size') ?></th>57 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>55 <div class="form-row"> 56 <div class="form-label"><?php _e('Medium size') ?></div> 57 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend> 58 58 <label for="medium_size_w"><?php _e('Max Width'); ?></label> 59 59 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" /> 60 60 <label for="medium_size_h"><?php _e('Max Height'); ?></label> 61 61 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" /> 62 </fieldset></ td>63 </ tr>62 </fieldset></div> 63 </div> 64 64 65 < tr valign="top">66 < th scope="row"><?php _e('Large size') ?></th>67 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>65 <div class="form-row"> 66 <div class="form-label"><?php _e('Large size') ?></div> 67 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend> 68 68 <label for="large_size_w"><?php _e('Max Width'); ?></label> 69 69 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" /> 70 70 <label for="large_size_h"><?php _e('Max Height'); ?></label> 71 71 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" /> 72 </fieldset></ td>73 </ tr>72 </fieldset></div> 73 </div> 74 74 75 75 <?php do_settings_fields('media', 'default'); ?> 76 </ table>76 </div> 77 77 78 78 <h3><?php _e('Embeds') ?></h3> 79 79 80 < table class="form-table">80 <div class="form-fields"> 81 81 82 < tr valign="top">83 < th scope="row"><?php _e('Auto-embeds'); ?></th>84 < 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>82 <div class="form-row"> 83 <div class="form-label"><?php _e('Auto-embeds'); ?></div> 84 <div class="form-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> 85 85 <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> 86 </fieldset></ td>87 </ tr>86 </fieldset></div> 87 </div> 88 88 89 < tr valign="top">90 < th scope="row"><?php _e('Maximum embed size') ?></th>91 < td>89 <div class="form-row"> 90 <div class="form-label"><?php _e('Maximum embed size') ?></div> 91 <div class="form-input"> 92 92 <label for="embed_size_w"><?php _e('Width'); ?></label> 93 93 <input name="embed_size_w" type="text" id="embed_size_w" value="<?php form_option('embed_size_w'); ?>" class="small-text" /> 94 94 <label for="embed_size_h"><?php _e('Height'); ?></label> 95 95 <input name="embed_size_h" type="text" id="embed_size_h" value="<?php form_option('embed_size_h'); ?>" class="small-text" /> 96 96 <?php if ( !empty($content_width) ) echo '<br />' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?> 97 </ td>98 </ tr>97 </div> 98 </div> 99 99 100 100 <?php do_settings_fields('media', 'embeds'); ?> 101 </ table>101 </div> 102 102 103 103 <?php if ( !is_multisite() ) : ?> 104 104 <h3><?php _e('Uploading Files'); ?></h3> 105 < table class="form-table">106 < tr valign="top">107 < th scope="row"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></th>108 < td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" />105 <div class="form-fields"> 106 <div class="form-row"> 107 <div class="form-label"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></div> 108 <div class="form-input"><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" /> 109 109 <span class="description"><?php _e('Default is <code>wp-content/uploads</code>'); ?></span> 110 </ td>111 </ tr>110 </div> 111 </div> 112 112 113 < tr valign="top">114 < th scope="row"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></th>115 < 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" />113 <div class="form-row"> 114 <div class="form-label"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></div> 115 <div class="form-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" /> 116 116 <span class="description"><?php _e('Configuring this is optional. By default, it should be blank.'); ?></span> 117 </ td>118 </ tr>117 </div> 118 </div> 119 119 120 < tr>121 < th scope="row" colspan="2" class="th-full">120 <div class="form-row"> 121 <div class="form-label label-full"> 122 122 <label for="uploads_use_yearmonth_folders"> 123 123 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> /> 124 124 <?php _e('Organize my uploads into month- and year-based folders'); ?> 125 125 </label> 126 </ th>127 </ tr>126 </div> 127 </div> 128 128 129 129 <?php do_settings_fields('media', 'uploads'); ?> 130 </ table>130 </div> 131 131 <?php endif; ?> 132 132 133 133 <?php do_settings_sections('media'); ?> -
wp-admin/edit-form-comment.php
85 85 <div id="namediv" class="stuffbox"> 86 86 <h3><label for="name"><?php _e( 'Author' ) ?></label></h3> 87 87 <div class="inside"> 88 <table class="form-table editcomment"> 89 <tbody> 90 <tr valign="top"> 91 <td class="first"><?php _e( 'Name:' ); ?></td> 92 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td> 93 </tr> 94 <tr valign="top"> 95 <td class="first"> 88 <div class="form-fields editcomment"> 89 <div class="form-row"> 90 <div class="form-label first"><?php _e( 'Name:' ); ?></div> 91 <div class="form-input"><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></div> 92 </div> 93 <div class="form-row"> 94 <div class="form-label first"> 96 95 <?php 97 96 if ( $comment->comment_author_email ) { 98 97 printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) ); 99 98 } else { 100 99 _e( 'E-mail:' ); 101 100 } 102 ?></ td>103 < td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>104 </ tr>105 < tr valign="top">106 < td class="first">101 ?></div> 102 <div class="form-input"><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></div> 103 </div> 104 <div class="form-row"> 105 <div class="form-label first"> 107 106 <?php 108 107 if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) { 109 108 $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>'; 110 109 printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) ); 111 110 } else { 112 111 _e( 'URL:' ); 113 } ?></td> 114 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td> 115 </tr> 116 </tbody> 117 </table> 112 } ?></div> 113 <div class="form-input"><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></div> 114 </div> 115 </div> 118 116 <br /> 119 117 </div> 120 118 </div> -
wp-admin/edit-tag-form.php
35 35 <input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" /> 36 36 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" /> 37 37 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?> 38 < table class="form-table">39 < trclass="form-field form-required">40 < th scope="row" valign="top"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></th>41 < td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />42 <p class="description"><?php _e('The name is how it appears on your site.'); ?></p></ td>43 </ tr>38 <div class="form-fields"> 39 <div class="form-field form-required"> 40 <div class="form-label"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></div> 41 <div class="form-input"><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" /> 42 <p class="description"><?php _e('The name is how it appears on your site.'); ?></p></div> 43 </div> 44 44 <?php if ( !global_terms_enabled() ) { ?> 45 < trclass="form-field">46 < th scope="row" valign="top"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></th>47 < td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />48 <p class="description"><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></ td>49 </ tr>45 <div class="form-field"> 46 <div class="form-label"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></div> 47 <div class="form-input"><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" /> 48 <p class="description"><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></div> 49 </div> 50 50 <?php } ?> 51 51 <?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> 52 < trclass="form-field">53 < th scope="row" valign="top"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>54 < td>52 <div class="form-field"> 53 <div class="form-label"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></div> 54 <div class="form-input"> 55 55 <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br /> 56 56 <?php if ( 'category' == $taxonomy ) : ?> 57 57 <span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span> 58 58 <?php endif; ?> 59 </ td>60 </ tr>59 </div> 60 </div> 61 61 <?php endif; // is_taxonomy_hierarchical() ?> 62 < trclass="form-field">63 < th scope="row" valign="top"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th>64 < td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $tag->description; // textarea_escaped ?></textarea><br />65 <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></ td>66 </ tr>62 <div class="form-field"> 63 <div class="form-label"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></div> 64 <div class="form-input"><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $tag->description; // textarea_escaped ?></textarea><br /> 65 <span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></div> 66 </div> 67 67 <?php 68 68 // Back compat hooks 69 69 if ( 'category' == $taxonomy ) … … 75 75 76 76 do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy); 77 77 ?> 78 </ table>78 </div> 79 79 <?php 80 80 // Back compat hooks 81 81 if ( 'category' == $taxonomy ) -
wp-admin/network/site-new.php
112 112 } ?> 113 113 <form method="post" action="<?php echo network_admin_url('site-new.php?action=add-site'); ?>"> 114 114 <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?> 115 < table class="form-table">116 < tr class="form-field form-required">117 < th scope="row"><?php _e( 'Site Address' ) ?></th>118 < td>115 <div class="form-fields"> 116 <div class="form-row form-field form-required"> 117 <div class="form-input"><?php _e( 'Site Address' ) ?></div> 118 <div class="form-input"> 119 119 <?php if ( is_subdomain_install() ) { ?> 120 120 <input name="blog[domain]" type="text" class="regular-text" title="<?php _e( 'Domain' ) ?>"/>.<?php echo preg_replace( '|^www\.|', '', $current_site->domain );?> 121 121 <?php } else { … … 123 123 <?php } 124 124 echo '<p>' . __( 'Only the characters a-z and 0-9 recommended.' ) . '</p>'; 125 125 ?> 126 </ td>127 </ tr>128 < tr class="form-field form-required">129 < th scope="row"><?php _e( 'Site Title' ) ?></th>130 < td><input name="blog[title]" type="text" class="regular-text" title="<?php _e( 'Title' ) ?>"/></td>131 </ tr>132 < tr class="form-field form-required">133 < th scope="row"><?php _e( 'Admin Email' ) ?></th>134 < td><input name="blog[email]" type="text" class="regular-text" title="<?php _e( 'Email' ) ?>"/></td>135 </ tr>136 < tr class="form-field">137 <td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></ td>138 </ tr>139 </ table>126 </div> 127 </div> 128 <div class="form-row form-field form-required"> 129 <div class="form-input"><?php _e( 'Site Title' ) ?></div> 130 <div class="form-input"><input name="blog[title]" type="text" class="regular-text" title="<?php _e( 'Title' ) ?>"/></div> 131 </div> 132 <div class="form-row form-field form-required"> 133 <div class="form-input"><?php _e( 'Admin Email' ) ?></div> 134 <div class="form-input"><input name="blog[email]" type="text" class="regular-text" title="<?php _e( 'Email' ) ?>"/></div> 135 </div> 136 <div class="form-row form-field"> 137 <td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></div> 138 </div> 139 </div> 140 140 <?php submit_button( __('Add Site'), 'primary', 'add-site' ); ?> 141 141 </form> 142 142 </div> -
wp-admin/network/site-info.php
111 111 <form method="post" action="site-info.php?action=update-site"> 112 112 <?php wp_nonce_field( 'edit-site' ); ?> 113 113 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 114 < table class="form-table">115 < tr class="form-field form-required">116 < th scope="row"><?php _e( 'Domain' ) ?></th>114 <dev class="form-fields"> 115 <div class="form-input form-field form-required"> 116 <div class="field-label"><?php _e( 'Domain' ) ?></div> 117 117 <?php 118 118 $protocol = is_ssl() ? 'https://' : 'http://'; 119 119 if ( $is_main_site ) { ?> 120 < td><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></td>120 <div class="field-input"><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></div> 121 121 <?php } else { ?> 122 < td><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></td>122 <div class="field-input"><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></div> 123 123 <?php } ?> 124 </ tr>125 < tr class="form-field form-required">126 < th scope="row"><?php _e( 'Path' ) ?></th>124 </div> 125 <div class="form-input form-field form-required"> 126 <div class="field-label"><?php _e( 'Path' ) ?></div> 127 127 <?php if ( $is_main_site ) { ?> 128 < td><code><?php echo esc_attr( $details->path ) ?></code></td>128 <div class="field-input"><code><?php echo esc_attr( $details->path ) ?></code></div> 129 129 <?php } else { ?> 130 < td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' />131 <br /><input type="checkbox" style="width:20px;" name="update_home_url" value="update" <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></ td>130 <div class="field-input"><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' /> 131 <br /><input type="checkbox" style="width:20px;" name="update_home_url" value="update" <?php if ( get_blog_option( $id, 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_blog_option( $id, 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></div> 132 132 <?php } ?> 133 </ tr>134 < tr class="form-field">135 < th scope="row"><?php _ex( 'Registered', 'site' ) ?></th>136 < td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></td>137 </ tr>138 < tr class="form-field">139 < th scope="row"><?php _e( 'Last Updated' ); ?></th>140 < td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td>141 </ tr>133 </div> 134 <div class="form-input form-field"> 135 <div class="field-label"><?php _ex( 'Registered', 'site' ) ?></div> 136 <div class="field-input"><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></div> 137 </div> 138 <div class="form-input form-field"> 139 <div class="field-label"><?php _e( 'Last Updated' ); ?></div> 140 <div class="field-input"><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></div> 141 </div> 142 142 <?php 143 143 $attribute_fields = array( 'public' => __( 'Public' ) ); 144 144 if ( ! $is_main_site ) { … … 148 148 } 149 149 $attribute_fields['mature'] = __( 'Mature' ); 150 150 ?> 151 < tr>152 < th scope="row"><?php _e( 'Attributes' ); ?></th>153 < td>151 <div class="field-row"> 152 <div class="field-label"><?php _e( 'Attributes' ); ?></div> 153 <div class="field-input"> 154 154 <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?> 155 155 <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> /> 156 156 <?php echo $field_label; ?></label><br/> 157 157 <?php endforeach; ?> 158 </ td>159 </ tr>160 </ table>158 </div> 159 </div> 160 </div> 161 161 <?php submit_button(); ?> 162 162 </form> 163 163 -
wp-admin/network/settings.php
49 49 <form method="post" action="edit.php?action=siteoptions"> 50 50 <?php wp_nonce_field( 'siteoptions' ); ?> 51 51 <h3><?php _e( 'Operational Settings' ); ?></h3> 52 < table class="form-table">53 < tr valign="top">54 < th scope="row"><label for="site_name"><?php _e( 'Network Name' ) ?></label></th>55 < td>52 <div class="form-fields"> 53 <div class="form-row"> 54 <div class="form-label"><label for="site_name"><?php _e( 'Network Name' ) ?></label></div> 55 <div class="form-input"> 56 56 <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" /> 57 57 <br /> 58 58 <?php _e( 'What you would like to call this website.' ) ?> 59 </ td>60 </ tr>59 </div> 60 </div> 61 61 62 < tr valign="top">63 < th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>64 < td>62 <div class="form-row"> 63 <div class="form-label"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></div> 64 <div class="form-input"> 65 65 <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" /> 66 66 <br /> 67 67 <?php printf( __( 'Registration and support emails will come from this address. An address such as <code>support@%s</code> is recommended.' ), $current_site->domain ); ?> 68 </ td>69 </ tr>70 </ table>68 </div> 69 </div> 70 </div> 71 71 <h3><?php _e( 'Registration Settings' ); ?></h3> 72 < table class="form-table">73 < tr valign="top">74 < th scope="row"><?php _e( 'Allow new registrations' ) ?></th>72 <div class="form-fields"> 73 <div class="form-row"> 74 <div class="form-label"><?php _e( 'Allow new registrations' ) ?></div> 75 75 <?php 76 76 if ( !get_site_option( 'registration' ) ) 77 77 update_site_option( 'registration', 'none' ); 78 78 $reg = get_site_option( 'registration' ); 79 79 ?> 80 < td>80 <div class="form-input"> 81 81 <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none') ?> /> <?php _e( 'Registration is disabled.' ); ?></label><br /> 82 82 <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br /> 83 83 <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog') ?> /> <?php _e( 'Logged in users may register new sites.' ); ?></label><br /> … … 85 85 <?php if ( is_subdomain_install() ) 86 86 _e( 'If registration is disabled, please set <code>NOBLOGREDIRECT</code> in <code>wp-config.php</code> to a URL you will redirect visitors to if they visit a non-existent site.' ); 87 87 ?> 88 </ td>89 </ tr>88 </div> 89 </div> 90 90 91 < tr valign="top">92 < th scope="row"><?php _e( 'Registration notification' ) ?></th>91 <div class="form-row"> 92 <div class="form-label"><?php _e( 'Registration notification' ) ?></div> 93 93 <?php 94 94 if ( !get_site_option( 'registrationnotification' ) ) 95 95 update_site_option( 'registrationnotification', 'yes' ); 96 96 ?> 97 < td>97 <div class="form-input"> 98 98 <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label> 99 </ td>100 </ tr>99 </div> 100 </div> 101 101 102 < tr valign="top" id="addnewusers">103 < th scope="row"><?php _e( 'Add New Users' ) ?></th>104 < td>102 <div class="form-row" id="addnewusers"> 103 <div class="form-label"><?php _e( 'Add New Users' ) ?></div> 104 <div class="form-input"> 105 105 <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ) ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users → Add New" page.' ); ?></label> 106 </ td>107 </ tr>106 </div> 107 </div> 108 108 109 < tr valign="top">110 < th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></th>111 < td>109 <div class="form-row"> 110 <div class="form-label"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></div> 111 <div class="form-input"> 112 112 <input name="illegal_names" type="text" id="illegal_names" class="large-text" value="<?php echo esc_attr( implode( " ", (array) get_site_option( 'illegal_names' ) ) ); ?>" size="45" /> 113 113 <br /> 114 114 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?> 115 </ td>116 </ tr>115 </div> 116 </div> 117 117 118 < tr valign="top">119 < th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></th>120 < td>118 <div class="form-row"> 119 <div class="form-label"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></div> 120 <div class="form-input"> 121 121 <?php $limited_email_domains = get_site_option( 'limited_email_domains' ); 122 122 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?> 123 123 <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5"> 124 124 <?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea> 125 125 <br /> 126 126 <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?> 127 </ td>128 </ tr>127 </div> 128 </div> 129 129 130 < tr valign="top">131 < th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th>132 < td>130 <div class="form-row"> 131 <div class="form-label"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></div> 132 <div class="form-input"> 133 133 <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5"> 134 134 <?php echo esc_textarea( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea> 135 135 <br /> 136 136 <?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?> 137 </ td>138 </ tr>137 </div> 138 </div> 139 139 140 </ table>140 </div> 141 141 <h3><?php _e('New Site Settings'); ?></h3> 142 < table class="form-table">142 <div class="form-fields"> 143 143 144 < tr valign="top">145 < th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>146 < td>144 <div class="form-row"> 145 <div class="form-label"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></div> 146 <div class="form-input"> 147 147 <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text"> 148 148 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea> 149 149 <br /> 150 150 <?php _e( 'The welcome email sent to new site owners.' ) ?> 151 </ td>152 </ tr>153 < tr valign="top">154 < th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>155 < td>151 </div> 152 </div> 153 <div class="form-row"> 154 <div class="form-label"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></div> 155 <div class="form-input"> 156 156 <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text"> 157 157 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea> 158 158 <br /> 159 159 <?php _e( 'The welcome email sent to new users.' ) ?> 160 </ td>161 </ tr>162 < tr valign="top">163 < th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>164 < td>160 </div> 161 </div> 162 <div class="form-row"> 163 <div class="form-label"><label for="first_post"><?php _e( 'First Post' ) ?></label></div> 164 <div class="form-input"> 165 165 <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text"> 166 166 <?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea> 167 167 <br /> 168 168 <?php _e( 'The first post on a new site.' ) ?> 169 </ td>170 </ tr>171 < tr valign="top">172 < th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>173 < td>169 </div> 170 </div> 171 <div class="form-row"> 172 <div class="form-label"><label for="first_page"><?php _e( 'First Page' ) ?></label></div> 173 <div class="form-input"> 174 174 <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text"> 175 175 <?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea> 176 176 <br /> 177 177 <?php _e( 'The first page on a new site.' ) ?> 178 </ td>179 </ tr>180 < tr valign="top">181 < th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>182 < td>178 </div> 179 </div> 180 <div class="form-row"> 181 <div class="form-label"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></div> 182 <div class="form-input"> 183 183 <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text"> 184 184 <?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea> 185 185 <br /> 186 186 <?php _e( 'The first comment on a new site.' ) ?> 187 </ td>188 </ tr>189 < tr valign="top">190 < th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>191 < td>187 </div> 188 </div> 189 <div class="form-row"> 190 <div class="form-label"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></div> 191 <div class="form-input"> 192 192 <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" /> 193 193 <br /> 194 194 <?php _e( 'The author of the first comment on a new site.' ) ?> 195 </ td>196 </ tr>197 < tr valign="top">198 < th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th>199 < td>195 </div> 196 </div> 197 <div class="form-row"> 198 <div class="form-label"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></div> 199 <div class="form-input"> 200 200 <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" /> 201 201 <br /> 202 202 <?php _e( 'The URL for the first comment on a new site.' ) ?> 203 </ td>204 </ tr>205 </ table>203 </div> 204 </div> 205 </div> 206 206 <h3><?php _e( 'Upload Settings' ); ?></h3> 207 < table class="form-table">208 < tr valign="top">209 < th scope="row"><?php _e( 'Media upload buttons' ) ?></th>207 <div class="form-fields"> 208 <div class="form-row"> 209 <div class="form-label"><?php _e( 'Media upload buttons' ) ?></div> 210 210 <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?> 211 < td><label><input type="checkbox" id="mu_media_buttons_image" name="mu_media_buttons[image]" value="1"<?php checked( ! empty( $mu_media_buttons['image'] ) ) ?>/> <?php _e( 'Images' ); ?></label><br />211 <div class="form-input"><label><input type="checkbox" id="mu_media_buttons_image" name="mu_media_buttons[image]" value="1"<?php checked( ! empty( $mu_media_buttons['image'] ) ) ?>/> <?php _e( 'Images' ); ?></label><br /> 212 212 <label><input type="checkbox" id="mu_media_buttons_video" name="mu_media_buttons[video]" value="1"<?php checked( ! empty( $mu_media_buttons['video'] ) ) ?>/> <?php _e( 'Videos' ); ?></label><br /> 213 213 <label><input type="checkbox" id="mu_media_buttons_audio" name="mu_media_buttons[audio]" value="1"<?php checked( ! empty( $mu_media_buttons['audio'] ) ) ?>/> <?php _e( 'Music' ); ?></label><br /> 214 <?php _e( 'The media upload buttons to display on the “Write Post” page. Make sure you update the allowed upload file types below as well.' ); ?></ td>215 </ tr>214 <?php _e( 'The media upload buttons to display on the “Write Post” page. Make sure you update the allowed upload file types below as well.' ); ?></div> 215 </div> 216 216 217 < tr valign="top">218 < th scope="row"><?php _e( 'Site upload space' ) ?></th>219 < td>217 <div class="form-row"> 218 <div class="form-label"><?php _e( 'Site upload space' ) ?></div> 219 <div class="form-input"> 220 220 <label><input type="checkbox" id="upload_space_check_disabled" name="upload_space_check_disabled" value="0"<?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php printf( __( 'Limit total size of files uploaded to %s MB' ), '</label><label><input name="blog_upload_space" type="text" id="blog_upload_space" value="' . esc_attr( get_site_option('blog_upload_space', 10) ) . '" size="3" />' ); ?></label><br /> 221 </ td>222 </ tr>221 </div> 222 </div> 223 223 224 < tr valign="top">225 < th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th>226 < td><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></td>227 </ tr>224 <div class="form-row"> 225 <div class="form-label"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></div> 226 <div class="form-input"><input name="upload_filetypes" type="text" id="upload_filetypes" class="large-text" value="<?php echo esc_attr( get_site_option('upload_filetypes', 'jpg jpeg png gif') ) ?>" size="45" /></div> 227 </div> 228 228 229 < tr valign="top">230 < th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></th>231 < td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></td>232 </ tr>233 </ table>229 <div class="form-row"> 230 <div class="form-label"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></div> 231 <div class="form-input"><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="text" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" size="5" />' ); ?></div> 232 </div> 233 </div> 234 234 235 235 <?php 236 236 $languages = get_available_languages(); … … 238 238 $lang = get_site_option( 'WPLANG' ); 239 239 ?> 240 240 <h3><?php _e( 'Language Settings' ); ?></h3> 241 < table class="form-table">242 <tr valign="top">243 <th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>244 <td>245 246 247 248 </td>249 </tr>250 </ table>241 <div class="form-fields"> 242 <div class="form-row"> 243 <div class="form-label"><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></div> 244 <div class="form-input"> 245 <select name="WPLANG" id="WPLANG"> 246 <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?> 247 </select> 248 </div> 249 </div> 250 </div> 251 251 <?php 252 252 } // languages 253 253 ?> 254 254 255 255 <h3><?php _e( 'Menu Settings' ); ?></h3> 256 < table id="menu" class="form-table">257 < tr valign="top">258 < th scope="row"><?php _e( 'Enable administration menus' ); ?></th>259 < td>256 <div id="menu" class="form-fields"> 257 <div class="form-row"> 258 <div class="form-label"><?php _e( 'Enable administration menus' ); ?></div> 259 <div class="form-input"> 260 260 <?php 261 261 $menu_perms = get_site_option( 'menu_items' ); 262 262 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); … … 264 264 echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>"; 265 265 } 266 266 ?> 267 </ td>268 </ tr>269 </ table>267 </div> 268 </div> 269 </div> 270 270 271 271 <?php do_action( 'wpmu_options' ); // Add more options here ?> 272 272 -
wp-admin/network/site-settings.php
101 101 <form method="post" action="site-settings.php?action=update-site"> 102 102 <?php wp_nonce_field( 'edit-site' ); ?> 103 103 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 104 < table class="form-table">104 <div class="form-fields"> 105 105 <?php 106 106 $blog_prefix = $wpdb->get_blog_prefix( $id ); 107 107 $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" ); … … 121 121 } 122 122 if ( strpos( $option->option_value, "\n" ) !== false ) { 123 123 ?> 124 < tr class="form-field">125 < th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></th>126 < td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></td>127 </ tr>124 <div class="form-row form-field"> 125 <div class="form-label"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></div> 126 <div class="form-input"><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></div> 127 </div> 128 128 <?php 129 129 } else { 130 130 ?> 131 < tr class="form-field">132 < th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>131 <div class="form-row form-field"> 132 <div class="form-label"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></div> 133 133 <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?> 134 < td><code><?php echo esc_html( $option->option_value ) ?></code></td>134 <div class="form-input"><code><?php echo esc_html( $option->option_value ) ?></code></div> 135 135 <?php } else { ?> 136 < td><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></td>136 <div class="form-input"><input class="<?php echo $class; ?>" name="option[<?php echo esc_attr( $option->option_name ) ?>]" type="text" id="<?php echo esc_attr( $option->option_name ) ?>" value="<?php echo esc_attr( $option->option_value ) ?>" size="40" <?php disabled( $disabled ) ?> /></div> 137 137 <?php } ?> 138 </ tr>138 </div> 139 139 <?php 140 140 } 141 141 } // End foreach 142 142 do_action( 'wpmueditblogaction', $id ); 143 143 ?> 144 </ table>144 </div> 145 145 <?php submit_button(); ?> 146 146 </form> 147 147 -
wp-admin/network/site-users.php
244 244 <form action="site-users.php?action=adduser" id="adduser" method="post"> 245 245 <?php wp_nonce_field( 'edit-site' ); ?> 246 246 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 247 < table class="form-table">248 < tr>249 < th scope="row"><?php _e( 'Username' ); ?></th>250 < td><input type="text" class="regular-text" name="newuser" id="newuser" /></td>251 </ tr>252 < tr>253 < th scope="row"><?php _e( 'Role'); ?></th>254 < td><select name="new_role" id="new_role_0">247 <div class="form-fields"> 248 <div class="form-row"> 249 <div class="form-label"><?php _e( 'Username' ); ?></div> 250 <div class="form-input"><input type="text" class="regular-text" name="newuser" id="newuser" /></div> 251 </div> 252 <div class="form-row"> 253 <div class="form-label"><?php _e( 'Role'); ?></div> 254 <div class="form-input"><select name="new_role" id="new_role_0"> 255 255 <?php 256 256 reset( $editblog_roles ); 257 257 foreach ( $editblog_roles as $role => $role_assoc ){ … … 260 260 echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 261 261 } 262 262 ?> 263 </select></ td>264 </ tr>265 </ table>263 </select></div> 264 </div> 265 </div> 266 266 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 267 267 <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?> 268 268 </form> … … 273 273 <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 274 274 <?php wp_nonce_field( 'edit-site' ); ?> 275 275 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 276 < table class="form-table">277 < tr>278 < th scope="row"><?php _e( 'Username' ) ?></th>279 < td><input type="text" class="regular-text" name="user[username]" /></td>280 </ tr>281 < tr>282 < th scope="row"><?php _e( 'Email' ) ?></th>283 < td><input type="text" class="regular-text" name="user[email]" /></td>284 </ tr>285 < tr>286 < th scope="row"><?php _e( 'Role'); ?></th>287 < td><select name="new_role" id="new_role_0">276 <div class="form-fields"> 277 <div class="form-row"> 278 <div class="form-label"><?php _e( 'Username' ) ?></div> 279 <div class="form-input"><input type="text" class="regular-text" name="user[username]" /></div> 280 </div> 281 <div class="form-row"> 282 <div class="form-label"><?php _e( 'Email' ) ?></div> 283 <div class="form-input"><input type="text" class="regular-text" name="user[email]" /></div> 284 </div> 285 <div class="form-row"> 286 <div class="form-label"><?php _e( 'Role'); ?></div> 287 <div class="form-input"><select name="new_role" id="new_role_0"> 288 288 <?php 289 289 reset( $editblog_roles ); 290 290 foreach ( $editblog_roles as $role => $role_assoc ){ … … 293 293 echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 294 294 } 295 295 ?> 296 </select></ td>297 </ tr>298 < tr class="form-field">299 < td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>300 </ tr>301 </ table>296 </select></div> 297 </div> 298 <div class="form-row form-field"> 299 <div class="form-input input-full"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div> 300 </div> 301 </div> 302 302 <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ) ?> 303 303 <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?> 304 304 </form> -
wp-admin/network/user-new.php
72 72 echo '<div id="message" class="updated"><p>' . $msg . '</p></div>'; 73 73 } ?> 74 74 <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post"> 75 < table class="form-table">76 < tr class="form-field form-required">77 < th scope="row"><?php _e( 'Username' ) ?></th>78 < td><input type="text" class="regular-text" name="user[username]" /></td>79 </ tr>80 < tr class="form-field form-required">81 < th scope="row"><?php _e( 'Email' ) ?></th>82 < td><input type="text" class="regular-text" name="user[email]" /></td>83 </ tr>84 < tr class="form-field">85 < td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td>86 </ tr>87 </ table>75 <div class="form-fields"> 76 <div class="form-row form-field form-required"> 77 <div class="form-label"><?php _e( 'Username' ) ?></div> 78 <div class="form-input"><input type="text" class="regular-text" name="user[username]" /></div> 79 </div> 80 <div class="form-row form-field form-required"> 81 <div class="form-label"><?php _e( 'Email' ) ?></div> 82 <div class="form-input"><input type="text" class="regular-text" name="user[email]" /></div> 83 </div> 84 <div class="form-row form-field"> 85 <div class="form-input input-full"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div> 86 </div> 87 </div> 88 88 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 89 89 <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?> 90 90 </form> -
wp-admin/options-discussion.php
33 33 <form method="post" action="options.php"> 34 34 <?php settings_fields('discussion'); ?> 35 35 36 < table class="form-table">37 < tr valign="top">38 < th scope="row"><?php _e('Default article settings') ?></th>39 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings') ?></span></legend>36 <div class="form-fields"> 37 <div class="form-row"> 38 <div class="form-label"><?php _e('Default article settings') ?></div> 39 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings') ?></span></legend> 40 40 <label for="default_pingback_flag"> 41 41 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> /> 42 42 <?php _e('Attempt to notify any blogs linked to from the article.') ?></label> … … 50 50 <?php _e('Allow people to post comments on new articles') ?></label> 51 51 <br /> 52 52 <small><em><?php echo '(' . __('These settings may be overridden for individual articles.') . ')'; ?></em></small> 53 </fieldset></ td>54 </ tr>55 < tr valign="top">56 < th scope="row"><?php _e('Other comment settings') ?></th>57 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings') ?></span></legend>53 </fieldset></div> 54 </div> 55 <div class="form-row"> 56 <div class="form-label"><?php _e('Other comment settings') ?></div> 57 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings') ?></span></legend> 58 58 <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> 59 59 <br /> 60 60 <label for="comment_registration"> … … 110 110 printf( __('Comments should be displayed with the %s comments at the top of each page'), $comment_order ); 111 111 112 112 ?></label> 113 </fieldset></ td>114 </ tr>115 < tr valign="top">116 < th scope="row"><?php _e('E-mail me whenever') ?></th>117 < td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever') ?></span></legend>113 </fieldset></div> 114 </div> 115 <div class="form-row"> 116 <div class="form-label"><?php _e('E-mail me whenever') ?></div> 117 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever') ?></span></legend> 118 118 <label for="comments_notify"> 119 119 <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> /> 120 120 <?php _e('Anyone posts a comment') ?> </label> … … 122 122 <label for="moderation_notify"> 123 123 <input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_option('moderation_notify')); ?> /> 124 124 <?php _e('A comment is held for moderation') ?> </label> 125 </fieldset></ td>126 </ tr>127 < tr valign="top">128 < th scope="row"><?php _e('Before a comment appears') ?></th>129 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears') ?></span></legend>125 </fieldset></div> 126 </div> 127 <div class="form-row"> 128 <div class="form-label"><?php _e('Before a comment appears') ?></div> 129 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears') ?></span></legend> 130 130 <label for="comment_moderation"> 131 131 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> /> 132 132 <?php _e('An administrator must always approve the comment') ?> </label> 133 133 <br /> 134 134 <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> 135 </fieldset></ td>136 </ tr>137 < tr valign="top">138 < th scope="row"><?php _e('Comment Moderation') ?></th>139 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation') ?></span></legend>135 </fieldset></div> 136 </div> 137 <div class="form-row"> 138 <div class="form-label"><?php _e('Comment Moderation') ?></div> 139 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation') ?></span></legend> 140 140 <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> 141 141 142 142 <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> 143 143 <p> 144 144 <textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea> 145 145 </p> 146 </fieldset></ td>147 </ tr>148 < tr valign="top">149 < th scope="row"><?php _e('Comment Blacklist') ?></th>150 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist') ?></span></legend>146 </fieldset></div> 147 </div> 148 <div class="form-row"> 149 <div class="form-label"><?php _e('Comment Blacklist') ?></div> 150 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist') ?></span></legend> 151 151 <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> 152 152 <p> 153 153 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> 154 154 </p> 155 </fieldset></ td>156 </ tr>155 </fieldset></div> 156 </div> 157 157 <?php do_settings_fields('discussion', 'default'); ?> 158 </ table>158 </div> 159 159 160 160 <h3><?php _e('Avatars') ?></h3> 161 161 … … 163 163 164 164 <?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? ?> 165 165 166 < table class="form-table">167 < tr valign="top">168 < th scope="row"><?php _e('Avatar Display') ?></th>169 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display') ?></span></legend>166 <div class="form-fields"> 167 <div class="form-row"> 168 <div class="form-label"><?php _e('Avatar Display') ?></div> 169 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display') ?></span></legend> 170 170 <?php 171 171 $yesorno = array( 0 => __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) ); 172 172 foreach ( $yesorno as $key => $value) { … … 174 174 echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />"; 175 175 } 176 176 ?> 177 </fieldset></ td>178 </ tr>179 < tr valign="top">180 < th scope="row"><?php _e('Maximum Rating') ?></th>181 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating') ?></span></legend>177 </fieldset></div> 178 </div> 179 <div class="form-row"> 180 <div class="form-label"><?php _e('Maximum Rating') ?></div> 181 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating') ?></span></legend> 182 182 183 183 <?php 184 184 $ratings = array( … … 197 197 endforeach; 198 198 ?> 199 199 200 </fieldset></ td>201 </ tr>202 < tr valign="top">203 < th scope="row"><?php _e('Default Avatar') ?></th>204 < td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar') ?></span></legend>200 </fieldset></div> 201 </div> 202 <div class="form-row"> 203 <div class="form-label"><?php _e('Default Avatar') ?></div> 204 <div class="form-input defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar') ?></span></legend> 205 205 206 206 <?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 /> 207 207 … … 234 234 echo apply_filters('default_avatar_select', $avatar_list); 235 235 ?> 236 236 237 </fieldset></ td>238 </ tr>237 </fieldset></div> 238 </div> 239 239 <?php do_settings_fields('discussion', 'avatars'); ?> 240 </ table>240 </div> 241 241 242 242 <?php do_settings_sections('discussion'); ?> 243 243 -
wp-admin/options.php
171 171 <?php wp_nonce_field('options-options') ?> 172 172 <input type="hidden" name="action" value="update" /> 173 173 <input type='hidden' name='option_page' value='options' /> 174 < table class="form-table">174 <div class="form-fields"> 175 175 <?php 176 176 $options = $wpdb->get_results( "SELECT * FROM $wpdb->options ORDER BY option_name" ); 177 177 … … 197 197 } 198 198 $name = esc_attr( $option->option_name ); 199 199 echo " 200 < tr>201 < th scope='row'><label for='$name'>" . esc_html( $option->option_name ) . "</label></th>202 < td>";200 <div class='form-row'> 201 <div class='form-label'><label for='$name'>" . esc_html( $option->option_name ) . "</label></div> 202 <div class='form-input'>"; 203 203 if ( strpos( $value, "\n" ) !== false ) 204 204 echo "<textarea class='$class' name='$name' id='$name' cols='30' rows='5'>" . esc_textarea( $value ) . "</textarea>"; 205 205 else 206 206 echo "<input class='regular-text $class' type='text' name='$name' id='$name' value='" . esc_attr( $value ) . "'" . disabled( $disabled, true, false ) . " />"; 207 echo "</ td>208 </ tr>";207 echo "</div> 208 </div>"; 209 209 endforeach; 210 210 ?> 211 </ table>211 </div> 212 212 213 213 <input type="hidden" name="page_options" value="<?php echo esc_attr( implode( ',', $options_to_update ) ); ?>" /> 214 214 -
wp-admin/user-edit.php
65 65 */ 66 66 function use_ssl_preference($user) { 67 67 ?> 68 < tr>69 < th scope="row"><?php _e('Use https')?></th>70 < td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked('1', $user->use_ssl); ?> /> <?php _e('Always use https when visiting the admin'); ?></label></td>71 </ tr>68 <div class="form-row"> 69 <div class="form-label"><?php _e('Use https')?></div> 70 <div class="form-input"><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked('1', $user->use_ssl); ?> /> <?php _e('Always use https when visiting the admin'); ?></label></div> 71 </div> 72 72 <?php 73 73 } 74 74 … … 185 185 186 186 <h3><?php _e('Personal Options'); ?></h3> 187 187 188 < table class="form-table">188 <div class="form-fields"> 189 189 <?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?> 190 < tr>191 < th scope="row"><?php _e('Visual Editor')?></th>192 < td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php checked('false', $profileuser->rich_editing); ?> /> <?php _e('Disable the visual editor when writing'); ?></label></td>193 </ tr>190 <div class="form-row"> 191 <div class="form-label"><?php _e('Visual Editor')?></div> 192 <div class="form-input"><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="false" <?php checked('false', $profileuser->rich_editing); ?> /> <?php _e('Disable the visual editor when writing'); ?></label></div> 193 </div> 194 194 <?php endif; ?> 195 195 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?> 196 < tr>197 < th scope="row"><?php _e('Admin Color Scheme')?></th>198 < td><?php do_action( 'admin_color_scheme_picker' ); ?></td>199 </ tr>196 <div class="form-row"> 197 <div class="form-label"><?php _e('Admin Color Scheme')?></div> 198 <div class="form-input"><?php do_action( 'admin_color_scheme_picker' ); ?></div> 199 </div> 200 200 <?php 201 201 endif; // $_wp_admin_css_colors 202 202 if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?> 203 < tr>204 < th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>205 < td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( !empty($profileuser->comment_shortcuts) ) checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e('Enable keyboard shortcuts for comment moderation.'); ?></label> <?php _e('<a href="http://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>'); ?></td>206 </ tr>203 <div class="form-row"> 204 <div class="form-label"><?php _e( 'Keyboard Shortcuts' ); ?></div> 205 <div class="form-input"><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php if ( !empty($profileuser->comment_shortcuts) ) checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e('Enable keyboard shortcuts for comment moderation.'); ?></label> <?php _e('<a href="http://codex.wordpress.org/Keyboard_Shortcuts" target="_blank">More information</a>'); ?></div> 206 </div> 207 207 <?php endif; ?> 208 < trclass="show-admin-bar">209 < th scope="row"><?php _e('Show Admin Bar')?></th>210 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Show Admin Bar') ?></span></legend>208 <div class="form-row" class="show-admin-bar"> 209 <div class="form-label"><?php _e('Show Admin Bar')?></div> 210 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Show Admin Bar') ?></span></legend> 211 211 <label for="admin_bar_front"> 212 212 <input name="admin_bar_front" type="checkbox" id="admin_bar_front" value="1" <?php checked( _get_admin_bar_pref( 'front', $profileuser->ID ) ); ?> /> 213 213 <?php /* translators: Show admin bar when viewing site */ _e( 'when viewing site' ); ?></label><br /> 214 214 <label for="admin_bar_admin"> 215 215 <input name="admin_bar_admin" type="checkbox" id="admin_bar_admin" value="1" <?php checked( _get_admin_bar_pref( 'admin', $profileuser->ID ) ); ?> /> 216 216 <?php /* translators: Show admin bar in dashboard */ _e( 'in dashboard' ); ?></label> 217 </ td>218 </ tr>217 </div> 218 </div> 219 219 <?php do_action('personal_options', $profileuser); ?> 220 </ table>220 </div> 221 221 <?php 222 222 if ( IS_PROFILE_PAGE ) 223 223 do_action('profile_personal_options', $profileuser); … … 225 225 226 226 <h3><?php _e('Name') ?></h3> 227 227 228 < table class="form-table">229 < tr>230 < th><label for="user_login"><?php _e('Username'); ?></label></th>231 < td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr($profileuser->user_login); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e('Usernames cannot be changed.'); ?></span></td>232 </ tr>228 <div class="form-fields"> 229 <div class="form-row"> 230 <div class="form-label"><label for="user_login"><?php _e('Username'); ?></label></div> 231 <div class="form-input"><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr($profileuser->user_login); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e('Usernames cannot be changed.'); ?></span></div> 232 </div> 233 233 234 234 <?php if ( !IS_PROFILE_PAGE && !is_network_admin() ) : ?> 235 < tr><th><label for="role"><?php _e('Role:') ?></label></th>236 < td><select name="role" id="role">235 <div class="form-row"><div class="form-label"><label for="role"><?php _e('Role:') ?></label></div> 236 <div class="form-input"><select name="role" id="role"> 237 237 <?php 238 238 // Get the highest/primary role for this user 239 239 // TODO: create a function that does this: wp_get_user_role() … … 253 253 <?php endif; //!IS_PROFILE_PAGE 254 254 255 255 if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?> 256 < tr><th><label for="role"><?php _e('Super Admin'); ?></label></th>257 < td>256 <div class="form-row"><div class="form-label"><label for="role"><?php _e('Super Admin'); ?></label></div> 257 <div class="form-input"> 258 258 <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) ) : ?> 259 259 <p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p> 260 260 <?php else : ?> 261 261 <p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p> 262 262 <?php endif; ?> 263 </ td></tr>263 </div></div> 264 264 <?php } ?> 265 265 266 < tr>267 < th><label for="first_name"><?php _e('First Name') ?></label></th>268 < td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td>269 </ tr>266 <div class="form-row"> 267 <div class="form-label"><label for="first_name"><?php _e('First Name') ?></label></div> 268 <div class="form-input"><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></div> 269 </div> 270 270 271 < tr>272 < th><label for="last_name"><?php _e('Last Name') ?></label></th>273 < td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></td>274 </ tr>271 <div class="form-row"> 272 <div class="form-label"><label for="last_name"><?php _e('Last Name') ?></label></div> 273 <div class="form-input"><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></div> 274 </div> 275 275 276 < tr>277 < th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>278 < td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>279 </ tr>276 <div class="form-row"> 277 <div class="form-label"><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 278 <div class="form-input"><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></div> 279 </div> 280 280 281 < tr>282 < th><label for="display_name"><?php _e('Display name publicly as') ?></label></th>283 < td>281 <div class="form-row"> 282 <div class="form-label"><label for="display_name"><?php _e('Display name publicly as') ?></label></div> 283 <div class="form-input"> 284 284 <select name="display_name" id="display_name"> 285 285 <?php 286 286 $public_display = array(); … … 305 305 } 306 306 ?> 307 307 </select> 308 </ td>309 </ tr>310 </ table>308 </div> 309 </div> 310 </div> 311 311 312 312 <h3><?php _e('Contact Info') ?></h3> 313 313 314 < table class="form-table">315 < tr>316 < th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>317 < td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />314 <div class="form-fields"> 315 <div class="form-row"> 316 <div class="form-label"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 317 <div class="form-input"><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" /> 318 318 <?php 319 319 $new_email = get_option( $current_user->ID . '_new_email' ); 320 320 if ( $new_email && $new_email != $current_user->user_email ) : ?> … … 322 322 <p><?php printf( __('There is a pending change of your e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), $new_email['newemail'], esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) ); ?></p> 323 323 </div> 324 324 <?php endif; ?> 325 </ td>326 </ tr>325 </div> 326 </div> 327 327 328 < tr>329 < th><label for="url"><?php _e('Website') ?></label></th>330 < td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>331 </ tr>328 <div class="form-row"> 329 <div class="form-label"><label for="url"><?php _e('Website') ?></label></div> 330 <div class="form-input"><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></div> 331 </div> 332 332 333 333 <?php 334 334 foreach (_wp_get_user_contactmethods( $profileuser ) as $name => $desc) { 335 335 ?> 336 < tr>337 < th><label for="<?php echo $name; ?>"><?php echo apply_filters('user_'.$name.'_label', $desc); ?></label></th>338 < td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></td>339 </ tr>336 <div class="form-row"> 337 <div class="form-label"><label for="<?php echo $name; ?>"><?php echo apply_filters('user_'.$name.'_label', $desc); ?></label></div> 338 <div class="form-input"><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></div> 339 </div> 340 340 <?php 341 341 } 342 342 ?> 343 </ table>343 </div> 344 344 345 345 <h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3> 346 346 347 < table class="form-table">348 < tr>349 < th><label for="description"><?php _e('Biographical Info'); ?></label></th>350 < td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br />351 <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></ td>352 </ tr>347 <div class="form-fields"> 348 <div class="form-row"> 349 <div class="form-label"><label for="description"><?php _e('Biographical Info'); ?></label></div> 350 <div class="form-input"><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br /> 351 <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></div> 352 </div> 353 353 354 354 <?php 355 355 $show_password_fields = apply_filters('show_password_fields', true, $profileuser); 356 356 if ( $show_password_fields ) : 357 357 ?> 358 < trid="password">359 < th><label for="pass1"><?php _e('New Password'); ?></label></th>360 < td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span><br />358 <div class="form-row" id="password"> 359 <div class="form-label"><label for="pass1"><?php _e('New Password'); ?></label></div> 360 <div class="form-input"><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span><br /> 361 361 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br /> 362 362 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 363 363 <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p> 364 </ td>365 </ tr>364 </div> 365 </div> 366 366 <?php endif; ?> 367 </ table>367 </div> 368 368 369 369 <?php 370 370 if ( IS_PROFILE_PAGE ) … … 375 375 376 376 <?php if ( count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true, $profileuser) ) { ?> 377 377 <br class="clear" /> 378 < table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">379 < tr>380 < th scope="row"><?php _e('Additional Capabilities') ?></th>381 < td><?php378 <div class="form-fields editform"> 379 <div class="form-row"> 380 <div class="form-label"><?php _e('Additional Capabilities') ?></div> 381 <div class="form-input"><?php 382 382 $output = ''; 383 383 foreach ( $profileuser->caps as $cap => $value ) { 384 384 if ( !$wp_roles->is_role($cap) ) { … … 388 388 } 389 389 } 390 390 echo $output; 391 ?></ td>392 </ tr>393 </ table>391 ?></div> 392 </div> 393 </div> 394 394 <?php } ?> 395 395 396 396 <input type="hidden" name="action" value="update" /> -
wp-admin/css/install-rtl.dev.css
15 15 font-family: Tahoma, arial; 16 16 margin-right: 0; 17 17 } 18 .form-table th { 18 .form-table th, 19 .form-fields .form-label { 19 20 text-align: right; 20 21 } 21 22 #user_login, #admin_email, #pass1, #pass2 { -
wp-admin/css/wp-admin-rtl.dev.css
213 213 margin-left: 5px; 214 214 } 215 215 /* Tables used on comment.php and option/setting pages */ 216 .form-table th { 216 .form-table th, 217 .form-fields .form-label { 217 218 text-align: right; 218 219 } 219 .form- tableinput.tog {220 .form-fields input.tog { 220 221 margin-right: 0; 221 222 margin-left: 2px; 222 223 float: right; 223 224 } 224 .form- tabletable.color-palette {225 .form-fields table.color-palette { 225 226 float: right; 226 227 } 227 #profile-page .form- table#rich_editing {228 #profile-page .form-fields #rich_editing { 228 229 margin-right: 0; 229 230 margin-left: 5px; 230 231 } -
wp-admin/css/colors-classic.dev.css
48 48 49 49 body, 50 50 #wpbody, 51 .form-table .pre { 51 .form-table .pre, 52 .form-fields .pre { 52 53 color: #174f69; 53 54 } 54 55 … … 143 144 } 144 145 145 146 .form-table th, 146 .form-wrap label { 147 .form-wrap label, 148 .form-fields .form-label { 147 149 color: #222; 148 150 text-shadow: #fff 0 1px 0; 149 151 } … … 1455 1457 background-color: #bbb; 1456 1458 } 1457 1459 1458 .form-table .color-palette td { 1460 .form-table .color-palette td, 1461 .form-fields .color-palette td { 1459 1462 border-color: #fff; 1460 1463 } 1461 1464 -
wp-admin/css/colors-fresh.dev.css
48 48 49 49 body, 50 50 #wpbody, 51 .form-table .pre { 51 .form-table .pre, 52 .form-fields .pre { 52 53 color: #333; 53 54 } 54 55 … … 143 144 } 144 145 145 146 .form-table th, 146 .form-wrap label { 147 .form-wrap label, 148 .form-fields .form-label { 147 149 color: #222; 148 150 text-shadow: #fff 0 1px 0; 149 151 } -
wp-admin/css/wp-admin.dev.css
3351 3351 15.0 - Comments Screen 3352 3352 ------------------------------------------------------------------------------*/ 3353 3353 3354 .form- table{3355 border-collapse: collapse;3354 .form-fields { 3355 clear: both; 3356 3356 margin-top: 0.5em; 3357 margin-bottom: -8px; 3357 3358 width: 100%; 3358 margin-bottom: -8px;3359 clear: both;3360 3359 } 3361 3360 3362 .form-table td { 3363 margin-bottom: 9px; 3364 padding: 8px 10px; 3361 .form-fields .form-row { 3362 clear: both; 3365 3363 line-height: 20px; 3366 font-size: 11px;3364 overflow: hidden; 3367 3365 } 3368 3366 3369 .form-table th, 3367 .form-fields .form-label { 3368 float: left; 3369 padding: 10px; 3370 width: 200px; 3371 } 3372 3373 .form-fields .label-full { 3374 width: 100%; 3375 } 3376 3377 .form-fields .form-label, 3370 3378 .form-wrap label { 3371 font-weight: normal;3372 3379 text-shadow: rgba(255,255,255,1) 0 1px 0; 3373 3380 } 3374 3381 3375 .form-table th { 3376 vertical-align: top; 3377 text-align: left; 3378 padding: 10px; 3379 width: 200px; 3382 .form-fields .form-input { 3383 font-size: 11px; 3384 margin-left: 220px; 3385 padding: 8px 10px; 3380 3386 } 3381 3387 3382 .form- table th.th-full {3383 width: auto;3388 .form-fields .form-input.input-full { 3389 margin: 0; 3384 3390 } 3385 3391 3386 .form-table div.color-option { 3392 .form-fields .form-input p { 3393 margin-top: 4px; 3394 } 3395 3396 .form-fields div.color-option { 3387 3397 display: block; 3388 3398 clear: both; 3389 3399 margin-top: 12px; 3390 3400 } 3391 3401 3392 .form-table input.tog { 3402 .form-fields input.tog { 3403 clear: both; 3393 3404 margin-top: 2px; 3394 3405 margin-right: 2px; 3395 3406 float: left; … … 3399 3410 margin-top: 4px; 3400 3411 } 3401 3412 3402 .form- tabletable.color-palette {3413 .form-fields table.color-palette { 3403 3414 vertical-align: bottom; 3404 3415 float: left; 3405 3416 margin: -12px 3px 11px; 3406 3417 } 3407 3418 3408 .form- table.color-palette td {3419 .form-fields .color-palette td { 3409 3420 border-width: 1px 1px 0; 3410 border-style: solid solidnone;3421 border-style: none none; 3411 3422 height: 10px; 3412 3423 line-height: 20px; 3424 padding: 8px 10px; 3413 3425 width: 10px; 3414 3426 } 3415 3427 3428 .form-table { 3429 border-collapse: collapse; 3430 margin-top: 0.5em; 3431 width: 100%; 3432 margin-bottom: -8px; 3433 clear: both; 3434 } 3435 3436 .form-table td { 3437 margin-bottom: 9px; 3438 padding: 8px 10px; 3439 line-height: 20px; 3440 font-size: 11px; 3441 } 3442 3443 .form-table th, 3444 .form-wrap label { 3445 font-weight: normal; 3446 text-shadow: rgba(255,255,255,1) 0 1px 0; 3447 } 3448 3449 .form-table th { 3450 vertical-align: top; 3451 text-align: left; 3452 padding: 10px; 3453 width: 200px; 3454 } 3455 3456 .form-table th.th-full { 3457 width: auto; 3458 } 3459 3460 .form-table td p { 3461 margin-top: 4px; 3462 } 3463 3416 3464 .commentlist li { 3417 3465 padding: 1em 1em .2em; 3418 3466 margin: 0; … … 3872 3920 18.0 - Users 3873 3921 ------------------------------------------------------------------------------*/ 3874 3922 3875 #profile-page .form- tabletextarea {3923 #profile-page .form-fields textarea { 3876 3924 width: 500px; 3877 3925 margin-bottom: 6px; 3878 3926 } 3879 3927 3880 #profile-page .form- table#rich_editing {3928 #profile-page .form-fields #rich_editing { 3881 3929 margin-right: 5px 3882 3930 } 3883 3931 -
wp-admin/options-reading.php
63 63 64 64 <?php if ( ! get_pages() ) : ?> 65 65 <input name="show_on_front" type="hidden" value="posts" /> 66 < table class="form-table">66 <div class="form-fields"> 67 67 <?php 68 68 if ( 'posts' != get_option( 'show_on_front' ) ) : 69 69 update_option( 'show_on_front', 'posts' ); … … 73 73 if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) 74 74 update_option( 'show_on_front', 'posts' ); 75 75 ?> 76 < table class="form-table">77 < tr valign="top">78 < th scope="row"><?php _e( 'Front page displays' ); ?></th>79 < tdid="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend>76 <div class="form-fields"> 77 <div class="form-row"> 78 <div class="form-label"><?php _e( 'Front page displays' ); ?></div> 79 <div class="form-input" id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Front page displays' ); ?></span></legend> 80 80 <p><label> 81 81 <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> /> 82 82 <?php _e( 'Your latest posts' ); ?> … … 94 94 <?php if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?> 95 95 <div id="front-page-warning" class="error inline"><p><?php _e( '<strong>Warning:</strong> these pages should not be the same!' ); ?></p></div> 96 96 <?php endif; ?> 97 </fieldset></td> 98 </tr> 97 </fieldset></div> 99 98 <?php endif; ?> 100 < tr valign="top">101 < th scope="row"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></th>102 < td>99 <div class="form-row"> 100 <div class="form-label"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></div> 101 <div class="form-input"> 103 102 <input name="posts_per_page" type="text" id="posts_per_page" value="<?php form_option( 'posts_per_page' ); ?>" class="small-text" /> <?php _e( 'posts' ); ?> 104 </ td>105 </ tr>106 < tr valign="top">107 < th scope="row"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></th>108 < 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>109 </ tr>110 < tr valign="top">111 < th scope="row"><?php _e( 'For each article in a feed, show' ); ?> </th>112 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend>103 </div> 104 </div> 105 <div class="form-row"> 106 <div class="form-label"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></div> 107 <div class="form-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> 108 </div> 109 <div class="form-row"> 110 <div class="form-label"><?php _e( 'For each article in a feed, show' ); ?> </div> 111 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend> 113 112 <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 /> 114 113 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label></p> 115 </fieldset></ td>116 </ tr>114 </fieldset></div> 115 </div> 117 116 118 < tr valign="top">119 < th scope="row"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></th>120 < td><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" />121 <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>122 </ tr>117 <div class="form-row"> 118 <div class="form-label"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></div> 119 <div class="form-input"><input name="blog_charset" type="text" id="blog_charset" value="<?php form_option( 'blog_charset' ); ?>" class="regular-text" /> 120 <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> 121 </div> 123 122 <?php do_settings_fields( 'reading', 'default' ); ?> 124 </ table>123 </div> 125 124 126 125 <?php do_settings_sections( 'reading' ); ?> 127 126 -
wp-admin/options-permalink.php
172 172 ); 173 173 ?> 174 174 <h3><?php _e('Common settings'); ?></h3> 175 < table class="form-table">176 < tr>177 < th><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th>178 < td><code><?php echo get_option('home'); ?>/?p=123</code></td>179 </ tr>180 < tr>181 < 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>182 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></td>183 </ tr>184 < tr>185 < 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>186 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/sample-post/'; ?></code></td>187 </ tr>188 < tr>189 < 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>190 < td><code><?php echo get_option('home') . $blog_prefix . $prefix; ?>/archives/123</code></td>191 </ tr>192 < tr>193 < th>175 <div class="form-fields"> 176 <div class="form-row"> 177 <div class="form-label"><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></div> 178 <div class="form-input"><code><?php echo get_option('home'); ?>/?p=123</code></div> 179 </div> 180 <div class="form-row"> 181 <div class="form-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> 182 <div class="form-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></div> 183 </div> 184 <div class="form-row"> 185 <div class="form-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> 186 <div class="form-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/sample-post/'; ?></code></div> 187 </div> 188 <div class="form-row"> 189 <div class="form-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> 190 <div class="form-input"><code><?php echo get_option('home') . $blog_prefix . $prefix; ?>/archives/123</code></div> 191 </div> 192 <div class="form-row"> 193 <div class="form-label"> 194 194 <label><input name="selection" id="custom_selection" type="radio" value="custom" class="tog" <?php checked( !in_array($permalink_structure, $structures) ); ?> /> 195 195 <?php _e('Custom Structure'); ?> 196 196 </label> 197 </ th>198 < td>197 </div> 198 <div class="form-input"> 199 199 <?php echo $blog_prefix; ?> 200 200 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" /> 201 </ td>202 </ tr>203 </ table>201 </div> 202 </div> 203 </div> 204 204 205 205 <h3><?php _e('Optional'); ?></h3> 206 206 <?php if ( $is_apache || $iis7_permalinks ) : ?> … … 209 209 <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> 210 210 <?php endif; ?> 211 211 212 < table class="form-table">213 < tr>214 < th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></th>215 < 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>216 </ tr>217 < tr>218 < th><label for="tag_base"><?php _e('Tag base'); ?></label></th>219 < 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>220 </ tr>212 <div class="form-fields"> 213 <div class="form-row"> 214 <div class="form-label"><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></div> 215 <div class="form-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> 216 </div> 217 <div class="form-row"> 218 <div class="form-label"><label for="tag_base"><?php _e('Tag base'); ?></label></div> 219 <div class="form-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> 220 </div> 221 221 <?php do_settings_fields('permalink', 'optional'); ?> 222 </ table>222 </div> 223 223 224 224 <?php do_settings_sections('permalink'); ?> 225 225 -
wp-admin/options-writing.php
33 33 <form method="post" action="options.php"> 34 34 <?php settings_fields('writing'); ?> 35 35 36 < table class="form-table">37 < tr valign="top">38 < th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th>39 < 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" />40 <?php _e('lines') ?></ td>41 </ tr>42 < tr valign="top">43 < th scope="row"><?php _e('Formatting') ?></th>44 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend>36 <div class="form-fields"> 37 <div class="form-row"> 38 <div class="form-label"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></div> 39 <div class="form-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" /> 40 <?php _e('lines') ?></div> 41 </div> 42 <div class="form-row"> 43 <div class="form-label"><?php _e('Formatting') ?></div> 44 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend> 45 45 <label for="use_smilies"> 46 46 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> /> 47 47 <?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br /> 48 48 <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> 49 </fieldset></ td>50 </ tr>51 < tr valign="top">52 < th scope="row"><label for="default_category"><?php _e('Default Post Category') ?></label></th>53 < td>49 </fieldset></div> 50 </div> 51 <div class="form-row"> 52 <div class="form-label"><label for="default_category"><?php _e('Default Post Category') ?></label></div> 53 <div class="form-input"> 54 54 <?php 55 55 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_category', 'orderby' => 'name', 'selected' => get_option('default_category'), 'hierarchical' => true)); 56 56 ?> 57 </ td>58 </ tr>57 </div> 58 </div> 59 59 <?php 60 60 if ( current_theme_supports( 'post-formats' ) ) : 61 61 $post_formats = get_theme_support( 'post-formats' ); 62 62 if ( is_array( $post_formats[0] ) ) : 63 63 ?> 64 < tr valign="top">65 < th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th>66 < td>64 <div class="form-row"> 65 <div class="form-label"><label for="default_post_format"><?php _e('Default Post Format') ?></label></div> 66 <div class="form-input"> 67 67 <select name="default_post_format" id="default_post_format"> 68 68 <option value="0"><?php _e('Standard'); ?></option> 69 69 <?php foreach ( $post_formats[0] as $format ): ?> 70 70 <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> 71 71 <?php endforeach; ?> 72 72 </select></label> 73 </ td>74 </ tr>73 </div> 74 </div> 75 75 <?php endif; endif; ?> 76 < tr valign="top">77 < th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>78 < td>76 <div class="form-row"> 77 <div class="form-label"><label for="default_link_category"><?php _e('Default Link Category') ?></label></div> 78 <div class="form-input"> 79 79 <?php 80 80 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category')); 81 81 ?> 82 </ td>83 </ tr>82 </div> 83 </div> 84 84 <?php do_settings_fields('writing', 'default'); ?> 85 </ table>85 </div> 86 86 87 87 88 88 <h3 class="title"><?php _e('Press This') ?></h3> … … 95 95 <h3><?php _e('Post via e-mail') ?></h3> 96 96 <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> 97 97 98 < table class="form-table">99 < tr valign="top">100 < th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>101 < td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />98 <div class="form-fields"> 99 <div class="form-row"> 100 <div class="form-label"><label for="mailserver_url"><?php _e('Mail Server') ?></label></div> 101 <div class="form-input"><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" /> 102 102 <label for="mailserver_port"><?php _e('Port') ?></label> 103 103 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" /> 104 </ td>105 </ tr>106 < tr valign="top">107 < th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>108 < td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></td>109 </ tr>110 < tr valign="top">111 < th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>112 < td>104 </div> 105 </div> 106 <div class="form-row"> 107 <div class="form-label"><label for="mailserver_login"><?php _e('Login Name') ?></label></div> 108 <div class="form-input"><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></div> 109 </div> 110 <div class="form-row"> 111 <div class="form-label"><label for="mailserver_pass"><?php _e('Password') ?></label></div> 112 <div class="form-input"> 113 113 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" /> 114 </ td>115 </ tr>116 < tr valign="top">117 < th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>118 < td>114 </div> 115 </div> 116 <div class="form-row"> 117 <div class="form-label"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></div> 118 <div class="form-input"> 119 119 <?php 120 120 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true)); 121 121 ?> 122 </ td>123 </ tr>122 </div> 123 </div> 124 124 <?php do_settings_fields('writing', 'post_via_email'); ?> 125 </ table>125 </div> 126 126 <?php } ?> 127 127 128 128 <h3><?php _e('Remote Publishing') ?></h3> 129 129 <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> 130 < table class="form-table">131 < tr valign="top">132 < th scope="row"><?php _e('Atom Publishing Protocol') ?></th>133 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend>130 <div class="form-fields"> 131 <div class="form-row"> 132 <div class="form-label"><?php _e('Atom Publishing Protocol') ?></div> 133 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend> 134 134 <label for="enable_app"> 135 135 <input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> /> 136 136 <?php _e('Enable the Atom Publishing Protocol.') ?></label><br /> 137 </fieldset></ td>138 </ tr>139 < tr valign="top">140 < th scope="row"><?php _e('XML-RPC') ?></th>141 < td><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend>137 </fieldset></div> 138 </div> 139 <div class="form-row"> 140 <div class="form-label"><?php _e('XML-RPC') ?></div> 141 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend> 142 142 <label for="enable_xmlrpc"> 143 143 <input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php checked('1', get_option('enable_xmlrpc')); ?> /> 144 144 <?php _e('Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.') ?></label><br /> 145 </fieldset></ td>146 </ tr>145 </fieldset></div> 146 </div> 147 147 <?php do_settings_fields('writing', 'remote_publishing'); ?> 148 </ table>148 </div> 149 149 150 150 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> 151 151 <h3><?php _e('Update Services') ?></h3> -
wp-admin/custom-background.php
178 178 } else { 179 179 ?> 180 180 <h3><?php _e('Background Image'); ?></h3> 181 <table class="form-table"> 182 <tbody> 183 <tr valign="top"> 184 <th scope="row"><?php _e('Preview'); ?></th> 185 <td> 181 <div class="form-fields"> 182 <div class="form-row"> 183 <div class="form-label"><?php _e('Preview'); ?></div> 184 <div class="form-input"> 186 185 <?php 187 186 $background_styles = ''; 188 187 if ( $bgcolor = get_background_color() ) … … 202 201 <?php } ?> 203 202 </div> 204 203 <?php } ?> 205 </ td>206 </ tr>204 </div> 205 </div> 207 206 <?php if ( get_background_image() ) : ?> 208 < tr valign="top">209 < th scope="row"><?php _e('Remove Image'); ?></th>210 < td>207 <div class="form-row"> 208 <div class="form-label"><?php _e('Remove Image'); ?></div> 209 <div class="form-input"> 211 210 <form method="post" action=""> 212 211 <?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?> 213 212 <?php submit_button( __( 'Remove Background Image' ), 'button', 'remove-background', false ); ?><br/> 214 213 <?php _e('This will remove the background image. You will not be able to restore any customizations.') ?> 215 214 </form> 216 </ td>217 </ tr>215 </div> 216 </div> 218 217 <?php endif; ?> 219 218 220 219 <?php if ( defined( 'BACKGROUND_IMAGE' ) ) : // Show only if a default background image exists ?> 221 < tr valign="top">222 < th scope="row"><?php _e('Restore Original Image'); ?></th>223 < td>220 <div class="form-row"> 221 <div class="form-label"><?php _e('Restore Original Image'); ?></div> 222 <div class="form-input"> 224 223 <form method="post" action=""> 225 224 <?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?> 226 225 <?php submit_button( __( 'Restore Original Image' ), 'button', 'reset-background', false ); ?><br/> 227 226 <?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?> 228 227 </form> 229 </ td>230 </ tr>228 </div> 229 </div> 231 230 232 231 <?php endif; ?> 233 < tr valign="top">234 < th scope="row"><?php _e('Upload Image'); ?></th>235 < td><form enctype="multipart/form-data" id="upload-form" method="post" action="">232 <div class="form-row"> 233 <div class="form-label"><?php _e('Upload Image'); ?></div> 234 <div class="form-input"><form enctype="multipart/form-data" id="upload-form" method="post" action=""> 236 235 <label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" /> 237 236 <input type="hidden" name="action" value="save" /> 238 237 <?php wp_nonce_field('custom-background-upload', '_wpnonce-custom-background-upload') ?> 239 238 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?> 240 239 </p> 241 240 </form> 242 </td> 243 </tr> 244 </tbody> 245 </table> 241 </div> 242 </div> 243 </div> 246 244 247 245 <h3><?php _e('Display Options') ?></h3> 248 246 <form method="post" action=""> 249 <table class="form-table"> 250 <tbody> 247 <div class="form-fields"> 251 248 <?php if ( get_background_image() ) : ?> 252 < tr valign="top">253 < th scope="row"><?php _e( 'Position' ); ?></th>254 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Position' ); ?></span></legend>249 <div class="form-row"> 250 <div class="form-label"><?php _e( 'Position' ); ?></div> 251 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Position' ); ?></span></legend> 255 252 <label> 256 253 <input name="background-position-x" type="radio" value="left"<?php checked('left', get_theme_mod('background_position_x', 'left')); ?> /> 257 254 <?php _e('Left') ?> … … 264 261 <input name="background-position-x" type="radio" value="right"<?php checked('right', get_theme_mod('background_position_x', 'left')); ?> /> 265 262 <?php _e('Right') ?> 266 263 </label> 267 </fieldset></ td>268 </ tr>264 </fieldset></div> 265 </div> 269 266 270 < tr valign="top">271 < th scope="row"><?php _e( 'Repeat' ); ?></th>272 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Repeat' ); ?></span></legend>267 <div class="form-row"> 268 <div class="form-label"><?php _e( 'Repeat' ); ?></div> 269 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Repeat' ); ?></span></legend> 273 270 <label><input type="radio" name="background-repeat" value="no-repeat"<?php checked('no-repeat', get_theme_mod('background_repeat', 'repeat')); ?>> <?php _e('No Repeat'); ?></option></label> 274 271 <label><input type="radio" name="background-repeat" value="repeat"<?php checked('repeat', get_theme_mod('background_repeat', 'repeat')); ?>> <?php _e('Tile'); ?></option></label> 275 272 <label><input type="radio" name="background-repeat" value="repeat-x"<?php checked('repeat-x', get_theme_mod('background_repeat', 'repeat')); ?>> <?php _e('Tile Horizontally'); ?></option></label> 276 273 <label><input type="radio" name="background-repeat" value="repeat-y"<?php checked('repeat-y', get_theme_mod('background_repeat', 'repeat')); ?>> <?php _e('Tile Vertically'); ?></option></label> 277 </fieldset></ td>278 </ tr>274 </fieldset></div> 275 </div> 279 276 280 < tr valign="top">281 < th scope="row"><?php _e( 'Attachment' ); ?></th>282 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Attachment' ); ?></span></legend>277 <div class="form-row"> 278 <div class="form-label"><?php _e( 'Attachment' ); ?></div> 279 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Attachment' ); ?></span></legend> 283 280 <label> 284 281 <input name="background-attachment" type="radio" value="scroll" <?php checked('scroll', get_theme_mod('background_attachment', 'scroll')); ?> /> 285 282 <?php _e('Scroll') ?> … … 288 285 <input name="background-attachment" type="radio" value="fixed" <?php checked('fixed', get_theme_mod('background_attachment', 'scroll')); ?> /> 289 286 <?php _e('Fixed') ?> 290 287 </label> 291 </fieldset></ td>292 </ tr>288 </fieldset></div> 289 </div> 293 290 <?php endif; // get_background_image() ?> 294 < tr valign="top">295 < th scope="row"><?php _e( 'Color' ); ?></th>296 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend>291 <div class="form-row"> 292 <div class="form-label"><?php _e( 'Color' ); ?></div> 293 <div class="form-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend> 297 294 <input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr(get_background_color()) ?>" /> 298 295 <a class="hide-if-no-js" href="#" id="pickcolor"><?php _e('Select a Color'); ?></a> 299 296 <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 300 </fieldset></td> 301 </tr> 302 </tbody> 303 </table> 297 </fieldset></div> 298 </div> 299 </div> 304 300 305 301 <?php wp_nonce_field('custom-background'); ?> 306 302 <?php submit_button( null, 'primary', 'save-background-options' ); ?>