Make WordPress Core


Ignore:
Timestamp:
12/01/2011 02:53:44 AM (14 years ago)
Author:
koopersmith
Message:

Update icons in toolbar: WP logo, comments, update, add new. props empireoflight, JohnONolan, fixes #19404.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r19500 r19516  
    7575    $wp_admin_bar->add_menu( array(
    7676        'id'    => 'wp-logo',
    77         'title' => '<div class="ab-icon"></div>',
     77        'title' => '<span class="ab-icon"></span>',
    7878        'href'  => admin_url( 'about.php' ),
    7979    ) );
     
    487487        return;
    488488
     489    $title = '<span class="ab-icon"></span><span class="ab-label">' . _x( 'New', 'admin bar menu group label' ) . '</span>';
     490
    489491    $wp_admin_bar->add_menu( array(
    490492        'id'    => 'new-content',
    491         'title' => _x( 'Add New', 'admin bar menu group label' ),
     493        'title' => $title,
    492494        'href'  => admin_url( current( array_keys( $actions ) ) ),
     495        'meta'  => array(
     496            'title' => _x( 'Add New', 'admin bar menu group label' ),
     497        ),
    493498    ) );
    494499
     
    519524    $awaiting_title = esc_attr( sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ) );
    520525
    521     $icon  = '<div class="ab-icon">';
    522     $icon .= '<div class="ab-comments-icon-body"></div>';
    523     $icon .= '<div class="ab-comments-icon-arrow"></div>';
    524     $icon .= '</div>';
    525 
    526     $title = '<span id="ab-awaiting-mod" class="awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
     526    $icon  = '<span class="ab-icon"></span>';
     527    $title = '<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
    527528
    528529    $wp_admin_bar->add_menu( array(
     
    573574        return;
    574575
    575     $update_title = "<span title='{$update_data['title']}'>";
    576     $update_title .= sprintf( __('Updates %s'), "<span id='ab-updates' class='update-count'>" . number_format_i18n($update_data['counts']['total']) . '</span>' );
    577     $update_title .= '</span>';
    578 
    579     $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => network_admin_url( 'update-core.php' ) ) );
     576    $title = '<span class="ab-icon"></span><span class="ab-label">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>';
     577
     578    $wp_admin_bar->add_menu( array(
     579        'id'    => 'updates',
     580        'title' => $title,
     581        'href'  => network_admin_url( 'update-core.php' ),
     582        'meta'  => array(
     583            'title' => $update_data['title'],
     584        ),
     585    ) );
    580586}
    581587
Note: See TracChangeset for help on using the changeset viewer.