Changeset 1264

Show
Ignore:
Timestamp:
04/24/08 15:05:09 (2 months ago)
Author:
donncha
Message:

Restyling, fixes #590, props momo360modena

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/mu.php

    r1262 r1264  
    274274         
    275275        ?> 
    276         <strong><?php _e('Blog Upload Space Quota'); ?></strong> 
    277         <input type="text" size="3" name="option[blog_upload_space]" value="<?php echo $quota; ?>" /><?php _e('MB (Leave blank for site default)'); ?><br /> 
     276        <tr> 
     277                <th><?php _e('Blog Upload Space Quota'); ?></th> 
     278                <td><input type="text" size="3" name="option[blog_upload_space]" value="<?php echo $quota; ?>" /><?php _e('MB (Leave blank for site default)'); ?></td> 
     279        </tr> 
    278280        <?php 
    279281} 
     
    524526                // Use siteurl for this in case of mapping 
    525527                $parsed = parse_url( $blog->siteurl ); 
    526                 $domain = $parsed['host']; 
    527528 
    528529                if ( $current_blog->blog_id == $blog->userblog_id ) { 
  • trunk/wp-admin/wpmu-blogs.php

    r1261 r1264  
    7474                ?> 
    7575                <div class="wrap"> 
    76                 <h2><?php _e('Edit Blog'); ?></h2> 
    77                 <a href='http://<?php echo $details['domain'].$details['path']; ?>'><?php echo $details['domain'].$details['path']; ?></a> 
     76                <h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'><?php echo $details['domain'].$details['path']; ?></a></h2>          
    7877                <form method="post" action="wpmu-edit.php?action=updateblog">  
    7978                        <?php wp_nonce_field('editblog'); ?> 
     
    8382                                <td valign="top"> 
    8483                                        <div class="wrap"> 
    85                                                 <table style="border:0; width:100%;" cellspacing="2" cellpadding="5" class="editform">  
    86                                                         <tr valign="top">  
     84                                                <h3><?php _e('Blog info (wp_blogs)'); ?></h3> 
     85                                                <table class="form-table"> 
     86                                                        <tr class="form-field form-required"> 
    8787                                                                <th scope="row"><?php _e('Domain') ?></th>  
    8888                                                                <td>http://<input name="blog[domain]" type="text" id="domain" value="<?php echo $details['domain'] ?>" size="33" /></td> 
    8989                                                        </tr>  
    90                                                         <tr valign="top">  
     90                                                        <tr class="form-field form-required"> 
    9191                                                                <th scope="row"><?php _e('Path') ?></th>  
    9292                                                                <td><input name="blog[path]" type="text" id="path" value="<?php echo $details['path'] ?>" size="40" /> 
    9393                                                                <br />(<?php _e( 'siteurl and home will be modified too' ); ?>)</td>  
    9494                                                        </tr>  
    95                                                         <tr valign="top">  
     95                                                        <tr class="form-field"> 
    9696                                                                <th scope="row"><?php _e('Registered') ?></th>  
    9797                                                                <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo $details['registered'] ?>" size="40" /></td>  
    9898                                                        </tr>  
    99                                                         <tr valign="top">  
     99                                                        <tr class="form-field"> 
    100100                                                                <th scope="row"><?php _e('Last Updated') ?></th>  
    101101                                                                <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo $details['last_updated'] ?>" size="40" /></td>  
    102102                                                        </tr>  
    103                                                         <tr valign="top">  
     103                                                        <tr class="form-field"> 
    104104                                                                <th scope="row"><?php _e('Public') ?></th>  
    105105                                                                <td> 
     
    108108                                                                </td>  
    109109                                                        </tr>  
    110                                                         <tr valign="top">  
     110                                                        <tr class="form-field"> 
    111111                                                                <th scope="row"><?php _e( 'Archived' ); ?></th>  
    112112                                                                <td> 
     
    115115                                                                </td>  
    116116                                                        </tr>  
    117                                                         <tr valign="top">  
     117                                                        <tr class="form-field"> 
    118118                                                                <th scope="row"><?php _e( 'Mature' ); ?></th>  
    119119                                                                <td> 
     
    122122                                                                </td>  
    123123                                                        </tr>  
    124                                                         <tr valign="top">  
     124                                                        <tr class="form-field"> 
    125125                                                                <th scope="row"><?php _e( 'Spam' ); ?></th>  
    126126                                                                <td> 
     
    129129                                                                </td>  
    130130                                                        </tr>  
    131                                                         <tr valign="top">  
     131                                                        <tr class="form-field"> 
    132132                                                                <th scope="row"><?php _e( 'Deleted' ); ?></th>  
    133133                                                                <td> 
     
    136136                                                                </td>  
    137137                                                        </tr>  
    138                                                         <tr> 
    139                                                                 <td colspan="2"><br /><br /></td> 
    140                                                         </tr> 
     138                                                </table> 
     139                                                 
     140                                                <h3><?php printf( __('Blog options (wp_%s_options)'), $id ); ?></h3> 
     141                                                <table class="form-table"> 
    141142                                                        <?php 
    142143                                                        $editblog_default_role = 'subscriber'; 
     
    156157                                                                if ( stristr($val['option_value'], "\r") || stristr($val['option_value'], "\n") || stristr($val['option_value'], "\r\n") ) { 
    157158                                                                ?> 
    158                                                                         <tr valign="top">  
     159                                                                        <tr class="form-field"> 
    159160                                                                                <th scope="row"><?php echo ucwords( str_replace( "_", " ", $val['option_name'] ) ) ?></th>  
    160161                                                                                <td><textarea rows="5" cols="40" name="option[<?php echo $val['option_name'] ?>]" type="text" id="<?php echo $val['option_name'] ?>"<?php echo $disabled ?>><?php echo wp_specialchars( stripslashes( $val['option_value'] ), 1 ) ?></textarea></td> 
     
    163164                                                                } else { 
    164165                                                                ?> 
    165                                                                         <tr valign="top">  
     166                                                                        <tr class="form-field"> 
    166167                                                                                <th scope="row"><?php echo ucwords( str_replace( "_", " ", $val['option_name'] ) ) ?></th>  
    167168                                                                                <td><input name="option[<?php echo $val['option_name'] ?>]" type="text" id="<?php echo $val['option_name'] ?>" value="<?php echo wp_specialchars( stripslashes( $val['option_value'] ), 1 ) ?>" size="40" <?php echo $disabled ?> /></td>  
     
    173174                                                </table> 
    174175                                                <p class="submit"> 
    175                                                 <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
     176                                                       <input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p> 
    176177                                        </div> 
    177178                                </td> 
     
    190191                                                if( isset($allowed_themes[$theme_key] ) == false ) { 
    191192                                                        $checked = ( isset($blog_allowed_themes[ $theme_key ]) ) ? 'checked="checked"' : '';                                                     
    192                                                         $out .= '<tr valign="top">  
     193                                                        $out .= '<tr class="form-field form-required">  
    193194                                                                        <th title="'.htmlspecialchars( $theme["Description"] ).'" scope="row">'.$key.'</th>  
    194195                                                                        <td><input name="theme['.$theme_key.']" type="checkbox" value="on" '.$checked.'/></td>  
     
    197198                                        } 
    198199                                         
     200                                                         
    199201                                        if( $out != '' ) { 
    200                                                 echo "<div class='wrap'><h3>" . __('Blog Themes') . "</h3>"; 
    201                                                 echo '<table width="100%" border="0" cellspacing="2" cellpadding="5" class="editform">'; 
    202                                                 echo '<tr><th>' . __('Theme') . '</th><th>' . __('Enable') . '</th></tr>'; 
    203                                                 echo $out; 
    204                                                 echo "</table></div>"; 
     202                                                echo "<h3>" . __('Blog Themes') . "</h3>"; 
     203                                                echo '<table class="form-table">';                                              
     204                                                       echo '<tr class=""><th>' . __('Theme') . '</th><th>' . __('Enable') . '</th></tr>'; 
     205                                                       echo $out; 
     206                                                echo "</table>"; 
    205207                                        } 
    206208                                         
    207209                                        // Blog users 
    208210                                        $blogusers = get_users_of_blog( $id ); 
    209                                         echo '<div class="wrap"><h3>' . __('Blog Users') . '</h3>'; 
     211                                        echo '<h3>' . __('Blog Users') . '</h3>'; 
    210212                                        if( is_array( $blogusers ) ) { 
    211                                                 echo '<table width="100%"><caption>' . __('Current Users') . '</caption>'; 
    212                                                 echo "<tr><th>" . __('User') . "</th><th>" . __('Role') . "</th><th>" . __('Password') . "</th><th>" . __('Remove') . "</th><th></th></tr>"; 
     213                                                echo '<table class="form-table">'; 
     214                                                echo "<tr><th>" . __('User') . "</th><th>" . __('Role') . "</th><th>" . __('Password') . "</th><th>" . __('Remove') . "</th></tr>"; 
    213215                                                reset($blogusers); 
    214216                                                foreach ( (array) $blogusers as $key => $val ) { 
     
    218220                                                                $existing_role = key( $t ); 
    219221                                                        } 
    220                                                         echo "<tr><td>" . $val->user_login . "</td>"
     222                                                        echo '<tr><td><a href="user-edit.php?user_id=' . $val->user_id . '">' . $val->user_login . '</a></td>'
    221223                                                        if( $val->user_id != $current_user->data->ID ) { 
    222224                                                                ?> 
     
    224226                                                                        <select name="role[<?php echo $val->user_id ?>]" id="new_role"><?php  
    225227                                                                                foreach( $editblog_roles as $role => $role_assoc ){ 
     228                                                                                        $name = translate_with_context($role_assoc['name']); 
    226229                                                                                        $selected = ( $role == $existing_role ) ? 'selected="selected"' : ''; 
    227                                                                                         echo "<option {$selected} value=\"{$role}\">{$role_assoc['name']}</option>"; 
     230                                                                                        echo "<option {$selected} value=\"{$role}\">{$name}</option>"; 
    228231                                                                                } 
    229232                                                                                ?> 
     
    238241                                                                echo "<td><strong>" . __ ('N/A') . "</strong></td><td><strong>" . __ ('N/A') . "</strong></td><td><strong>" . __('N/A') . "</strong></td>"; 
    239242                                                        } 
    240                                                         echo '<td><a href="user-edit.php?user_id=' . $val->user_id . '">' . __('Edit') . "</a></td></tr>"
     243                                                        echo '</tr>'
    241244                                                } 
    242245                                                echo "</table>"; 
     
    244247                                         
    245248                                        // New blog user 
    246                                         echo "<h3>" . __('Add a new user') . "</h3>"; 
    247                                         ?> 
     249                                        echo "<h3>" . __('Add a new user') . "</h3>"; ?> 
    248250                                        <p><?php _e('As you type WordPress will offer you a choice of usernames.<br /> Click them to select and hit <em>Update Options</em> to add the user.') ?></p> 
    249                                         <table
     251                                        <table class="form-table"
    250252                                                <tr> 
    251253                                                        <th scope="row"><?php _e('User&nbsp;Login:') ?></th> 
     
    259261                                                                reset( $editblog_roles ); 
    260262                                                                foreach( $editblog_roles as $role => $role_assoc ){ 
     263                                                                        $name = translate_with_context($role_assoc['name']); 
    261264                                                                        $selected = ( $role == $editblog_default_role ) ? 'selected="selected"' : ''; 
    262                                                                         echo "<option {$selected} value=\"{$role}\">{$role_assoc['name']}</option>"; 
     265                                                                        echo "<option {$selected} value=\"{$role}\">{$name}</option>"; 
    263266                                                                } 
    264267                                                                ?> 
     
    267270                                                </tr> 
    268271                                        </table> 
    269                                         </div> 
    270                                          
    271                                         <div class="wrap"> 
    272                                                 <strong><?php _e('Misc Blog Actions') ?></strong> 
    273                                                 <p><?php do_action( 'wpmueditblogaction', $id ); ?></p> 
    274                                         </div> 
     272                                         
     273                                        <h3><?php _e('Misc Blog Actions') ?></h3> 
     274                                        <table class="form-table"> 
     275                                                <?php do_action( 'wpmueditblogaction', $id ); ?> 
     276                                        </table> 
    275277                                         
    276278                                        <p class="submit"> 
     
    423425                        <?php 
    424426                        if ($blog_list) { 
    425                                 $bgcolor = ''; 
     427                                $bgcolor = $class = ''; 
    426428                                $status_list = array( "archived" => "#fee", "spam" => "#faa", "deleted" => "#f55" ); 
    427429                                foreach ($blog_list as $blog) {