Changeset 9345

Show
Ignore:
Timestamp:
10/25/08 20:55:40 (3 months ago)
Author:
azaozz
Message:

More styling for the Tags page, change the Options pages background color to light gray

Files:

Legend:

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

    r9281 r9345  
    415415        'what' => 'tag', 
    416416        'id' => $tag->term_id, 
     417        'position' => '-1', 
    417418        'data' => _tag_row( $tag ), 
    418419        'supplemental' => array('name' => $tag_full_name, 'show-link' => sprintf(__( 'Tag <a href="#%s">%s</a> added' ), "tag-$tag->term_id", $tag_full_name)) 
  • trunk/wp-admin/css/colors-fresh.css

    r9339 r9345  
    6666 
    6767li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, 
    68 .form-table tr, #poststuff h3, .metabox-holder h3, #replyhandle, 
     68 #poststuff h3, .metabox-holder h3, #replyhandle, 
    6969.login form, h3.info-box-title, #post-status-info, #screen-options-wrap, 
    7070#wpbody-content .describe tr, #edithead, #replyhead  { 
    7171    background-color: #eaf3fa; 
     72} 
     73 
     74.form-table tr, 
     75.form-wrap .form-field { 
     76    background-color: #f1f1f1; 
    7277} 
    7378 
     
    152157} 
    153158 
    154 .form-table input, .form-table textarea, .search-input { 
    155     border-color: #c6d9e9; 
     159.form-table input, 
     160.form-table textarea, 
     161.search-input, 
     162.form-field input, 
     163.form-field textarea, 
     164.submit, 
     165.submit-top { 
     166    border-color: #DFDFDF; 
    156167} 
    157168 
     
    770781} 
    771782 
    772 .form-wrap .form-field { 
    773     background-color: #f5f5f5; 
    774 } 
    775  
    776783/* Diff */ 
    777784 
  • trunk/wp-admin/edit-tags.php

    r9341 r9345  
    114114} 
    115115 
     116$can_manage = current_user_can('manage_categories'); 
     117 
    116118wp_enqueue_script( 'admin-tags' ); 
    117119wp_enqueue_script('admin-forms'); 
    118 if ( current_user_can('manage_categories')
     120if ( $can_manage
    119121    wp_enqueue_script('inline-edit-tax'); 
    120122 
     
    242244<div id="col-left"> 
    243245<div class="col-wrap"> 
    244 <?php if ( current_user_can('manage_categories') ) { 
     246 
     247<div class="tagcloud"> 
     248<h3><?php _e('Popular Tags'); ?></h3> 
     249<?php  
     250if ( $can_manage ) 
     251    wp_tag_cloud(array('link' => 'edit'));  
     252else 
     253    wp_tag_cloud();  
     254?> 
     255</div> 
     256 
     257<?php if ( $can_manage ) { 
    245258    do_action('add_tag_form_pre', $tag); ?> 
    246259 
     260<div class="form-wrap"> 
    247261<h3><?php _e('Add a New Tag'); ?></h3> 
    248262<div id="ajax-response"></div> 
     
    252266<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?> 
    253267 
    254 <div class="form-wrap"> 
    255268<div class="form-field form-required"> 
    256269    <label for="name"><?php _e('Tag name') ?></label> 
     
    263276    <input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" /> 
    264277    <p><?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.'); ?></p> 
    265 </div></div> 
     278</div> 
    266279 
    267280<p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Add Tag'); ?>" /></p> 
    268 <?php 
    269 do_action('edit_tag_form', $tag); 
    270  
    271 } ?> 
    272 </form> 
    273  
    274 <div class="tagcloud"> 
    275 <h3><?php _e('Popular Tags'); ?></h3> 
    276 <?php wp_tag_cloud(array('link' => 'edit')); ?> 
    277 </div> 
     281<?php do_action('edit_tag_form', $tag); ?> 
     282</form></div> 
     283<?php } ?> 
    278284 
    279285</div> 
  • trunk/wp-admin/wp-admin.css

    r9343 r9345  
    189189 
    190190.submit { 
    191     border-top: 1px solid #ccc; 
     191    border-top-style: solid; 
     192    border-top-width: 1px; 
    192193    padding: 1.5em 0; 
    193194    margin: 5px 0; 
     
    202203 
    203204.submit-top { 
    204     border-top: 0; 
    205     border-bottom: 1px solid #ccc; 
     205    border-top: 0 none; 
     206    border-bottom-style: solid; 
     207    border-bottom-width: 1px; 
    206208} 
    207209 
     
    11851187/* divs for cats and tags pages */ 
    11861188 
    1187 .col-wrap h3 { 
    1188     margin: 12px 0; 
    1189 } 
    1190  
    11911189.form-wrap { 
    1192     margin: 8px 0 -8px; 
     1190    margin: 10px 0; 
     1191    width: 90%; 
     1192
     1193 
     1194.form-wrap p, 
     1195.form-wrap label { 
    11931196    font-size: 11px; 
    1194     width: 90%; 
    11951197} 
    11961198 
     
    12011203} 
    12021204 
    1203 .form-wrap input { 
     1205.form-field input { 
     1206    border-style: solid; 
     1207    border-width: 1px; 
    12041208    width: 95%; 
    12051209} 
     
    12151219} 
    12161220 
     1221.col-wrap h3 { 
     1222    margin: 12px 0; 
     1223    font-size: 1.1em; 
     1224} 
     1225 
    12171226.col-wrap p.submit { 
    1218     width: 90%
     1227    margin-top: -10px
    12191228} 
    12201229 
    12211230.tagcloud { 
    12221231    width: 90%; 
    1223     margin: 20px 5px 5px; 
     1232    margin: 10px 0 40px; 
     1233
     1234 
     1235#col-left .col-wrap { 
     1236    margin-left: 12px; 
    12241237} 
    12251238