Changeset 7181

Show
Ignore:
Timestamp:
03/07/08 10:05:54 (9 months ago)
Author:
matt
Message:

A number of style tweaks; widen up a little; starting to add contextual help to various forms; catching up unloved forms with new UI guidelines.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/css/colors-fresh.css

    r7179 r7181  
    212212    background-color: #464646; 
    213213    color: #ccc; 
     214} 
     215 
     216.submitbox .submitdelete { 
     217    border-bottom-color: #999; 
     218} 
     219 
     220.submitbox .submitdelete:hover { 
     221    color: #fff; 
     222    background-color: #f00; 
     223    border-bottom-color: #f00; 
    214224} 
    215225 
     
    241251} 
    242252 
    243 .widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li, .submitbox .submit a:hover
     253.widefat td, .widefat th, div#available-widgets-filter, ul#widget-list li.widget-list-item, .commentlist li
    244254    border-bottom-color: #ccc; 
    245255} 
  • trunk/wp-admin/css/global.css

    r7178 r7181  
    8383} 
    8484 
    85 .wrap
     85.wrap, .updated, .error
    8686    margin: 0; 
    8787    margin-left: 15px; 
    8888    margin-right: 15px; 
    8989    padding: 0; 
    90     max-width: 960px; 
     90    max-width: 980px; 
     91
     92 
     93.updated, .error { 
     94    border-width: 1px; 
     95    border-style: solid; 
     96    padding: 0 15px; 
     97    max-width: 950px; 
     98    margin-bottom: 1em; 
     99
     100 
     101.wrap .updated, .wrap .error { 
     102    margin: auto 0 0; 
     103
     104 
     105.updated a, .error a { 
     106    text-decoration: underline; 
     107
     108 
     109.updated a { 
     110    text-decoration: none; 
     111    padding-bottom: 2px; 
    91112} 
    92113 
  • trunk/wp-admin/css/ie.css

    r7114 r7181  
    1515 
    1616* html #wpbody { 
    17     _width: expression(document.documentElement.clientWidth > 962 ? "960px" : "99.9%"); 
     17    _width: expression(document.documentElement.clientWidth > 962 ? "980px" : "99.9%"); 
    1818} 
    1919 
  • trunk/wp-admin/edit-category-form.php

    r7000 r7181  
    2727        <tr class="form-field form-required"> 
    2828            <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th> 
    29             <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" /></td> 
     29            <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" /><br /> 
     30            <?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td> 
    3031        </tr> 
    3132        <tr class="form-field"> 
    3233            <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th> 
    33             <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape($category->slug); ?>" size="40" /></td> 
     34            <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape($category->slug); ?>" size="40" /><br /> 
     35            <?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td> 
    3436        </tr> 
    3537        <tr class="form-field"> 
    3638            <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th> 
    3739            <td> 
    38                 <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->parent . '&hierarchical=1&show_option_none=' . __('None')); ?> 
     40                <?php wp_dropdown_categories('hide_empty=0&name=category_parent&orderby=name&selected=' . $category->parent . '&hierarchical=1&show_option_none=' . __('None')); ?><br /> 
     41                <?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.'); ?> 
    3942            </td> 
    4043        </tr> 
    4144        <tr class="form-field"> 
    42             <th scope="row" valign="top"><label for="category_description"><?php _e('Description (optional)') ?></label></th> 
    43             <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->description); ?></textarea></td> 
     45            <th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th> 
     46            <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->description); ?></textarea><br /> 
     47            <?php _e('The description is not prominent by default, however some themes may show it.'); ?></td> 
    4448        </tr> 
    4549    </table> 
  • trunk/wp-admin/edit-comments.php

    r7170 r7181  
    100100$stati = array('moderated' => sprintf(__('Awaiting Moderation (%s)'), "<span class='comment-count'>$num_comments->moderated</span>"), 'approved' => __('Approved')); 
    101101$class = ( '' === $comment_status ) ? ' class="current"' : ''; 
    102 $status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('All Comments')."</a>"; 
     102$status_links[] = "<li><a href=\"edit-comments.php\"$class>".__('Show All Comments')."</a>"; 
    103103foreach ( $stati as $status => $label ) { 
    104104    $class = ''; 
  • trunk/wp-admin/edit-form-advanced.php

    r7170 r7181  
    1919<h2><?php _e('Write Post') ?></h2> 
    2020<?php 
     21 
     22if ( !empty( $draft_div ) ) 
     23    echo $draft_div; 
    2124 
    2225if (!isset($post_ID) || 0 == $post_ID) { 
     
    147150 
    148151if ( ( 'edit' == $action) && current_user_can('delete_post', $post_ID) ) 
    149     echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;post') . "</a>"; 
     152    echo "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;post') . "</a>"; 
    150153?> 
    151154<br class="clear" /> 
    152155<?php if ($post_ID): ?> 
    153 <?php printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> 
     156<?php printf(__('Last edit: %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> 
    154157<br class="clear" /> 
    155158<?php endif; ?> 
  • trunk/wp-admin/edit-link-category-form.php

    r7000 r7181  
    3131        <tr class="form-field"> 
    3232            <th scope="row" valign="top"><label for="slug"><?php _e('Category slug') ?></label></th> 
    33             <td><input name="slug" id="slug" type="text" value="<?php echo $category->slug; ?>" size="40" /></td> 
     33            <td><input name="slug" id="slug" type="text" value="<?php echo $category->slug; ?>" size="40" /> 
     34            <?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td> 
    3435        </tr> 
    3536        <tr class="form-field"> 
  • trunk/wp-admin/edit-link-form.php

    r7104 r7181  
    7272<h3><?php _e('Name') ?></h3> 
    7373<div class="inside"> 
    74     <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /> 
     74    <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /><br /> 
     75    <?php _e('Example: Nifty blogging software'); ?> 
    7576</div> 
    7677</div> 
    7778 
    7879<div id="addressdiv" class="stuffbox"> 
    79 <h3><?php _e('Address') ?></h3> 
    80 <div class="inside"> 
    81     <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /> 
     80<h3><?php _e('Web Address') ?></h3> 
     81<div class="inside"> 
     82    <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /><br /> 
     83    <?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?> 
    8284</div> 
    8385</div> 
     
    8688<h3><?php _e('Description') ?></h3> 
    8789<div class="inside"> 
    88     <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /> 
     90    <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /><br /> 
     91    <?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?> 
    8992</div> 
    9093</div> 
     
    133136<label for="link_target_blank" class="selectit"> 
    134137<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo(($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> /> 
    135 <code>_blank</code></label> 
     138<code>_blank</code></label><br /> 
    136139<label for="link_target_top" class="selectit"> 
    137140<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo(($link->link_target == '_top') ? 'checked="checked"' : ''); ?> /> 
    138 <code>_top</code></label> 
     141<code>_top</code></label><br /> 
    139142<label for="link_target_none" class="selectit"> 
    140143<input id="link_target_none" type="radio" name="link_target" value="" <?php echo(($link->link_target == '') ? 'checked="checked"' : ''); ?> /> 
     
    259262<h3><?php _e('Advanced') ?></h3> 
    260263<div class="inside"> 
    261 <table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5"> 
    262     <tr
    263         <th style="width: 20%;" scope="row"><?php _e('Image Address:') ?></th> 
    264         <td style="width: 80%;"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td> 
    265     </tr> 
    266     <tr
    267         <th scope="row"><?php _e('RSS Address:') ?> </th> 
     264<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5"> 
     265    <tr class="form-field"
     266        <th valign="top"  scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th> 
     267        <td><input type="text" name="link_image" id="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td> 
     268    </tr> 
     269    <tr class="form-field"
     270        <th valign="top"  scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th> 
    268271        <td><input name="link_rss" type="text" id="rss_uri" value="<?php echo $link->link_rss; ?>" size="50" style="width: 95%" /></td> 
    269272    </tr> 
    270     <tr
    271         <th scope="row"><?php _e('Notes:') ?></th> 
    272         <td><textarea name="link_notes" cols="50" rows="10" style="width: 95%"><?php echo $link->link_notes; ?></textarea></td> 
    273     </tr> 
    274     <tr
    275         <th scope="row"><?php _e('Rating:') ?></th> 
    276         <td><select name="link_rating" size="1"> 
     273    <tr class="form-field"
     274        <th valign="top"  scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th> 
     275        <td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo $link->link_notes; ?></textarea></td> 
     276    </tr> 
     277    <tr class="form-field"
     278        <th valign="top"  scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th> 
     279        <td><select name="link_rating" id="link_rating" size="1"> 
    277280        <?php 
    278281            for ($r = 0; $r < 10; $r++) { 
  • trunk/wp-admin/edit-page-form.php

    r7169 r7181  
    129129<br class="clear" /> 
    130130<?php if ($post_ID): ?> 
    131 <?php printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> 
     131<?php printf(__('Last edit: %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); ?> 
    132132<br class="clear" /> 
    133133<?php endif; ?> 
  • trunk/wp-admin/post-new.php

    r6903 r7181  
    5757    ); 
    5858 
     59$draft_div = ''; 
    5960if ( !empty($my_drafts) || !empty($pending) || !empty($others_drafts) ) { 
    60     echo '<div class="wrap" id="draft-nag">'; 
     61    $draft_div = '<div class="wrap" id="draft-nag">'; 
    6162 
    6263    foreach ( $nag_posts as $nag ) { 
    6364        if ( ${$nag[0]} ) { 
    64             echo '<p><strong>' . wp_specialchars($nag[1]) . '</strong> '; 
     65            $draft_div .= '<p><strong>' . wp_specialchars($nag[1]) . '</strong> '; 
    6566            $i = 0; 
    6667            foreach ( ${$nag[0]} as $post ) { 
     
    6869                if ( $i > $nag_posts_limit ) 
    6970                    break; 
    70                 echo '<a href="post.php?action=edit&amp;post=' . $post->ID . '">'; 
    71                 ( '' == the_title('', '', FALSE) ) ? printf( __('Post #%s'), $post->ID ) : the_title(); 
    72                 echo '</a>'; 
     71                $draft_div .= '<a href="post.php?action=edit&amp;post=' . $post->ID . '">'; 
     72                $draft_div .= ( '' == the_title('', '', FALSE) ) ? sprintf( __('Post #%s'), $post->ID ) : get_the_title(); 
     73                $draft_div .= '</a>'; 
    7374                if ( $i < min($nag[3], $nag_posts_limit) ) 
    74                     echo ', '; 
     75                    $draft_div .= ', '; 
    7576            } 
    7677            if ( $nag[3] > $nag_posts_limit ) 
    77                 printf(__(', and <a href="%s">%d more</a>'), $nag[2], $nag[3] - $nag_posts_limit); 
    78             echo '.</p>'; 
     78                $draft_div .= sprintf(__(', and <a href="%s">%d more</a>'), $nag[2], $nag[3] - $nag_posts_limit); 
     79            $draft_div .= '.</p>'; 
    7980        } 
    8081    } 
    81     echo "</div>\n"; 
     82    $draft_div .= "</div>\n"; 
    8283} 
    8384 
  • trunk/wp-admin/wp-admin.css

    r7180 r7181  
    190190} 
    191191 
    192 .updated, .error { 
    193     margin: auto 25px 20px 15px; 
    194     padding: 0 15px; 
    195     border-width: 1px; 
    196     border-style: solid; 
    197 } 
    198  
    199 .wrap .updated, .wrap .error { 
    200     margin: auto 0 0; 
    201 } 
    202  
    203 .updated a, .error a { 
    204     text-decoration: underline; 
    205 } 
    206  
    207 .updated a { 
    208     text-decoration: none; 
    209     padding-bottom: 2px; 
    210 } 
    211  
    212192.narrow { 
    213193    width: 70%; 
     
    362342 
    363343#poststuff #post-body { 
    364     margin-right: 16em
     344    margin-right: 230px
    365345} 
    366346 
     
    886866    font-size: 14px; 
    887867    font-weight: bold; 
    888     padding: 8px 5px; 
     868    padding: 11px 5px; 
    889869    margin: 0 0 10px; 
    890870} 
     
    1003983 
    1004984.submitbox { 
    1005     width: 200px; 
     985    width: 220px; 
    1006986    float: right; 
     987} 
     988 
     989.submitbox .submitdelete { 
     990    border-bottom-width: 1px; 
     991    border-bottom-style: solid; 
     992    text-decoration: none; 
     993    margin-left: 8px; 
     994    padding-bottom: 1px; 
    1007995} 
    1008996 
     
    10221010.submitbox #previewview a { 
    10231011    padding: 6px; 
     1012    text-decoration: none; 
    10241013    font-weight: normal; 
    10251014    border-bottom: none;