Ticket #16413: 16413.3.diff
File 16413.3.diff, 168.5 KB (added by , 12 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="field-row"> 216 <div class="field-label"><label><input type='radio' name='subdomain_install' value='1'<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></div> 217 <div class="field-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="field-row"> 220 <div class="field-label"><label><input type='radio' name='subdomain_install' value='0'<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></div> 221 <div class="field-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 ); ?></p> 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="field-row"> 235 <div class="field-label"><?php esc_html_e( 'Server Address' ); ?></div> 236 <div class="field-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="field-row"> 247 <div class="field-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div> 248 <div class="field-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="field-row"> 257 <div class="field-label"><?php esc_html_e( 'Sub-directory Install' ); ?></div> 258 <div class="field-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="field-row"> 267 <div class="field-label"><?php esc_html_e( 'Sub-domain Install' ); ?></div> 268 <div class="field-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="field-row"> 275 <div class="field-label"><?php esc_html_e( 'Server Address' ); ?></div> 276 <div class="field-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="field-row"> 282 <div class="field-label"><?php esc_html_e( 'Network Title' ); ?></div> 283 <div class="field-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="field-row"> 289 <div class="field-label"><?php esc_html_e( 'Admin E-mail Address' ); ?></div> 290 <div class="field-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="field-row"> 39 <div class="field-label"><?php _e( 'Site Visibility' ); ?> </div> 40 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Site Visibility' ); ?> </span></legend> 41 41 <input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> 42 42 <label for="blog-public"><?php _e( 'Allow search engines to index this site.' );?></label><br/> 43 43 <input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> /> 44 44 <label for="blog-norobots"><?php _e( 'Ask search engines not to index this site.' ); ?></label> 45 45 <p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p> 46 46 <?php do_action('blog_privacy_selector'); ?> 47 </fieldset></ td>48 </ tr>47 </fieldset></div> 48 </div> 49 49 <?php do_settings_fields('privacy', 'default'); ?> 50 </ table>50 </div> 51 51 52 52 <?php do_settings_sections('privacy'); ?> 53 53 -
wp-admin/includes/file.php
1018 1018 } 1019 1019 _e('If you do not remember your credentials, you should contact your web host.'); 1020 1020 ?></p> 1021 < table class="form-table">1022 < tr valign="top">1023 < th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th>1024 < 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>1025 </ tr>1021 <div class="form-fields"> 1022 <div class="field-row"> 1023 <div class="field-label"><label for="hostname"><?php _e('Hostname') ?></label></div> 1024 <div class="field-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> 1025 </div> 1026 1026 1027 < tr valign="top">1028 < th scope="row"><label for="username"><?php echo $label_user; ?></label></th>1029 < td><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php disabled( defined('FTP_USER') ); ?> size="40" /></td>1030 </ tr>1027 <div class="field-row"> 1028 <div class="field-label"><label for="username"><?php echo $label_user; ?></label></div> 1029 <div class="field-input"><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php disabled( defined('FTP_USER') ); ?> size="40" /></div> 1030 </div> 1031 1031 1032 < tr valign="top">1033 < th scope="row"><label for="password"><?php echo $label_pass; ?></label></th>1034 < td><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> size="40" /></td>1035 </ tr>1032 <div class="field-row"> 1033 <div class="field-label"><label for="password"><?php echo $label_pass; ?></label></div> 1034 <div class="field-input"><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> size="40" /></div> 1035 </div> 1036 1036 1037 1037 <?php if ( isset($types['ssh']) ) : ?> 1038 < tr id="ssh_keys" valign="top" style="<?php if ( 'ssh' != $connection_type ) echo 'display:none' ?>">1039 < th scope="row"><?php _e('Authentication Keys') ?>1038 <div id="ssh_keys" style="<?php if ( 'ssh' != $connection_type ) echo 'display:none' ?>"> 1039 <div class="field-label"><?php _e('Authentication Keys') ?> 1040 1040 <div class="key-labels textright"> 1041 1041 <label for="public_key"><?php _e('Public Key:') ?></label ><br /> 1042 1042 <label for="private_key"><?php _e('Private Key:') ?></label> 1043 </div></ th>1044 < 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" />1045 <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>1046 </ tr>1043 </div></div> 1044 <div class="field-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" /> 1045 <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> 1046 </div> 1047 1047 <?php endif; ?> 1048 1048 1049 < tr valign="top">1050 < th scope="row"><?php _e('Connection Type') ?></th>1051 < td>1049 <div class="field-row"> 1050 <div class="field-label"><?php _e('Connection Type') ?></div> 1051 <div class="field-input"> 1052 1052 <fieldset><legend class="screen-reader-text"><span><?php _e('Connection Type') ?></span></legend> 1053 1053 <?php 1054 1054 $disabled = disabled( (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH), true, false ); … … 1059 1059 </label> 1060 1060 <?php endforeach; ?> 1061 1061 </fieldset> 1062 </ td>1063 </ tr>1064 </ table>1062 </div> 1063 </div> 1064 </div> 1065 1065 1066 1066 <?php 1067 1067 foreach ( (array) $extra_fields as $field ) { -
wp-admin/includes/meta-boxes.php
756 756 */ 757 757 function link_xfn_meta_box($link) { 758 758 ?> 759 <table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5"> 760 <tr> 761 <th style="width: 20%;" scope="row"><label for="link_rel"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></th> 762 <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo ( isset( $link->link_rel ) ? esc_attr($link->link_rel) : ''); ?>" /></td> 763 </tr> 764 <tr> 765 <td colspan="2"> 766 <table cellpadding="3" cellspacing="5" class="form-table"> 767 <tr> 768 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </th> 769 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend> 770 <label for="me"> 771 <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> /> 772 <?php _e('another web address of mine') ?></label> 773 </fieldset></td> 774 </tr> 775 <tr> 776 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </th> 777 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend> 778 <label for="contact"> 779 <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> 780 <label for="acquaintance"> 781 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label> 782 <label for="friend"> 783 <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> 784 <label for="friendship"> 785 <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 786 </fieldset></td> 787 </tr> 788 <tr> 789 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </th> 790 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend> 791 <label for="met"> 792 <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> /> 793 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('met') ?></label> 794 </fieldset></td> 795 </tr> 796 <tr> 797 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </th> 798 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend> 799 <label for="co-worker"> 800 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> /> 801 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-worker') ?></label> 802 <label for="colleague"> 803 <input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> /> 804 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('colleague') ?></label> 805 </fieldset></td> 806 </tr> 807 <tr> 808 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </th> 809 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend> 810 <label for="co-resident"> 811 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident'); ?> /> 812 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?></label> 813 <label for="neighbor"> 814 <input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor'); ?> /> 815 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('neighbor') ?></label> 816 <label for="geographical"> 817 <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical'); ?> /> 818 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 819 </fieldset></td> 820 </tr> 821 <tr> 822 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </th> 823 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend> 824 <label for="child"> 825 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> /> 826 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label> 827 <label for="kin"> 828 <input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin'); ?> /> 829 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?></label> 830 <label for="parent"> 831 <input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent'); ?> /> 832 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('parent') ?></label> 833 <label for="sibling"> 834 <input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling'); ?> /> 835 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sibling') ?></label> 836 <label for="spouse"> 837 <input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse'); ?> /> 838 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('spouse') ?></label> 839 <label for="family"> 840 <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family'); ?> /> 841 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 842 </fieldset></td> 843 </tr> 844 <tr> 845 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </th> 846 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend> 847 <label for="muse"> 848 <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> /> 849 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('muse') ?></label> 850 <label for="crush"> 851 <input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check('romantic', 'crush'); ?> /> 852 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('crush') ?></label> 853 <label for="date"> 854 <input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check('romantic', 'date'); ?> /> 855 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('date') ?></label> 856 <label for="romantic"> 857 <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> /> 858 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sweetheart') ?></label> 859 </fieldset></td> 860 </tr> 861 </table> 862 </td> 863 </tr> 864 </table> 759 <div class="form-fields editform"> 760 <div class="field-row"> 761 <div class="field-label"><label for="link_rel"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></div> 762 <div class="field-input"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo ( isset( $link->link_rel ) ? esc_attr($link->link_rel) : ''); ?>" /></div> 763 </div> 764 <div class="field-row"> 765 <div class="form-fields"> 766 <div class="field-row"> 767 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </div> 768 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend> 769 <label for="me"> 770 <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> /> 771 <?php _e('another web address of mine') ?></label> 772 </fieldset></div> 773 </div> 774 <div class="field-row"> 775 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </div> 776 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend> 777 <label for="contact"> 778 <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> 779 <label for="acquaintance"> 780 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label> 781 <label for="friend"> 782 <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> 783 <label for="friendship"> 784 <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 785 </fieldset></div> 786 </div> 787 <div class="field-row"> 788 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </div> 789 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend> 790 <label for="met"> 791 <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> /> 792 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('met') ?></label> 793 </fieldset></div> 794 </div> 795 <div class="field-row"> 796 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </div> 797 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend> 798 <label for="co-worker"> 799 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> /> 800 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-worker') ?></label> 801 <label for="colleague"> 802 <input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> /> 803 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('colleague') ?></label> 804 </fieldset></div> 805 </div> 806 <div class="field-row"> 807 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </div> 808 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend> 809 <label for="co-resident"> 810 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident'); ?> /> 811 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?></label> 812 <label for="neighbor"> 813 <input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor'); ?> /> 814 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('neighbor') ?></label> 815 <label for="geographical"> 816 <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical'); ?> /> 817 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 818 </fieldset></div> 819 </div> 820 <div class="field-row"> 821 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </div> 822 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend> 823 <label for="child"> 824 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> /> 825 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label> 826 <label for="kin"> 827 <input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin'); ?> /> 828 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?></label> 829 <label for="parent"> 830 <input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent'); ?> /> 831 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('parent') ?></label> 832 <label for="sibling"> 833 <input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling'); ?> /> 834 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sibling') ?></label> 835 <label for="spouse"> 836 <input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse'); ?> /> 837 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('spouse') ?></label> 838 <label for="family"> 839 <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family'); ?> /> 840 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 841 </fieldset></div> 842 </div> 843 <div class="field-row"> 844 <div class="field-label"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </div> 845 <div class="field-input"><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend> 846 <label for="muse"> 847 <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> /> 848 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('muse') ?></label> 849 <label for="crush"> 850 <input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check('romantic', 'crush'); ?> /> 851 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('crush') ?></label> 852 <label for="date"> 853 <input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check('romantic', 'date'); ?> /> 854 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('date') ?></label> 855 <label for="romantic"> 856 <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> /> 857 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sweetheart') ?></label> 858 </fieldset></div> 859 </div> 860 </div> 861 </div> 862 </div> 865 863 <p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p> 866 864 <?php 867 865 } … … 876 874 */ 877 875 function link_advanced_meta_box($link) { 878 876 ?> 879 < table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">880 < tr class="form-field">881 < th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>882 < 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>883 </ tr>884 < tr class="form-field">885 < th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>886 < 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>887 </ tr>888 < tr class="form-field">889 < th valign="top" scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>890 < 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>891 </ tr>892 < tr class="form-field">893 < th valign="top" scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th>894 < td><select name="link_rating" id="link_rating" size="1">877 <div class="form-fields"> 878 <div class="field-row"> 879 <div class="field-label"><label for="link_image"><?php _e('Image Address') ?></label></div> 880 <div class="field-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> 881 </div> 882 <div class="field-row"> 883 <div class="field-label"><label for="rss_uri"><?php _e('RSS Address') ?></label></div> 884 <div class="field-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> 885 </div> 886 <div class="field-row"> 887 <div class="field-label"><label for="link_notes"><?php _e('Notes') ?></label></div> 888 <div class="field-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> 889 </div> 890 <div class="field-row"> 891 <div class="field-label"><label for="link_rating"><?php _e('Rating') ?></label></div> 892 <div class="field-input"><select name="link_rating" id="link_rating" size="1"> 895 893 <?php 896 894 for ($r = 0; $r <= 10; $r++) { 897 895 echo(' <option value="'. esc_attr($r) .'" '); … … 900 898 echo('>'.$r.'</option>'); 901 899 } 902 900 ?></select> <?php _e('(Leave at 0 for no rating.)') ?> 903 </ td>904 </ tr>905 </ table>901 </div> 902 </div> 903 </div> 906 904 <?php 907 905 } 908 906 -
wp-admin/includes/template.php
1166 1166 call_user_func($section['callback'], $section); 1167 1167 if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) 1168 1168 continue; 1169 echo '< table class="form-table">';1169 echo '<div class="form-fields">'; 1170 1170 do_settings_fields($page, $section['id']); 1171 echo '</ table>';1171 echo '</div>'; 1172 1172 } 1173 1173 } 1174 1174 … … 1193 1193 return; 1194 1194 1195 1195 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1196 echo '< tr valign="top">';1196 echo '<div class="field-row">'; 1197 1197 if ( !empty($field['args']['label_for']) ) 1198 echo '< th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>';1198 echo '<div class="field-label"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></div>'; 1199 1199 else 1200 echo '< th scope="row">' . $field['title'] . '</th>';1201 echo '< td>';1200 echo '<div class="field-label">' . $field['title'] . '</div>'; 1201 echo '<div class="field-input">'; 1202 1202 call_user_func($field['callback'], $field['args']); 1203 echo '</ td>';1204 echo '</ tr>';1203 echo '</div>'; 1204 echo '</div>'; 1205 1205 } 1206 1206 } 1207 1207 -
wp-admin/includes/ms.php
627 627 628 628 function choose_primary_blog() { 629 629 ?> 630 < table class="form-table">631 < tr>630 <div class="form-fields"> 631 <div class="field-row"> 632 632 <?php /* translators: My sites label */ ?> 633 < th scope="row"><?php _e( 'Primary Site' ); ?></th>634 < td>633 <div class="field-label"><?php _e( 'Primary Site' ); ?></div> 634 <div class="field-input"> 635 635 <?php 636 636 $all_blogs = get_blogs_of_user( get_current_user_id() ); 637 637 $primary_blog = get_user_meta( get_current_user_id(), 'primary_blog', true ); … … 659 659 echo "N/A"; 660 660 } 661 661 ?> 662 </ td>663 </ tr>662 </div> 663 </div> 664 664 <?php if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) : ?> 665 < tr>666 < th scope="row" colspan="2" class="th-full">665 <div class="field-row"> 666 <div class="field-label field-full"> 667 667 <a href="<?php echo apply_filters( 'wp_signup_location', network_home_url( 'wp-signup.php' ) ); ?>"><?php _e( 'Create a New Site' ); ?></a> 668 </ th>669 </ tr>668 </div> 669 </div> 670 670 <?php endif; ?> 671 </ table>671 </div> 672 672 <?php 673 673 } 674 674 -
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 ie-fixed"> 158 157 <?php if ( 'diff' == $action ) : ?> 159 < trid="revision">160 < th scope="row"></th>161 < th scope="col" class="th-full">158 <div class="field-row" id="revision"> 159 <div class="field-label"></div> 160 <div class="field-input field-full"> 162 161 <span class="alignleft"><?php printf( __('Older: %s'), wp_post_revision_title( $left_revision ) ); ?></span> 163 162 <span class="alignright"><?php printf( __('Newer: %s'), wp_post_revision_title( $right_revision ) ); ?></span> 164 </ th>165 </ tr>163 </div> 164 </div> 166 165 <?php endif; 167 166 168 167 // use get_post_to_edit filters? … … 180 179 } 181 180 ?> 182 181 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>182 <div class="field-row" id="revision-field-<?php echo $field; ?>"> 183 <div class="field-label"><?php echo esc_html( $field_title ); ?></div> 184 <div class="field-input"><div class="pre"><?php echo $content; ?></div></div> 185 </div> 187 186 188 187 <?php 189 188 … … 193 192 194 193 ?> 195 194 196 < tr><td colspan="2"><div class="updated"><p><?php _e( 'These revisions are identical.' ); ?></p></div></td></tr>195 <div class="field-row"><div class="field-input field-full"><div class="updated"><p><?php _e( 'These revisions are identical.' ); ?></p></div></div></div> 197 196 198 197 <?php 199 198 … … 201 200 202 201 ?> 203 202 204 </ table>203 </div> 205 204 206 205 <br class="clear" /> 207 206 -
wp-admin/custom-header.php
475 475 </div> 476 476 <?php } ?> 477 477 478 <table class="form-table"> 479 <tbody> 480 481 482 <tr valign="top"> 483 <th scope="row"><?php _e( 'Preview' ); ?></th> 484 <td > 478 <div class="form-fields"> 479 <div class="field-row"> 480 <div class="field-label"><?php _e( 'Preview' ); ?></div> 481 <div class="field-input"> 485 482 <?php if ( $this->admin_image_div_callback ) { 486 483 call_user_func( $this->admin_image_div_callback ); 487 484 } else { … … 497 494 <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> 498 495 </div> 499 496 <?php } ?> 500 </ td>501 </ tr>497 </div> 498 </div> 502 499 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?> 503 < tr valign="top">504 < th scope="row"><?php _e( 'Upload Image' ); ?></th>505 < td>500 <div class="field-row"> 501 <div class="field-label"><?php _e( 'Upload Image' ); ?></div> 502 <div class="field-input"> 506 503 <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 /> 507 504 <?php printf( __( 'Images of exactly <strong>%1$d × %2$d pixels</strong> will be used as-is.' ), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); ?></p> 508 505 <form enctype="multipart/form-data" id="upload-form" method="post" action="<?php echo esc_attr( add_query_arg( 'step', 2 ) ) ?>"> … … 514 511 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?> 515 512 </p> 516 513 </form> 517 </ td>518 </ tr>514 </div> 515 </div> 519 516 <?php endif; ?> 520 </tbody> 521 </table> 517 </div> 522 518 523 519 <form method="post" action="<?php echo esc_attr( add_query_arg( 'step', 1 ) ) ?>"> 524 <table class="form-table"> 525 <tbody> 520 <div class="form-fields"> 526 521 <?php if ( get_uploaded_header_images() ) : ?> 527 < tr valign="top">528 < th scope="row"><?php _e( 'Uploaded Images' ); ?></th>529 < td>522 <div class="field-row"> 523 <div class="field-label"><?php _e( 'Uploaded Images' ); ?></div> 524 <div class="field-input"> 530 525 <p><?php _e( 'You can choose one of your previously uploaded headers, or show a random one.' ) ?></p> 531 526 <?php 532 527 $this->show_header_selector( 'uploaded' ); 533 528 ?> 534 </ td>535 </ tr>529 </div> 530 </div> 536 531 <?php endif; 537 532 if ( ! empty( $this->default_headers ) ) : ?> 538 < tr valign="top">539 < th scope="row"><?php _e( 'Default Images' ); ?></th>540 < td>533 <div class="field-row"> 534 <div class="field-label"><?php _e( 'Default Images' ); ?></div> 535 <div class="field-input"> 541 536 <?php if ( current_theme_supports( 'custom-header-uploads' ) ) : ?> 542 537 <p><?php _e( 'If you don‘t want to upload your own image, you can use one of these cool headers, or show a random one.' ) ?></p> 543 538 <?php else: ?> … … 546 541 <?php 547 542 $this->show_header_selector( 'default' ); 548 543 ?> 549 </ td>550 </ tr>544 </div> 545 </div> 551 546 <?php endif; 552 547 if ( get_header_image() ) : ?> 553 < tr valign="top">554 < th scope="row"><?php _e( 'Remove Image' ); ?></th>555 < td>548 <div class="field-row"> 549 <div class="field-label"><?php _e( 'Remove Image' ); ?></div> 550 <div class="field-input"> 556 551 <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p> 557 552 <?php submit_button( __( 'Remove Header Image' ), 'button', 'removeheader', false ); ?> 558 </ td>559 </ tr>553 </div> 554 </div> 560 555 <?php endif; 561 556 562 557 if ( defined( 'HEADER_IMAGE' ) && '' != HEADER_IMAGE ) : ?> 563 < tr valign="top">564 < th scope="row"><?php _e( 'Reset Image' ); ?></th>565 < td>558 <div class="field-row"> 559 <div class="field-label"><?php _e( 'Reset Image' ); ?></div> 560 <div class="field-input"> 566 561 <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p> 567 562 <?php submit_button( __( 'Restore Original Header Image' ), 'button', 'resetheader', false ); ?> 568 </ td>569 </ tr>563 </div> 564 </div> 570 565 <?php endif; ?> 571 </tbody> 572 </table> 566 </div> 573 567 574 568 <?php if ( $this->header_text() ) : ?> 575 <table class="form-table"> 576 <tbody> 577 <tr valign="top" class="hide-if-no-js"> 578 <th scope="row"><?php _e( 'Display Text' ); ?></th> 579 <td> 569 <div class="form-fields"> 570 <div class="hide-if-no-js"> 571 <div class="field-label"><?php _e( 'Display Text' ); ?></div> 572 <div class="field-input"> 580 573 <p> 581 574 <?php $hidetext = get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ); ?> 582 575 <label><input type="radio" value="1" name="hidetext" id="hidetext"<?php checked( ( 'blank' == $hidetext || empty( $hidetext ) ) ? true : false ); ?> /> <?php _e( 'No' ); ?></label> 583 576 <label><input type="radio" value="0" name="hidetext" id="showtext"<?php checked( ( 'blank' == $hidetext || empty( $hidetext ) ) ? false : true ); ?> /> <?php _e( 'Yes' ); ?></label> 584 577 </p> 585 </ td>586 </ tr>578 </div> 579 </div> 587 580 588 < tr valign="top"id="text-color-row">589 < th scope="row"><?php _e( 'Text Color' ); ?></th>590 < td>581 <div id="text-color-row"> 582 <div class="field-label"><?php _e( 'Text Color' ); ?></div> 583 <div class="field-input"> 591 584 <p> 592 585 <input type="text" name="text-color" id="text-color" value="#<?php echo esc_attr( get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) ); ?>" /> 593 586 <span class="description hide-if-js"><?php _e( 'If you want to hide header text, add <strong>#blank</strong> as text color.' );?></span> 594 587 <input type="button" class="button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color' ); ?>" id="pickcolor" /> 595 588 </p> 596 589 <div id="color-picker" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 597 </ td>598 </ tr>590 </div> 591 </div> 599 592 600 593 <?php if ( defined('HEADER_TEXTCOLOR') && get_theme_mod('header_textcolor') ) { ?> 601 < tr valign="top">602 < th scope="row"><?php _e('Reset Text Color'); ?></th>603 < td>594 <div class="field-row"> 595 <div class="field-label"><?php _e('Reset Text Color'); ?></div> 596 <div class="field-input"> 604 597 <p><?php _e( 'This will restore the original header text. You will not be able to restore any customizations.' ) ?></p> 605 598 <?php submit_button( __( 'Restore Original Header Text' ), 'button', 'resettext', false ); ?> 606 </ td>607 </ tr>599 </div> 600 </div> 608 601 <?php } ?> 609 610 </tbody> 611 </table> 602 </div> 612 603 <?php endif; 613 604 614 605 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 <diov class="form-fields comment-ays"> 154 <div class="field-row"> 155 <div class="field-label"><?php _e('Author'); ?></div> 156 <div class="field-input"><?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="field-row"> 160 <div class="field-label"><?php _e('E-mail'); ?></div> 161 <div class="field-input"><?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="field-row"> 166 <div class="field-label"><?php _e('URL'); ?></div> 167 <div class="field-input"><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="field-row"> 171 <div class="field-label"><?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?></div> 172 <div class="field-input"><?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 178 178 <form action='comment.php' method='get'> 179 179 180 <table width="100%"> 181 <tr> 182 <td><a class="button" href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e('No'); ?></a></td> 183 <td class="textright"><?php submit_button( $button, 'button' ); ?></td> 184 </tr> 185 </table> 180 <div width="100%"> 181 <div class="field-row"> 182 <div class="field-input field-full"><a class="button" href="<?php echo admin_url('edit-comments.php'); ?>"><?php esc_attr_e('No'); ?></a> <?php submit_button( $button, 'button' ); ?></div> 183 </div> 184 </div> 186 185 187 186 <?php wp_nonce_field( $nonce_action ); ?> 188 187 <input type='hidden' name='action' value='<?php echo esc_attr($formaction); ?>' /> -
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-fieldform-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="field-row form-required"> 241 <div class="field-label"><label for="adduser-email"><?php echo $label; ?></label></div> 242 <div class="field-input"><input name="email" type="text" id="adduser-email" value="" /></div> 243 </div> 244 <div class="field-row"> 245 <div class="field-label"><label for="adduser-role"><?php _e('Role'); ?></label></div> 246 <div class="field-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="field-row"> 253 <div class="field-label"><label for="adduser-noconfirmation"><?php _e('Skip Confirmation Email') ?></label></div> 254 <div class="field-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-fieldform-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-fieldform-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="field-row form-required"> 287 <div class="field-label"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 288 <div class="field-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="field-row form-required"> 291 <div class="field-label"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 292 <div class="field-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="field-row"> 296 <div class="field-label"><label for="first_name"><?php _e('First Name') ?> </label></div> 297 <div class="field-input"><input name="first_name" type="text" id="first_name" value="<?php echo esc_attr($new_user_firstname); ?>" /></div> 298 </div> 299 <div class="field-row"> 300 <div class="field-label"><label for="last_name"><?php _e('Last Name') ?> </label></div> 301 <div class="field-input"><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr($new_user_lastname); ?>" /></div> 302 </div> 303 <div class="field-row"> 304 <div class="field-label"><label for="url"><?php _e('Website') ?></label></div> 305 <div class="field-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-fieldform-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="field-row form-required"> 309 <div class="field-label"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></div> 310 <div class="field-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="field-row"> 319 <div class="field-label"><label for="send_password"><?php _e('Send Password?') ?></label></div> 320 <div class="field-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="field-row"> 325 <div class="field-label"><label for="role"><?php _e('Role'); ?></label></div> 326 <div class="field-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="field-row"> 337 <div class="field-label"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></div> 338 <div class="field-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="field-row"> 85 <div class="field-label"><label for="blogname"><?php _e('Site Title') ?></label></div> 86 <div class="field-input"><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></div> 87 </div> 88 <div class="field-row"> 89 <div class="field-label"><label for="blogdescription"><?php _e('Tagline') ?></label></div> 90 <div class="field-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="field-row"> 95 <div class="field-label"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></div> 96 <div class="field-input"><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></div> 97 </div> 98 <div class="field-row"> 99 <div class="field-label"><label for="home"><?php _e('Site Address (URL)') ?></label></div> 100 <div class="field-input"><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" /> 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="field-row"> 104 <div class="field-label"><label for="admin_email"><?php _e('E-mail Address') ?> </label></div> 105 <div class="field-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="field-row"> 109 <div class="field-label"><?php _e('Membership') ?></div> 110 <div class="field-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="field-row"> 116 <div class="field-label"><label for="default_role"><?php _e('New User Default Role') ?></label></div> 117 <div class="field-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="field-row"> 123 <div class="field-label"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></div> 124 <div class="field-input"><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" /> 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>'), esc_html( $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="field-row"> 137 137 <?php 138 138 $current_offset = get_option('gmt_offset'); 139 139 $tzstring = get_option('timezone_string'); … … 155 155 } 156 156 157 157 ?> 158 < th scope="row"><label for="timezone_string"><?php _e('Timezone') ?></label></th>159 < td>158 <div class="field-label"><label for="timezone_string"><?php _e('Timezone') ?></label></div> 159 <div class="field-input"> 160 160 161 161 <select id="timezone_string" name="timezone_string"> 162 162 <?php echo wp_timezone_choice($tzstring); ?> … … 212 212 ?> 213 213 </span> 214 214 <?php endif; ?> 215 </ td>215 </div> 216 216 217 </ tr>218 < tr>219 < th scope="row"><?php _e('Date Format') ?></th>220 < td>217 </div> 218 <div class="field-row"> 219 <div class="field-label"><?php _e('Date Format') ?></div> 220 <div class="field-input"> 221 221 <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend> 222 222 <?php 223 223 … … 246 246 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date and time formatting</a>.') . "</p>\n"; 247 247 ?> 248 248 </fieldset> 249 </ td>250 </ tr>251 < tr>252 < th scope="row"><?php _e('Time Format') ?></th>253 < td>249 </div> 250 </div> 251 <div class="field-row"> 252 <div class="field-label"><?php _e('Time Format') ?></div> 253 <div class="field-input"> 254 254 <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend> 255 255 <?php 256 256 … … 277 277 ; 278 278 ?> 279 279 </fieldset> 280 </ td>281 </ tr>282 < tr>283 < th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>284 < td><select name="start_of_week" id="start_of_week">280 </div> 281 </div> 282 <div class="field-row"> 283 <div class="field-label"><label for="start_of_week"><?php _e('Week Starts On') ?></label></div> 284 <div class="field-input"><select name="start_of_week" id="start_of_week"> 285 285 <?php 286 286 for ($day_index = 0; $day_index <= 6; $day_index++) : 287 287 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 288 288 echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>'; 289 289 endfor; 290 290 ?> 291 </select></ td>292 </ tr>291 </select></div> 292 </div> 293 293 <?php do_settings_fields('general', 'default'); ?> 294 294 <?php 295 295 $languages = get_available_languages(); 296 296 if ( is_multisite() && !empty( $languages ) ): 297 297 ?> 298 < tr valign="top">299 < th width="33%" scope="row"><?php _e('Site Language') ?></th>300 < td>298 <div class="field-row"> 299 <div class="field-label"><?php _e('Site Language') ?></div> 300 <div class="field-input"> 301 301 <select name="WPLANG" id="WPLANG"> 302 302 <?php mu_dropdown_languages( $languages, get_option('WPLANG') ); ?> 303 303 </select> 304 </ td>305 </ tr>304 </div> 305 </div> 306 306 <?php 307 307 endif; 308 308 ?> 309 </ table>309 </div> 310 310 311 311 <?php do_settings_sections('general'); ?> 312 312 -
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="field-row"> 44 <div class="field-label"><?php _e('Thumbnail size') ?></div> 45 <div class="field-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="field-row"> 56 <div class="field-label"><?php _e('Medium size') ?></div> 57 <div class="field-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="field-row"> 66 <div class="field-label"><?php _e('Large size') ?></div> 67 <div class="field-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 76 </table> 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="field-row"> 83 <div class="field-label"><?php _e('Auto-embeds'); ?></div> 84 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.'); ?></span></legend> 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="field-row"> 90 <div class="field-label"><?php _e('Maximum embed size') ?></div> 91 <div class="field-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 101 </table> 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="field-row"> 107 <div class="field-label"><label for="upload_path"><?php _e('Store uploads in this folder'); ?></label></div> 108 <div class="field-input"><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr(get_option('upload_path')); ?>" class="regular-text code" /> 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="field-row"> 114 <div class="field-label"><label for="upload_url_path"><?php _e('Full URL path to files'); ?></label></div> 115 <div class="field-input"><input name="upload_url_path" type="text" id="upload_url_path" value="<?php echo esc_attr( get_option('upload_url_path')); ?>" class="regular-text code" /> 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 120 <tr> 121 < th scope="row" colspan="2" class="th-full">121 <div class="field-row"> 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> 128 127 129 128 <?php do_settings_fields('media', 'uploads'); ?> 130 </ table>129 </div> 131 130 <?php endif; ?> 132 131 133 132 <?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="field-row"> 90 <div class="field-label first"><?php _e( 'Name:' ); ?></div> 91 <div class="field-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="field-row"> 94 <div class="field-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="field-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="field-row"> 105 <div class="field-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="field-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 < tr class="form-fieldform-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="field-label form-required"> 40 <div class="field-label"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></div> 41 <div class="field-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 < tr class="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="field-label"> 46 <div class="field-label"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></div> 47 <div class="field-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 < tr class="form-field">53 < th scope="row" valign="top"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>54 < td>52 <div class="field-label"> 53 <div class="field-label"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></div> 54 <div class="field-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 < tr class="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="field-label"> 63 <div class="field-label"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></div> 64 <div class="field-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-fieldform-required">117 < th scope="row"><?php _e( 'Site Address' ) ?></th>118 < td>115 <div class="form-fields"> 116 <div class="field-row form-required"> 117 <div class="field-label"><?php _e( 'Site Address' ) ?></div> 118 <div class="field-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-fieldform-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-fieldform-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="field-row form-required"> 129 <div class="field-label"><?php _e( 'Site Title' ) ?></div> 130 <div class="field-input"><input name="blog[title]" type="text" class="regular-text" title="<?php _e( 'Title' ) ?>"/></div> 131 </div> 132 <div class="field-row form-required"> 133 <div class="field-label"><?php _e( 'Admin Email' ) ?></div> 134 <div class="field-input"><input name="blog[email]" type="text" class="regular-text" title="<?php _e( 'Email' ) ?>"/></div> 135 </div> 136 <div class="field-row"> 137 <div class="field-input field-full"><?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
114 114 <form method="post" action="site-info.php?action=update-site"> 115 115 <?php wp_nonce_field( 'edit-site' ); ?> 116 116 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 117 < table class="form-table">118 < tr class="form-fieldform-required">119 < th scope="row"><?php _e( 'Domain' ) ?></th>117 <div class="form-fields"> 118 <div class="field-row form-required"> 119 <div class="field-label"><?php _e( 'Domain' ) ?></div> 120 120 <?php 121 121 $protocol = is_ssl() ? 'https://' : 'http://'; 122 122 if ( $is_main_site ) { ?> 123 < td><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></td>123 <div class="field-input"><code><?php echo $protocol; echo esc_attr( $details->domain ) ?></code></div> 124 124 <?php } else { ?> 125 < td><?php echo $protocol; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33" /></td>125 <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> 126 126 <?php } ?> 127 </ tr>128 < tr class="form-fieldform-required">129 < th scope="row"><?php _e( 'Path' ) ?></th>127 </div> 128 <div class="field-row form-required"> 129 <div class="field-label"><?php _e( 'Path' ) ?></div> 130 130 <?php if ( $is_main_site ) { ?> 131 < td><code><?php echo esc_attr( $details->path ) ?></code></td>131 <div class="field-input"><code><?php echo esc_attr( $details->path ) ?></code></div> 132 132 <?php } else { ?> 133 < td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style='margin-bottom:5px;' />134 <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>133 <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;' /> 134 <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> 135 135 <?php } ?> 136 </ tr>137 < tr class="form-field">138 < th scope="row"><?php _ex( 'Registered', 'site' ) ?></th>139 < td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></td>140 </ tr>141 < tr class="form-field">142 < th scope="row"><?php _e( 'Last Updated' ); ?></th>143 < td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td>144 </ tr>136 </div> 137 <div class="field-row"> 138 <div class="field-label"><?php _ex( 'Registered', 'site' ) ?></div> 139 <div class="field-input"><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40" /></div> 140 </div> 141 <div class="field-row"> 142 <div class="field-label"><?php _e( 'Last Updated' ); ?></div> 143 <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> 144 </div> 145 145 <?php 146 146 $attribute_fields = array( 'public' => __( 'Public' ) ); 147 147 if ( ! $is_main_site ) { … … 151 151 } 152 152 $attribute_fields['mature'] = __( 'Mature' ); 153 153 ?> 154 < tr>155 < th scope="row"><?php _e( 'Attributes' ); ?></th>156 < td>154 <div class="field-row"> 155 <div class="field-label"><?php _e( 'Attributes' ); ?></div> 156 <div class="field-input"> 157 157 <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?> 158 158 <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 ) ) ); ?> /> 159 159 <?php echo $field_label; ?></label><br/> 160 160 <?php endforeach; ?> 161 </ td>162 </ tr>163 </ table>161 </div> 162 </div> 163 </div> 164 164 <?php submit_button(); ?> 165 165 </form> 166 166 -
wp-admin/network/settings.php
113 113 <form method="post" action="settings.php"> 114 114 <?php wp_nonce_field( 'siteoptions' ); ?> 115 115 <h3><?php _e( 'Operational Settings' ); ?></h3> 116 < table class="form-table">117 < tr valign="top">118 < th scope="row"><label for="site_name"><?php _e( 'Network Name' ) ?></label></th>119 < td>116 <div class="form-fields"> 117 <div class="field-row"> 118 <div class="field-label"><label for="site_name"><?php _e( 'Network Name' ) ?></label></div> 119 <div class="field-input"> 120 120 <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( $current_site->site_name ) ?>" /> 121 121 <br /> 122 122 <?php _e( 'What you would like to call this website.' ) ?> 123 </ td>124 </ tr>123 </div> 124 </div> 125 125 126 < tr valign="top">127 < th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>128 < td>126 <div class="field-row"> 127 <div class="field-label"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></div> 128 <div class="field-input"> 129 129 <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" /> 130 130 <br /> 131 131 <?php printf( __( 'Registration and support emails will come from this address. An address such as <code>support@%s</code> is recommended.' ), $current_site->domain ); ?> 132 </ td>133 </ tr>134 </ table>132 </div> 133 </div> 134 </div> 135 135 <h3><?php _e( 'Registration Settings' ); ?></h3> 136 < table class="form-table">137 < tr valign="top">138 < th scope="row"><?php _e( 'Allow new registrations' ) ?></th>136 <div class="form-fields"> 137 <div class="field-row"> 138 <div class="field-label"><?php _e( 'Allow new registrations' ) ?></div> 139 139 <?php 140 140 if ( !get_site_option( 'registration' ) ) 141 141 update_site_option( 'registration', 'none' ); 142 142 $reg = get_site_option( 'registration' ); 143 143 ?> 144 < td>144 <div class="field-input"> 145 145 <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none') ?> /> <?php _e( 'Registration is disabled.' ); ?></label><br /> 146 146 <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user') ?> /> <?php _e( 'User accounts may be registered.' ); ?></label><br /> 147 147 <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 /> … … 149 149 <?php if ( is_subdomain_install() ) 150 150 _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.' ); 151 151 ?> 152 </ td>153 </ tr>152 </div> 153 </div> 154 154 155 < tr valign="top">156 < th scope="row"><?php _e( 'Registration notification' ) ?></th>155 <div class="field-row"> 156 <div class="field-label"><?php _e( 'Registration notification' ) ?></div> 157 157 <?php 158 158 if ( !get_site_option( 'registrationnotification' ) ) 159 159 update_site_option( 'registrationnotification', 'yes' ); 160 160 ?> 161 < td>161 <div class="field-input"> 162 162 <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> 163 </ td>164 </ tr>163 </div> 164 </div> 165 165 166 < tr valign="top" id="addnewusers">167 < th scope="row"><?php _e( 'Add New Users' ) ?></th>168 < td>166 <div class="field-row" id="addnewusers"> 167 <div class="field-label"><?php _e( 'Add New Users' ) ?></div> 168 <div class="field-input"> 169 169 <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> 170 </ td>171 </ tr>170 </div> 171 </div> 172 172 173 < tr valign="top">174 < th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></th>175 < td>173 <div class="field-row"> 174 <div class="field-label"><label for="illegal_names"><?php _e( 'Banned Names' ) ?></label></div> 175 <div class="field-input"> 176 176 <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" /> 177 177 <br /> 178 178 <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ) ?> 179 </ td>180 </ tr>179 </div> 180 </div> 181 181 182 < tr valign="top">183 < th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></th>184 < td>182 <div class="field-row"> 183 <div class="field-label"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ) ?></label></div> 184 <div class="field-input"> 185 185 <?php $limited_email_domains = get_site_option( 'limited_email_domains' ); 186 186 $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?> 187 187 <textarea name="limited_email_domains" id="limited_email_domains" cols="45" rows="5"> 188 188 <?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea> 189 189 <br /> 190 190 <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?> 191 </ td>192 </ tr>191 </div> 192 </div> 193 193 194 < tr valign="top">195 < th scope="row"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></th>196 < td>194 <div class="field-row"> 195 <div class="field-label"><label for="banned_email_domains"><?php _e('Banned Email Domains') ?></label></div> 196 <div class="field-input"> 197 197 <textarea name="banned_email_domains" id="banned_email_domains" cols="45" rows="5"> 198 198 <?php echo esc_textarea( get_site_option( 'banned_email_domains' ) == '' ? '' : implode( "\n", (array) get_site_option( 'banned_email_domains' ) ) ); ?></textarea> 199 199 <br /> 200 200 <?php _e( 'If you want to ban domains from site registrations. One domain per line.' ) ?> 201 </ td>202 </ tr>201 </div> 202 </div> 203 203 204 </ table>204 </div> 205 205 <h3><?php _e('New Site Settings'); ?></h3> 206 < table class="form-table">206 <div class="form-fields"> 207 207 208 < tr valign="top">209 < th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></th>210 < td>208 <div class="field-row"> 209 <div class="field-label"><label for="welcome_email"><?php _e( 'Welcome Email' ) ?></label></div> 210 <div class="field-input"> 211 211 <textarea name="welcome_email" id="welcome_email" rows="5" cols="45" class="large-text"> 212 212 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_email' ) ) ) ?></textarea> 213 213 <br /> 214 214 <?php _e( 'The welcome email sent to new site owners.' ) ?> 215 </ td>216 </ tr>217 < tr valign="top">218 < th scope="row"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></th>219 < td>215 </div> 216 </div> 217 <div class="field-row"> 218 <div class="field-label"><label for="welcome_user_email"><?php _e( 'Welcome User Email' ) ?></label></div> 219 <div class="field-input"> 220 220 <textarea name="welcome_user_email" id="welcome_user_email" rows="5" cols="45" class="large-text"> 221 221 <?php echo esc_textarea( stripslashes( get_site_option( 'welcome_user_email' ) ) ) ?></textarea> 222 222 <br /> 223 223 <?php _e( 'The welcome email sent to new users.' ) ?> 224 </ td>225 </ tr>226 < tr valign="top">227 < th scope="row"><label for="first_post"><?php _e( 'First Post' ) ?></label></th>228 < td>224 </div> 225 </div> 226 <div class="field-row"> 227 <div class="field-label"><label for="first_post"><?php _e( 'First Post' ) ?></label></div> 228 <div class="field-input"> 229 229 <textarea name="first_post" id="first_post" rows="5" cols="45" class="large-text"> 230 230 <?php echo esc_textarea( stripslashes( get_site_option( 'first_post' ) ) ) ?></textarea> 231 231 <br /> 232 232 <?php _e( 'The first post on a new site.' ) ?> 233 </ td>234 </ tr>235 < tr valign="top">236 < th scope="row"><label for="first_page"><?php _e( 'First Page' ) ?></label></th>237 < td>233 </div> 234 </div> 235 <div class="field-row"> 236 <div class="field-label"><label for="first_page"><?php _e( 'First Page' ) ?></label></div> 237 <div class="field-input"> 238 238 <textarea name="first_page" id="first_page" rows="5" cols="45" class="large-text"> 239 239 <?php echo esc_textarea( stripslashes( get_site_option('first_page') ) ) ?></textarea> 240 240 <br /> 241 241 <?php _e( 'The first page on a new site.' ) ?> 242 </ td>243 </ tr>244 < tr valign="top">245 < th scope="row"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></th>246 < td>242 </div> 243 </div> 244 <div class="field-row"> 245 <div class="field-label"><label for="first_comment"><?php _e( 'First Comment' ) ?></label></div> 246 <div class="field-input"> 247 247 <textarea name="first_comment" id="first_comment" rows="5" cols="45" class="large-text"> 248 248 <?php echo esc_textarea( stripslashes( get_site_option('first_comment') ) ) ?></textarea> 249 249 <br /> 250 250 <?php _e( 'The first comment on a new site.' ) ?> 251 </ td>252 </ tr>253 < tr valign="top">254 < th scope="row"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></th>255 < td>251 </div> 252 </div> 253 <div class="field-row"> 254 <div class="field-label"><label for="first_comment_author"><?php _e( 'First Comment Author' ) ?></label></div> 255 <div class="field-input"> 256 256 <input type="text" size="40" name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" /> 257 257 <br /> 258 258 <?php _e( 'The author of the first comment on a new site.' ) ?> 259 </ td>260 </ tr>261 < tr valign="top">262 < th scope="row"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></th>263 < td>259 </div> 260 </div> 261 <div class="field-row"> 262 <div class="field-label"><label for="first_comment_url"><?php _e( 'First Comment URL' ) ?></label></div> 263 <div class="field-input"> 264 264 <input type="text" size="40" name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr( get_site_option( 'first_comment_url' ) ) ?>" /> 265 265 <br /> 266 266 <?php _e( 'The URL for the first comment on a new site.' ) ?> 267 </ td>268 </ tr>269 </ table>267 </div> 268 </div> 269 </div> 270 270 <h3><?php _e( 'Upload Settings' ); ?></h3> 271 < table class="form-table">272 < tr valign="top">273 < th scope="row"><?php _e( 'Media upload buttons' ) ?></th>271 <div class="form-fields"> 272 <div class="field-row"> 273 <div class="field-label"><?php _e( 'Media upload buttons' ) ?></div> 274 274 <?php $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); ?> 275 < 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 />275 <div class="field-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 /> 276 276 <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 /> 277 277 <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 /> 278 <?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>279 </ tr>278 <?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> 279 </div> 280 280 281 < tr valign="top">282 < th scope="row"><?php _e( 'Site upload space' ) ?></th>283 < td>281 <div class="field-row"> 282 <div class="field-label"><?php _e( 'Site upload space' ) ?></div> 283 <div class="field-input"> 284 284 <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 /> 285 </ td>286 </ tr>285 </div> 286 </div> 287 287 288 < tr valign="top">289 < th scope="row"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></th>290 < 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>291 </ tr>288 <div class="field-row"> 289 <div class="field-label"><label for="upload_filetypes"><?php _e( 'Upload file types' ) ?></label></div> 290 <div class="field-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> 291 </div> 292 292 293 < tr valign="top">294 < th scope="row"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></th>295 < 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>296 </ tr>297 </ table>293 <div class="field-row"> 294 <div class="field-label"><label for="fileupload_maxk"><?php _e( 'Max upload file size' ) ?></label></div> 295 <div class="field-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> 296 </div> 297 </div> 298 298 299 299 <?php 300 300 $languages = get_available_languages(); … … 302 302 $lang = get_site_option( 'WPLANG' ); 303 303 ?> 304 304 <h3><?php _e( 'Language Settings' ); ?></h3> 305 < table class="form-table">306 < tr valign="top">307 < th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>308 < td>305 <div class="form-fields"> 306 <div class="field-row"> 307 <div class="field-label"><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></div> 308 <div class="field-input"> 309 309 <select name="WPLANG" id="WPLANG"> 310 310 <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?> 311 311 </select> 312 </ td>313 </ tr>314 </ table>312 </div> 313 </div> 314 </div> 315 315 <?php 316 316 } // languages 317 317 ?> 318 318 319 319 <h3><?php _e( 'Menu Settings' ); ?></h3> 320 < table id="menu" class="form-table">321 < tr valign="top">322 < th scope="row"><?php _e( 'Enable administration menus' ); ?></th>323 < td>320 <div id="menu" class="form-fields"> 321 <div class="field-row"> 322 <div class="field-label"><?php _e( 'Enable administration menus' ); ?></div> 323 <div class="field-input"> 324 324 <?php 325 325 $menu_perms = get_site_option( 'menu_items' ); 326 326 $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) ); … … 328 328 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/>"; 329 329 } 330 330 ?> 331 </ td>332 </ tr>333 </ table>331 </div> 332 </div> 333 </div> 334 334 335 335 <?php do_action( 'wpmu_options' ); // Add more options here ?> 336 336 -
wp-admin/network/site-settings.php
104 104 <form method="post" action="site-settings.php?action=update-site"> 105 105 <?php wp_nonce_field( 'edit-site' ); ?> 106 106 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 107 < table class="form-table">107 <div class="form-fields"> 108 108 <?php 109 109 $blog_prefix = $wpdb->get_blog_prefix( $id ); 110 110 $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" ); … … 124 124 } 125 125 if ( strpos( $option->option_value, "\n" ) !== false ) { 126 126 ?> 127 < tr class="form-field">128 < th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></th>129 < 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>130 </ tr>127 <div class="field-row"> 128 <div class="field-label"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></div> 129 <div class="field-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> 130 </div> 131 131 <?php 132 132 } else { 133 133 ?> 134 < tr class="form-field">135 < th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>134 <div class="field-row"> 135 <div class="field-label"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></div> 136 136 <?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?> 137 < td><code><?php echo esc_html( $option->option_value ) ?></code></td>137 <div class="field-input"><code><?php echo esc_html( $option->option_value ) ?></code></div> 138 138 <?php } else { ?> 139 < 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>139 <div class="field-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> 140 140 <?php } ?> 141 </ tr>141 </div> 142 142 <?php 143 143 } 144 144 } // End foreach 145 145 do_action( 'wpmueditblogaction', $id ); 146 146 ?> 147 </ table>147 </div> 148 148 <?php submit_button(); ?> 149 149 </form> 150 150 -
wp-admin/network/site-users.php
245 245 <form action="site-users.php?action=adduser" id="adduser" method="post"> 246 246 <?php wp_nonce_field( 'edit-site' ); ?> 247 247 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 248 < table class="form-table">249 < tr>250 < th scope="row"><?php _e( 'Username' ); ?></th>251 < td><input type="text" class="regular-text" name="newuser" id="newuser" /></td>252 </ tr>253 < tr>254 < th scope="row"><?php _e( 'Role'); ?></th>255 < td><select name="new_role" id="new_role_0">248 <div class="form-fields"> 249 <div class="field-row"> 250 <div class="field-label"><?php _e( 'Username' ); ?></div> 251 <div class="field-input"><input type="text" class="regular-text" name="newuser" id="newuser" /></div> 252 </div> 253 <div class="field-row"> 254 <div class="field-label"><?php _e( 'Role'); ?></div> 255 <div class="field-input"><select name="new_role" id="new_role_0"> 256 256 <?php 257 257 reset( $editblog_roles ); 258 258 foreach ( $editblog_roles as $role => $role_assoc ){ … … 261 261 echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 262 262 } 263 263 ?> 264 </select></ td>265 </ tr>266 </ table>264 </select></div> 265 </div> 266 </div> 267 267 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 268 268 <?php submit_button( __('Add User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-existing-user' ) ); ?> 269 269 </form> … … 274 274 <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 275 275 <?php wp_nonce_field( 'edit-site' ); ?> 276 276 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 277 < table class="form-table">278 < tr>279 < th scope="row"><?php _e( 'Username' ) ?></th>280 < td><input type="text" class="regular-text" name="user[username]" /></td>281 </ tr>282 < tr>283 < th scope="row"><?php _e( 'Email' ) ?></th>284 < td><input type="text" class="regular-text" name="user[email]" /></td>285 </ tr>286 < tr>287 < th scope="row"><?php _e( 'Role'); ?></th>288 < td><select name="new_role" id="new_role_0">277 <div class="form-fields"> 278 <div class="field-row"> 279 <div class="field-label"><?php _e( 'Username' ) ?></div> 280 <div class="field-input"><input type="text" class="regular-text" name="user[username]" /></div> 281 </div> 282 <div class="field-row"> 283 <div class="field-label"><?php _e( 'Email' ) ?></div> 284 <div class="field-input"><input type="text" class="regular-text" name="user[email]" /></div> 285 </div> 286 <div class="field-row"> 287 <div class="field-label"><?php _e( 'Role'); ?></div> 288 <div class="field-input"><select name="new_role" id="new_role_0"> 289 289 <?php 290 290 reset( $editblog_roles ); 291 291 foreach ( $editblog_roles as $role => $role_assoc ){ … … 294 294 echo '<option ' . $selected . ' value="' . esc_attr( $role ) . '">' . esc_html( $name ) . '</option>'; 295 295 } 296 296 ?> 297 </select></td> 298 </tr> 299 <tr class="form-field"> 300 <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td> 301 </tr> 302 </table> 297 </select></div> 298 </div> 299 <div class="field-row"> 300 <div class="field-input field-full"> 301 <?php _e( 'Username and password will be mailed to the above email address.' ) ?> 302 </div> 303 </div> 304 </div> 303 305 <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ) ?> 304 306 <?php submit_button( __('Add New User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-user' ) ); ?> 305 307 </form> -
wp-admin/network/user-new.php
81 81 </div> 82 82 <?php } ?> 83 83 <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post"> 84 < table class="form-table">85 < tr class="form-fieldform-required">86 < th scope="row"><?php _e( 'Username' ) ?></th>87 < td><input type="text" class="regular-text" name="user[username]" /></td>88 </ tr>89 < tr class="form-fieldform-required">90 < th scope="row"><?php _e( 'Email' ) ?></th>91 < td><input type="text" class="regular-text" name="user[email]" /></td>92 </ tr>93 < tr class="form-field">94 <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></ td>95 </ tr>96 </ table>84 <div class="form-fields"> 85 <div class="field-row form-required"> 86 <div class="field-label"><?php _e( 'Username' ) ?></div> 87 <div class="form-input"><input type="text" class="regular-text" name="user[username]" /></div> 88 </div> 89 <div class="field-row form-required"> 90 <div class="field-label"><?php _e( 'Email' ) ?></div> 91 <div class="form-input"><input type="text" class="regular-text" name="user[email]" /></div> 92 </div> 93 <div class="field-row"> 94 <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></div> 95 </div> 96 </div> 97 97 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 98 98 <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?> 99 99 </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="field-row"> 38 <div class="field-label"><?php _e('Default article settings'); ?></div> 39 <div class="field-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="field-row"> 56 <div class="field-label"><?php _e('Other comment settings'); ?></div> 57 <div class="field-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="field-row"> 116 <div class="field-label"><?php _e('E-mail me whenever'); ?></div> 117 <div class="field-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="field-row"> 128 <div class="field-label"><?php _e('Before a comment appears'); ?></div> 129 <div class="field-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="field-row"> 138 <div class="field-label"><?php _e('Comment Moderation'); ?></div> 139 <div class="field-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="field-row"> 149 <div class="field-label"><?php _e('Comment Blacklist'); ?></div> 150 <div class="field-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 158 </table> 159 159 … … 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="field-row"> 168 <div class="field-label"><?php _e('Avatar Display'); ?></div> 169 <div class="field-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="field-row"> 180 <div class="field-label"><?php _e('Maximum Rating'); ?></div> 181 <div class="field-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 < tdclass="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend>200 </fieldset></div> 201 </div> 202 <div class="field-row"> 203 <div class="field-label"><?php _e('Default Avatar'); ?></div> 204 <div class="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 240 </table> 241 241 -
wp-admin/options.php
175 175 <?php wp_nonce_field('options-options') ?> 176 176 <input type="hidden" name="action" value="update" /> 177 177 <input type='hidden' name='option_page' value='options' /> 178 < table class="form-table">178 <div class="form-fields"> 179 179 <?php 180 180 $options = $wpdb->get_results( "SELECT * FROM $wpdb->options ORDER BY option_name" ); 181 181 … … 201 201 } 202 202 $name = esc_attr( $option->option_name ); 203 203 echo " 204 < tr>205 < th scope='row'><label for='$name'>" . esc_html( $option->option_name ) . "</label></th>206 < td>";204 <div class='field-row'> 205 <div class='field-label'><label for='$name'>" . esc_html( $option->option_name ) . "</label></div> 206 <div>"; 207 207 if ( strpos( $value, "\n" ) !== false ) 208 208 echo "<textarea class='$class' name='$name' id='$name' cols='30' rows='5'>" . esc_textarea( $value ) . "</textarea>"; 209 209 else 210 210 echo "<input class='regular-text $class' type='text' name='$name' id='$name' value='" . esc_attr( $value ) . "'" . disabled( $disabled, true, false ) . " />"; 211 echo "</ td>212 </ tr>";211 echo "</div> 212 </div>"; 213 213 endforeach; 214 214 ?> 215 </ table>215 </div> 216 216 217 217 <input type="hidden" name="page_options" value="<?php echo esc_attr( implode( ',', $options_to_update ) ); ?>" /> 218 218 -
wp-admin/user-edit.php
62 62 */ 63 63 function use_ssl_preference($user) { 64 64 ?> 65 < tr>66 < th scope="row"><?php _e('Use https')?></th>67 < 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>68 </ tr>65 <div class="field-row"> 66 <div class="field-input"><?php _e('Use https')?></div> 67 <div class="field-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> 68 </div> 69 69 <?php 70 70 } 71 71 … … 192 192 193 193 <h3><?php _e('Personal Options'); ?></h3> 194 194 195 < table class="form-table">195 <div class="form-fields"> 196 196 <?php if ( rich_edit_exists() && !( IS_PROFILE_PAGE && !$user_can_edit ) ) : // don't bother showing the option if the editor has been removed ?> 197 < tr>198 < th scope="row"><?php _e('Visual Editor')?></th>199 < 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>200 </ tr>197 <div class="field-row"> 198 <div class="field-label"><?php _e('Visual Editor')?></div> 199 <div class="field-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> 200 </div> 201 201 <?php endif; ?> 202 202 <?php if ( count($_wp_admin_css_colors) > 1 && has_action('admin_color_scheme_picker') ) : ?> 203 < tr>204 < th scope="row"><?php _e('Admin Color Scheme')?></th>205 < td><?php do_action( 'admin_color_scheme_picker' ); ?></td>206 </ tr>203 <div class="field-row"> 204 <div class="field-label"><?php _e('Admin Color Scheme')?></div> 205 <div class="field-input"><?php do_action( 'admin_color_scheme_picker' ); ?></div> 206 </div> 207 207 <?php 208 208 endif; // $_wp_admin_css_colors 209 209 if ( !( IS_PROFILE_PAGE && !$user_can_edit ) ) : ?> 210 < tr>211 < th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th>212 < 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>213 </ tr>210 <div class="field-row"> 211 <div class="field-label"><?php _e( 'Keyboard Shortcuts' ); ?></div> 212 <div class="field-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> 213 </div> 214 214 <?php endif; ?> 215 < tr class="show-admin-bar">216 < th scope="row"><?php _e('Show Admin Bar')?></th>217 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Show Admin Bar') ?></span></legend>215 <div class="field-row show-admin-bar"> 216 <div class="field-label"><?php _e('Show Admin Bar')?></div> 217 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Show Admin Bar') ?></span></legend> 218 218 <label for="admin_bar_front"> 219 219 <input name="admin_bar_front" type="checkbox" id="admin_bar_front" value="1" <?php checked( _get_admin_bar_pref( 'front', $profileuser->ID ) ); ?> /> 220 220 <?php /* translators: Show admin bar when viewing site */ _e( 'when viewing site' ); ?></label><br /> 221 221 <label for="admin_bar_admin"> 222 222 <input name="admin_bar_admin" type="checkbox" id="admin_bar_admin" value="1" <?php checked( _get_admin_bar_pref( 'admin', $profileuser->ID ) ); ?> /> 223 223 <?php /* translators: Show admin bar in dashboard */ _e( 'in dashboard' ); ?></label></fieldset> 224 </ td>225 </ tr>224 </div> 225 </div> 226 226 <?php do_action('personal_options', $profileuser); ?> 227 </ table>227 </div> 228 228 <?php 229 229 if ( IS_PROFILE_PAGE ) 230 230 do_action('profile_personal_options', $profileuser); … … 232 232 233 233 <h3><?php _e('Name') ?></h3> 234 234 235 < table class="form-table">236 < tr>237 < th><label for="user_login"><?php _e('Username'); ?></label></th>238 < 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>239 </ tr>235 <div class="form-fields"> 236 <div class="field-row"> 237 <div class="field-label"><label for="user_login"><?php _e('Username'); ?></label></div> 238 <div class="field-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> 239 </div> 240 240 241 241 <?php if ( !IS_PROFILE_PAGE && !is_network_admin() ) : ?> 242 < tr><th><label for="role"><?php _e('Role:') ?></label></th>243 < td><select name="role" id="role">242 <div class="field-row"><div class="field-label"><label for="role"><?php _e('Role:') ?></label></div> 243 <div class="field-input"><select name="role" id="role"> 244 244 <?php 245 245 // Get the highest/primary role for this user 246 246 // TODO: create a function that does this: wp_get_user_role() … … 260 260 <?php endif; //!IS_PROFILE_PAGE 261 261 262 262 if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?> 263 < tr><th><label for="role"><?php _e('Super Admin'); ?></label></th>264 < td>263 <div class="field-row"><div class="field-label"><label for="role"><?php _e('Super Admin'); ?></label></div> 264 <div class="field-input"> 265 265 <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) ) : ?> 266 266 <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> 267 267 <?php else : ?> 268 268 <p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p> 269 269 <?php endif; ?> 270 </ td></tr>270 </div></div> 271 271 <?php } ?> 272 272 273 < tr>274 < th><label for="first_name"><?php _e('First Name') ?></label></th>275 < td><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></td>276 </ tr>273 <div class="field-row"> 274 <div class="field-label"><label for="first_name"><?php _e('First Name') ?></label></div> 275 <div class="field-input"><input type="text" name="first_name" id="first_name" value="<?php echo esc_attr($profileuser->first_name) ?>" class="regular-text" /></div> 276 </div> 277 277 278 < tr>279 < th><label for="last_name"><?php _e('Last Name') ?></label></th>280 < td><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></td>281 </ tr>278 <div class="field-row"> 279 <div class="field-label"><label for="last_name"><?php _e('Last Name') ?></label></div> 280 <div class="field-input"><input type="text" name="last_name" id="last_name" value="<?php echo esc_attr($profileuser->last_name) ?>" class="regular-text" /></div> 281 </div> 282 282 283 < tr>284 < th><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>285 < td><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></td>286 </ tr>283 <div class="field-row"> 284 <div class="field-label"><label for="nickname"><?php _e('Nickname'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 285 <div class="field-input"><input type="text" name="nickname" id="nickname" value="<?php echo esc_attr($profileuser->nickname) ?>" class="regular-text" /></div> 286 </div> 287 287 288 < tr>289 < th><label for="display_name"><?php _e('Display name publicly as') ?></label></th>290 < td>288 <div class="field-row"> 289 <div class="field-label"><label for="display_name"><?php _e('Display name publicly as') ?></label></div> 290 <div class="field-input"> 291 291 <select name="display_name" id="display_name"> 292 292 <?php 293 293 $public_display = array(); … … 318 318 } 319 319 ?> 320 320 </select> 321 </ td>322 </ tr>323 </ table>321 </div> 322 </div> 323 </div> 324 324 325 325 <h3><?php _e('Contact Info') ?></h3> 326 326 327 < table class="form-table">328 < tr>329 < th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>330 < td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />327 <div class="form-fields"> 328 <div class="field-row"> 329 <div class="field-label"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></div> 330 <div class="field-input"><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" /> 331 331 <?php 332 332 $new_email = get_option( $current_user->ID . '_new_email' ); 333 333 if ( $new_email && $new_email != $current_user->user_email ) : ?> … … 335 335 <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> 336 336 </div> 337 337 <?php endif; ?> 338 </ td>339 </ tr>338 </div> 339 </div> 340 340 341 < tr>342 < th><label for="url"><?php _e('Website') ?></label></th>343 < td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>344 </ tr>341 <div class="field-row"> 342 <div class="field-label"><label for="url"><?php _e('Website') ?></label></div> 343 <div class="field-input"><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></div> 344 </div> 345 345 346 346 <?php 347 347 foreach (_wp_get_user_contactmethods( $profileuser ) as $name => $desc) { 348 348 ?> 349 < tr>350 < th><label for="<?php echo $name; ?>"><?php echo apply_filters('user_'.$name.'_label', $desc); ?></label></th>351 < td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></td>352 </ tr>349 <div class="field-row"> 350 <div class="field-label"><label for="<?php echo $name; ?>"><?php echo apply_filters('user_'.$name.'_label', $desc); ?></label></div> 351 <div class="field-input"><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr($profileuser->$name) ?>" class="regular-text" /></div> 352 </div> 353 353 <?php 354 354 } 355 355 ?> 356 </ table>356 </div> 357 357 358 358 <h3><?php IS_PROFILE_PAGE ? _e('About Yourself') : _e('About the user'); ?></h3> 359 359 360 < table class="form-table">361 < tr>362 < th><label for="description"><?php _e('Biographical Info'); ?></label></th>363 < td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br />364 <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></ td>365 </ tr>360 <div class="form-fields"> 361 <div class="field-row"> 362 <div class="field-label"><label for="description"><?php _e('Biographical Info'); ?></label></div> 363 <div class="field-input"><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea><br /> 364 <span class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></span></div> 365 </div> 366 366 367 367 <?php 368 368 $show_password_fields = apply_filters('show_password_fields', true, $profileuser); 369 369 if ( $show_password_fields ) : 370 370 ?> 371 < trid="password">372 < th><label for="pass1"><?php _e('New Password'); ?></label></th>373 < 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 />371 <div id="password"> 372 <div class="field-label"><label for="pass1"><?php _e('New Password'); ?></label></div> 373 <div class="field-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 /> 374 374 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br /> 375 375 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 376 376 <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> 377 </ td>378 </ tr>377 </div> 378 </div> 379 379 <?php endif; ?> 380 </ table>380 </div> 381 381 382 382 <?php 383 383 if ( IS_PROFILE_PAGE ) … … 388 388 389 389 <?php if ( count($profileuser->caps) > count($profileuser->roles) && apply_filters('additional_capabilities_display', true, $profileuser) ) { ?> 390 390 <br class="clear" /> 391 < table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">392 < tr>393 < th scope="row"><?php _e('Additional Capabilities') ?></th>394 < td><?php391 <div class="form-fields editform"> 392 <div class="field-row"> 393 <div class="field-input"><?php _e('Additional Capabilities') ?></div> 394 <div class="field-input"><?php 395 395 $output = ''; 396 396 foreach ( $profileuser->caps as $cap => $value ) { 397 397 if ( !$wp_roles->is_role($cap) ) { … … 401 401 } 402 402 } 403 403 echo $output; 404 ?></ td>405 </ tr>406 </ table>404 ?></div> 405 </div> 406 </div> 407 407 <?php } ?> 408 408 409 409 <input type="hidden" name="action" value="update" /> -
wp-admin/css/wp-admin.dev.css
2163 2163 box-shadow: none; 2164 2164 } 2165 2165 2166 .postbox table.form-table { 2166 .postbox table.form-table, 2167 .postbox .form-fields { 2167 2168 margin-bottom: 0; 2168 2169 } 2169 2170 … … 4076 4077 margin: 8px; 4077 4078 } 4078 4079 4079 .form-table td.imgedit-response { 4080 .form-table td.imgedit-response, 4081 .form-fields .imgedit-response { 4080 4082 padding: 0; 4081 4083 } 4082 4084 … … 4116 4118 15.0 - Comments Screen 4117 4119 ------------------------------------------------------------------------------*/ 4118 4120 4121 .form-table, 4122 .form-fields { 4123 margin-top: 0.5em; 4124 width: 100%; 4125 clear: both; 4126 } 4127 4119 4128 .form-table { 4120 4129 border-collapse: collapse; 4121 margin-top: 0.5em;4122 width: 100%;4123 4130 margin-bottom: -8px; 4131 } 4132 4133 .form-fields .field-row { 4124 4134 clear: both; 4125 4135 } 4126 4136 4127 .form-table td { 4137 .form-table td, 4138 .form-fields .field-input { 4128 4139 margin-bottom: 9px; 4129 4140 padding: 8px 10px; 4130 4141 line-height: 20px; 4131 4142 font-size: 12px; 4132 4143 } 4133 4144 4145 .form-fields .field-input { 4146 margin: 0 0 0 220px; 4147 overflow: hidden; 4148 } 4149 4150 .editcomment .field-input { 4151 margin: 0 0 0 120px; 4152 } 4153 4134 4154 .form-table th, 4135 .form-wrap label { 4155 .form-wrap label, 4156 .form-fields .field-label, 4157 .form-fields label { 4136 4158 font-weight: normal; 4137 4159 text-shadow: rgba(255,255,255,1) 0 1px 0; 4138 4160 } 4139 4161 4140 .form-table th { 4141 vertical-align: top; 4162 .form-table th, 4163 .form-fields .field-label { 4164 line-height: 20px; 4142 4165 text-align: left; 4143 4166 padding: 10px; 4144 4167 width: 200px; 4145 4168 } 4146 4169 4147 .form-table th.th-full { 4170 .form-table th { 4171 vertical-align: top; 4172 } 4173 4174 .form-fields .field-label { 4175 float: left; 4176 } 4177 4178 .editcomment .field-label { 4179 width: 100px; 4180 } 4181 4182 .form-table th.th-full, 4183 .form-fields .field-full { 4148 4184 width: auto; 4149 4185 } 4150 4186 4151 . form-table div.color-option {4187 .color-option { 4152 4188 display: block; 4153 4189 clear: both; 4154 4190 margin-top: 12px; 4155 4191 } 4156 4192 4157 .form-tableinput.tog {4193 input.tog { 4158 4194 margin-top: 2px; 4159 4195 margin-right: 2px; 4160 4196 float: left; … … 4164 4200 margin-top: 4px; 4165 4201 } 4166 4202 4167 .form-table table.color-palette { 4203 .form-fields .field-input p { 4204 margin-top: 0; 4205 } 4206 4207 table.color-palette { 4168 4208 vertical-align: bottom; 4169 4209 float: left; 4170 4210 margin: -12px 3px 11px; 4171 4211 } 4172 4212 4173 .form-table .color-palette td { 4174 border-width: 1px 1px 0; 4175 border-style: solid solid none; 4213 .color-palette td { 4176 4214 height: 10px; 4177 4215 line-height: 20px; 4216 padding: 8px 10px; 4178 4217 width: 10px; 4179 4218 } 4180 4219 … … 4619 4658 18.0 - Users 4620 4659 ------------------------------------------------------------------------------*/ 4621 4660 4622 #profile-page .form-tabletextarea {4661 #profile-page textarea { 4623 4662 width: 500px; 4624 4663 margin-bottom: 6px; 4625 4664 } 4626 4665 4627 #profile-page .form-table#rich_editing {4666 #profile-page #rich_editing { 4628 4667 margin-right: 5px 4629 4668 } 4630 4669 … … 4824 4863 margin: 0; 4825 4864 } 4826 4865 4827 table.form-table td .updated { 4866 .form-table td .updated, 4867 .form-fields .field-input .updated { 4828 4868 font-size: 13px; 4829 4869 } 4830 4870 … … 7690 7730 } 7691 7731 7692 7732 /* users */ 7693 #profile-page .form-tabletextarea {7733 #profile-page textarea { 7694 7734 max-width: 400px; 7695 7735 width: auto; 7696 7736 } -
wp-admin/css/install.dev.css
68 68 .step { 69 69 margin: 20px 0 15px; 70 70 } 71 .step, th{71 .step, .field-label { 72 72 text-align: left; 73 73 padding: 0; 74 74 } … … 113 113 border-radius: 3px; 114 114 } 115 115 116 .form-table { 117 border-collapse: collapse; 116 .form-fields { 118 117 margin-top: 1em; 119 118 width: 100%; 120 119 } 121 120 122 .form- table td{121 .form-fields .field-input { 123 122 margin-bottom: 9px; 123 margin-left: 150px; 124 124 padding: 10px; 125 border-bottom: 8px solid #fff;126 125 font-size: 12px; 127 126 } 128 127 129 .form-table th { 128 .form-fields .field-full { 129 margin-left: 0; 130 } 131 132 .form-fields .field-label { 133 float: left; 130 134 font-size: 13px; 135 font-weight: bold; 131 136 text-align: left; 132 137 padding: 16px 10px 10px 10px; 133 border-bottom: 8px solid #fff;134 138 width: 130px; 135 139 vertical-align: top; 136 140 } 137 141 138 .form- table tr{142 .form-fields .field-row { 139 143 background: #f3f3f3; 140 144 } 141 145 142 .form- tablecode {146 .form-fields code { 143 147 line-height: 18px; 144 148 font-size: 18px; 145 149 } 146 150 147 .form- tablep {151 .form-fields p { 148 152 margin: 4px 0 0 0; 149 153 font-size: 11px; 150 154 } 151 155 152 .form- tableinput {156 .form-fields input { 153 157 line-height: 20px; 154 158 font-size: 15px; 155 159 padding: 2px; 156 160 } 157 161 158 .form- table thp {162 .form-fields p { 159 163 font-weight: normal; 160 164 } 161 165 … … 229 233 } 230 234 231 235 .rtl .step, 232 .rtl th,233 .rtl .form- table th{236 .rtl .field-label, 237 .rtl .form-fields .field-label { 234 238 text-align: right; 235 239 } 236 240 -
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="field-row"> 78 <div class="field-label"><?php _e( 'Front page displays' ); ?></div> 79 <div class="field-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> 98 </div> 99 99 <?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>100 <div class="field-row"> 101 <div class="field-label"><label for="posts_per_page"><?php _e( 'Blog pages show at most' ); ?></label></div> 102 <div class="field-input"> 103 103 <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>104 </div> 105 </div> 106 <div class="field-row"> 107 <div class="field-label"><label for="posts_per_rss"><?php _e( 'Syndication feeds show the most recent' ); ?></label></div> 108 <div class="field-input"><input name="posts_per_rss" type="text" id="posts_per_rss" value="<?php form_option( 'posts_per_rss' ); ?>" class="small-text" /> <?php _e( 'items' ); ?></div> 109 </div> 110 <div class="field-row"> 111 <div class="field-label"><?php _e( 'For each article in a feed, show' ); ?> </div> 112 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend> 113 113 <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 114 <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>115 </fieldset></div> 116 </div> 117 117 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>118 <div class="field-row"> 119 <div class="field-label"><label for="blog_charset"><?php _e( 'Encoding for pages and feeds' ); ?></label></div> 120 <div class="field-input"><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></div> 122 </div> 123 123 <?php do_settings_fields( 'reading', 'default' ); ?> 124 </ table>124 </div> 125 125 126 126 <?php do_settings_sections( 'reading' ); ?> 127 127 -
wp-admin/setup-config.php
116 116 ?> 117 117 <form method="post" action="setup-config.php?step=2"> 118 118 <p>Below you should enter your database connection details. If you're not sure about these, contact your host. </p> 119 < table class="form-table">120 < tr>121 < th scope="row"><label for="dbname">Database Name</label></th>122 < td><input name="dbname" id="dbname" type="text" size="25" value="wordpress" /></td>123 < td>The name of the database you want to run WP in. </td>124 </ tr>125 < tr>126 < th scope="row"><label for="uname">User Name</label></th>127 < td><input name="uname" id="uname" type="text" size="25" value="username" /></td>128 < td>Your MySQL username</td>129 </ tr>130 < tr>131 < th scope="row"><label for="pwd">Password</label></th>132 < td><input name="pwd" id="pwd" type="text" size="25" value="password" /></td>133 < td>...and MySQL password.</td>134 </ tr>135 < tr>136 < th scope="row"><label for="dbhost">Database Host</label></th>137 < td><input name="dbhost" id="dbhost" type="text" size="25" value="localhost" /></td>138 < td>You should be able to get this info from your web host, if <code>localhost</code> does not work.</td>139 </ tr>140 < tr>141 < th scope="row"><label for="prefix">Table Prefix</label></th>142 < td><input name="prefix" id="prefix" type="text" value="wp_" size="25" /></td>143 < td>If you want to run multiple WordPress installations in a single database, change this.</td>144 </ tr>145 </ table>119 <div class="form-fields"> 120 <div class="field-row"> 121 <div class="field-label"><label for="dbname">Database Name</label></div> 122 <div class="field-input"><input name="dbname" id="dbname" type="text" size="25" value="wordpress" /></div> 123 <div class="field-input">The name of the database you want to run WP in. </div> 124 </div> 125 <div class="field-row"> 126 <div class="field-label"><label for="uname">User Name</label></div> 127 <div class="field-input"><input name="uname" id="uname" type="text" size="25" value="username" /></div> 128 <div class="field-input">Your MySQL username</div> 129 </div> 130 <div class="field-row"> 131 <div class="field-label"><label for="pwd">Password</label></div> 132 <div class="field-input"><input name="pwd" id="pwd" type="text" size="25" value="password" /></div> 133 <div class="field-input">...and MySQL password.</div> 134 </div> 135 <div class="field-row"> 136 <div class="field-label"><label for="dbhost">Database Host</label></div> 137 <div class="field-input"><input name="dbhost" id="dbhost" type="text" size="25" value="localhost" /></div> 138 <div class="field-input">You should be able to get this info from your web host, if <code>localhost</code> does not work.</div> 139 </div> 140 <div class="field-row"> 141 <div class="field-label"><label for="prefix">Table Prefix</label></div> 142 <div class="field-input"><input name="prefix" id="prefix" type="text" value="wp_" size="25" /></div> 143 <div class="field-input">If you want to run multiple WordPress installations in a single database, change this.</div> 144 </div> 145 </div> 146 146 <?php if ( isset( $_GET['noapi'] ) ) { ?><input name="noapi" type="hidden" value="true" /><?php } ?> 147 147 <p class="step"><input name="submit" type="submit" value="Submit" class="button" /></p> 148 148 </form> -
wp-admin/install.php
92 92 <p class="message"><?php printf( __( '<strong>ERROR</strong>: %s' ), $error ); ?></p> 93 93 <?php } ?> 94 94 <form id="setup" method="post" action="install.php?step=2"> 95 < table class="form-table">96 < tr>97 < th scope="row"><label for="weblog_title"><?php _e( 'Site Title' ); ?></label></th>98 < td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td>99 </ tr>100 < tr>101 < th scope="row"><label for="user_name"><?php _e('Username'); ?></label></th>102 < td>95 <div class="form-fields"> 96 <div class="field-row"> 97 <div class="field-label"><label for="weblog_title"><?php _e( 'Site Title' ); ?></label></div> 98 <div class="field-input"><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></div> 99 </div> 100 <div class="field-row"> 101 <div class="field-label"><label for="user_name"><?php _e('Username'); ?></label></div> 102 <div class="field-input"> 103 103 <?php 104 104 if ( $user_table ) { 105 105 _e('User(s) already exists.'); … … 108 108 <p><?php _e( 'Usernames can have only alphanumeric characters, spaces, underscores, hyphens, periods and the @ symbol.' ); ?></p> 109 109 <?php 110 110 } ?> 111 </ td>112 </ tr>111 </div> 112 </div> 113 113 <?php if ( ! $user_table ) : ?> 114 < tr>115 < th scope="row">114 <div class="field-row"> 115 <div class="field-label"> 116 116 <label for="admin_password"><?php _e('Password, twice'); ?></label> 117 117 <p><?php _e('A password will be automatically generated for you if you leave this blank.'); ?></p> 118 </ th>119 < td>118 </div> 119 <div class="field-input"> 120 120 <input name="admin_password" type="password" id="pass1" size="25" value="" /> 121 121 <p><input name="admin_password2" type="password" id="pass2" size="25" value="" /></p> 122 122 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 123 123 <p><?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> 124 </ td>125 </ tr>124 </div> 125 </div> 126 126 <?php endif; ?> 127 < tr>128 < th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th>129 < td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />130 <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></ td>131 </ tr>132 < tr>133 < td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow my site to appear in search engines like Google and Technorati.' ); ?></label></td>134 </ tr>135 </ table>127 <div class="field-row"> 128 <div class="field-label"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></div> 129 <div class="field-input"><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" /> 130 <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></div> 131 </div> 132 <div class="field-row"> 133 <div class="field-input field-full"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow my site to appear in search engines like Google and Technorati.' ); ?></label></div> 134 </div> 135 </div> 136 136 <p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Install WordPress' ); ?>" class="button" /></p> 137 137 </form> 138 138 <?php … … 220 220 221 221 <p><?php _e( 'WordPress has been installed. Were you expecting more steps? Sorry to disappoint.' ); ?></p> 222 222 223 < table class="form-table">224 < tr>225 < th><?php _e( 'Username' ); ?></th>226 < td><code><?php echo esc_html( sanitize_user( $user_name, true ) ); ?></code></td>227 </ tr>228 < tr>229 < th><?php _e( 'Password' ); ?></th>230 < td><?php223 <div class="form-fields"> 224 <div class="field-row"> 225 <div class="field-label"><?php _e( 'Username' ); ?></div> 226 <div class="field-input"><code><?php echo esc_html( sanitize_user( $user_name, true ) ); ?></code></div> 227 </div> 228 <div class="field-row"> 229 <div class="field-label"><?php _e( 'Password' ); ?></div> 230 <div class="field-input"><?php 231 231 if ( ! empty( $password ) && empty($admin_password_check) ) 232 232 echo '<code>'. esc_html($password) .'</code><br />'; 233 233 echo "<p>$password_message</p>"; ?> 234 </ td>235 </ tr>236 </ table>234 </div> 235 </div> 236 </div> 237 237 238 238 <p class="step"><a href="../wp-login.php" class="button"><?php _e( 'Log In' ); ?></a></p> 239 239 -
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') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></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') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></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 . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></td>191 </ tr>192 < tr>193 < th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[4]); ?>" class="tog" <?php checked($structures[4], $permalink_structure); ?> /> <?php _e('Post name'); ?></label></th>194 < td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></td>195 </ tr>196 < tr>197 < th>175 <div class="form-fields"> 176 <div class="field-row"> 177 <div class="field-label"><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></div> 178 <div class="field-input"><code><?php echo get_option('home'); ?>/?p=123</code></div> 179 </div> 180 <div class="field-row"> 181 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></div> 182 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div> 183 </div> 184 <div class="field-row"> 185 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></div> 186 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div> 187 </div> 188 <div class="field-row"> 189 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></div> 190 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'archives', 'sample permalink base' ) . '/123'; ?></code></div> 191 </div> 192 <div class="field-row"> 193 <div class="field-label"><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[4]); ?>" class="tog" <?php checked($structures[4], $permalink_structure); ?> /> <?php _e('Post name'); ?></label></div> 194 <div class="field-input"><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . _x( 'sample-post', 'sample permalink structure' ) . '/'; ?></code></div> 195 </div> 196 <div class="field-row"> 197 <div class="field-label"> 198 198 <label><input name="selection" id="custom_selection" type="radio" value="custom" class="tog" <?php checked( !in_array($permalink_structure, $structures) ); ?> /> 199 199 <?php _e('Custom Structure'); ?> 200 200 </label> 201 </ th>202 < td>201 </div> 202 <div class="field-input"> 203 203 <?php echo $blog_prefix; ?> 204 204 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo esc_attr($permalink_structure); ?>" class="regular-text code" /> 205 </ td>206 </ tr>207 </ table>205 </div> 206 </div> 207 </div> 208 208 209 209 <h3><?php _e('Optional'); ?></h3> 210 210 <?php if ( $is_apache || $iis7_permalinks ) : ?> … … 213 213 <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> 214 214 <?php endif; ?> 215 215 216 < table class="form-table">217 < tr>218 < th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></th>219 < 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>220 </ tr>221 < tr>222 < th><label for="tag_base"><?php _e('Tag base'); ?></label></th>223 < 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>224 </ tr>216 <div class="form-fields"> 217 <div class="field-row"> 218 <div class="field-label"><label for="category_base"><?php /* translators: prefix for category permalinks */ _e('Category base'); ?></label></div> 219 <div class="field-input"><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></div> 220 </div> 221 <div class="field-row"> 222 <div class="field-label"><label for="tag_base"><?php _e('Tag base'); ?></label></div> 223 <div class="field-input"><?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr($tag_base); ?>" class="regular-text code" /></div> 224 </div> 225 225 <?php do_settings_fields('permalink', 'optional'); ?> 226 </ table>226 </div> 227 227 228 228 <?php do_settings_sections('permalink'); ?> 229 229 -
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="field-row"> 38 <div class="field-label"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></div> 39 <div class="field-input"><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" /> 40 <?php _e('lines') ?></div> 41 </div> 42 <div class="field-row"> 43 <div class="field-label"><?php _e('Formatting') ?></div> 44 <div class="field-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="field-row"> 52 <div class="field-label"><label for="default_category"><?php _e('Default Post Category') ?></label></div> 53 <div class="field-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="field-row"> 65 <div class="field-label"><label for="default_post_format"><?php _e('Default Post Format') ?></label></div> 66 <div class="field-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> 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="field-row"> 77 <div class="field-label"><label for="default_link_category"><?php _e('Default Link Category') ?></label></div> 78 <div class="field-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> … … 99 99 <h3><?php _e('Post via e-mail') ?></h3> 100 100 <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> 101 101 102 < table class="form-table">103 < tr valign="top">104 < th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>105 < td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />102 <div class="form-fields"> 103 <div class="field-row"> 104 <div class="field-label"><label for="mailserver_url"><?php _e('Mail Server') ?></label></div> 105 <div class="field-input"><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" /> 106 106 <label for="mailserver_port"><?php _e('Port') ?></label> 107 107 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" /> 108 </ td>109 </ tr>110 < tr valign="top">111 < th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>112 < td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></td>113 </ tr>114 < tr valign="top">115 < th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>116 < td>108 </div> 109 </div> 110 <div class="field-row"> 111 <div class="field-label"><label for="mailserver_login"><?php _e('Login Name') ?></label></div> 112 <div class="field-input"><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></div> 113 </div> 114 <div class="field-row"> 115 <div class="field-label"><label for="mailserver_pass"><?php _e('Password') ?></label></div> 116 <div class="field-input"> 117 117 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" /> 118 </ td>119 </ tr>120 < tr valign="top">121 < th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>122 < td>118 </div> 119 </div> 120 <div class="field-row"> 121 <div class="field-label"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></div> 122 <div class="field-input"> 123 123 <?php 124 124 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true)); 125 125 ?> 126 </ td>127 </ tr>126 </div> 127 </div> 128 128 <?php do_settings_fields('writing', 'post_via_email'); ?> 129 </ table>129 </div> 130 130 <?php } ?> 131 131 132 132 <h3><?php _e('Remote Publishing') ?></h3> 133 133 <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> 134 < table class="form-table">135 < tr valign="top">136 < th scope="row"><?php _e('Atom Publishing Protocol') ?></th>137 < td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend>134 <div class="form-fields"> 135 <div class="field-row"> 136 <div class="field-label"><?php _e('Atom Publishing Protocol') ?></div> 137 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend> 138 138 <label for="enable_app"> 139 139 <input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> /> 140 140 <?php _e('Enable the Atom Publishing Protocol.') ?></label><br /> 141 </fieldset></ td>142 </ tr>143 < tr valign="top">144 < th scope="row"><?php _e('XML-RPC') ?></th>145 < td><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend>141 </fieldset></div> 142 </div> 143 <div class="field-row"> 144 <div class="field-label"><?php _e('XML-RPC') ?></div> 145 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend> 146 146 <label for="enable_xmlrpc"> 147 147 <input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php checked('1', get_option('enable_xmlrpc')); ?> /> 148 148 <?php _e('Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.') ?></label><br /> 149 </fieldset></ td>150 </ tr>149 </fieldset></div> 150 </div> 151 151 <?php do_settings_fields('writing', 'remote_publishing'); ?> 152 </ table>152 </div> 153 153 154 154 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> 155 155 <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="field-row"> 183 <div class="field-label"><?php _e('Preview'); ?></div> 184 <div class="field-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="field-row"> 208 <div class="field-label"><?php _e('Remove Image'); ?></div> 209 <div class="field-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="field-row"> 221 <div class="field-label"><?php _e('Restore Original Image'); ?></div> 222 <div class="field-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="field-row"> 233 <div class="field-label"><?php _e('Upload Image'); ?></div> 234 <div class="field-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 </form> 241 </ td>242 </ tr>240 </div> 241 </div> 243 242 </tbody> 244 </ table>243 </div> 245 244 246 245 <h3><?php _e('Display Options') ?></h3> 247 246 <form method="post" action=""> 248 <table class="form-table"> 249 <tbody> 247 <div class="form-fields"> 250 248 <?php if ( get_background_image() ) : ?> 251 < tr valign="top">252 < th scope="row"><?php _e( 'Position' ); ?></th>253 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Position' ); ?></span></legend>249 <div class="field-row"> 250 <div class="field-label"><?php _e( 'Position' ); ?></div> 251 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Position' ); ?></span></legend> 254 252 <label> 255 253 <input name="background-position-x" type="radio" value="left"<?php checked('left', get_theme_mod('background_position_x', 'left')); ?> /> 256 254 <?php _e('Left') ?> … … 263 261 <input name="background-position-x" type="radio" value="right"<?php checked('right', get_theme_mod('background_position_x', 'left')); ?> /> 264 262 <?php _e('Right') ?> 265 263 </label> 266 </fieldset></ td>267 </ tr>264 </fieldset></div> 265 </div> 268 266 269 < tr valign="top">270 < th scope="row"><?php _e( 'Repeat' ); ?></th>271 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Repeat' ); ?></span></legend>267 <div class="field-row"> 268 <div class="field-label"><?php _e( 'Repeat' ); ?></div> 269 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Repeat' ); ?></span></legend> 272 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'); ?></label> 273 271 <label><input type="radio" name="background-repeat" value="repeat"<?php checked('repeat', get_theme_mod('background_repeat', 'repeat')); ?> /> <?php _e('Tile'); ?></label> 274 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'); ?></label> 275 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'); ?></label> 276 </fieldset></ td>277 </ tr>274 </fieldset></div> 275 </div> 278 276 279 < tr valign="top">280 < th scope="row"><?php _e( 'Attachment' ); ?></th>281 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Attachment' ); ?></span></legend>277 <div class="field-row"> 278 <div class="field-label"><?php _e( 'Attachment' ); ?></div> 279 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Attachment' ); ?></span></legend> 282 280 <label> 283 281 <input name="background-attachment" type="radio" value="scroll" <?php checked('scroll', get_theme_mod('background_attachment', 'scroll')); ?> /> 284 282 <?php _e('Scroll') ?> … … 287 285 <input name="background-attachment" type="radio" value="fixed" <?php checked('fixed', get_theme_mod('background_attachment', 'scroll')); ?> /> 288 286 <?php _e('Fixed') ?> 289 287 </label> 290 </fieldset></ td>291 </ tr>288 </fieldset></div> 289 </div> 292 290 <?php endif; // get_background_image() ?> 293 < tr valign="top">294 < th scope="row"><?php _e( 'Color' ); ?></th>295 < td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend>291 <div class="field-row"> 292 <div class="field-label"><?php _e( 'Color' ); ?></div> 293 <div class="field-input"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend> 296 294 <?php $show_clear = get_background_color() ? '' : ' style="display:none"'; ?> 297 295 <input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr(get_background_color()) ?>" /> 298 296 <a class="hide-if-no-js" href="#" id="pickcolor"><?php _e('Select a Color'); ?></a> <span<?php echo $show_clear; ?> class="hide-if-no-js" id="clearcolor"> (<a href="#"><?php _e( 'Clear' ); ?></a>)</span> 299 297 <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> 298 </fieldset></div> 299 </div> 300 </div> 304 301 305 302 <?php wp_nonce_field('custom-background'); ?> 306 303 <?php submit_button( null, 'primary', 'save-background-options' ); ?>