WordPress.org

Make WordPress Core

Changeset 6638


Ignore:
Timestamp:
01/21/2008 10:13:07 PM (14 years ago)
Author:
matt
Message:

Try a different comment bubble, fixes #5694. Hat tip: sambauers.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r6558 r6638  
    1717
    1818$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
    19 if ( 100 < $awaiting_mod )
    20     $awaiting_mod = '99+'; // to not blow out layout
    2119$menu[15] = array(__('Design'), 'switch_themes', 'themes.php');
    22 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='comment-count'>$awaiting_mod</span>" ), 'edit_posts', 'edit-comments.php');
     20$menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='comment-count'><span>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php');
    2321$menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
    2422if ( current_user_can('edit_users') )
  • trunk/wp-admin/wp-admin.css

    r6633 r6638  
    937937}
    938938
    939 #adminmenu #awaiting-mod {
     939#adminmenu li a #awaiting-mod {
     940    position: absolute;
     941    margin-left: -1.2em;
     942    margin-top: -0.2em;
     943    font-size: 0.7em;
     944    background-image: url(images/comment-stalk.gif);
     945    background-repeat: no-repeat;
     946    background-position: 0 bottom;
     947    height: 0.9em;
     948    width: 1em;
     949}
     950
     951#adminmenu li a:hover #awaiting-mod {
     952    background-position: -80px bottom;
     953}
     954
     955#adminmenu li a #awaiting-mod span {
    940956    color: #fff;
    941     font-size: 10px;
    942     width: 23px;
     957    top: -0.8em;
     958    right: 0;
    943959    position: absolute;
    944     margin-left: -15px;
    945     margin-top: -13px;
    946     background-image: url(images/comment-pill.gif);
    947     background-position: 0 10px;
    948     background-repeat: no-repeat;
     960    display: block;
     961    height: 1.3em;
     962    line-height: 1.3em;
     963    padding: 0 0.8em;
     964    background-color: #d54e21;
     965    -moz-border-radius: 0.3em;
     966    -khtml-border-radius: 0.3em;
     967    border-radius: 0.3em;
     968}
     969
     970#adminmenu li a:hover #awaiting-mod span {
     971    background-color: #264761;
    949972}
    950973
     
    13461369
    13471370
     1371
Note: See TracChangeset for help on using the changeset viewer.