WordPress.org

Make WordPress Core

Changeset 12781


Ignore:
Timestamp:
01/20/2010 10:35:21 PM (10 years ago)
Author:
ryan
Message:

Screen icons for site admin pages. Using temp icon until new ones are done. see #11644

Location:
trunk/wp-admin
Files:
7 edited

Legend:

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

    r12752 r12781  
    37483748        else
    37493749            $name = $screen->base;
    3750     }
     3750
     3751        // @todo Remove this once we have a site admin icon
     3752        if ( 'ms-admin' == $screen->parent_base )
     3753            $name = 'tools';
     3754    }
     3755
    37513756?>
    37523757    <div id="icon-<?php echo $name; ?>" class="icon32"><br /></div>
  • trunk/wp-admin/ms-admin.php

    r12760 r12781  
    3030
    3131<div class="wrap">
     32    <?php screen_icon(); ?>
    3233    <h2><?php echo esc_html( $title ); ?></h2>
    3334
  • trunk/wp-admin/ms-options.php

    r12752 r12781  
    2121
    2222<div class="wrap">
     23    <?php screen_icon(); ?>
    2324    <h2><?php _e('Site Options') ?></h2>
    2425    <form method="post" action="ms-edit.php?action=siteoptions">
  • trunk/wp-admin/ms-sites.php

    r12760 r12781  
    8080        ?>
    8181        <div class="wrap">
     82        <?php screen_icon(); ?>
    8283        <h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'>http://<?php echo $details['domain'].$details['path']; ?></a></h2>
    8384        <form method="post" action="ms-edit.php?action=updateblog">
     
    370371
    371372        <div class="wrap" style="position:relative;">
     373        <?php screen_icon(); ?>
    372374        <h2><?php _e('Blogs') ?></h2>
    373375
     
    580582        <div class="wrap">
    581583            <a name="form-add-blog"></a>
     584            <?php screen_icon(); ?>
    582585            <h2><?php _e('Add Blog') ?></h2>
    583586            <form method="post" action="ms-edit.php?action=addblog">
  • trunk/wp-admin/ms-themes.php

    r12769 r12781  
    2121<div class="wrap">
    2222    <form action='ms-edit.php?action=updatethemes' method='post'>
     23        <?php screen_icon(); ?>
    2324        <h2><?php _e('Site Themes') ?></h2>
    2425        <p><?php _e('Disable themes site-wide. You can enable themes on a site by site basis.') ?></p>
  • trunk/wp-admin/ms-upgrade-site.php

    r12752 r12781  
    1515
    1616echo '<div class="wrap">';
     17screen_icon();
    1718echo '<h2>'.__('Upgrade Site').'</h2>';
    1819switch( $_GET['action'] ) {
  • trunk/wp-admin/ms-users.php

    r12760 r12781  
    5555    }
    5656
    57     if ( !isset($_GET['sortby']) ) {
     57    if ( !isset($_GET['sortby']) )
    5858        $_GET['sortby'] = 'id';
    59     }
    60 
    61     if ( $_GET['sortby'] == 'email' ) {
     59
     60    if ( $_GET['sortby'] == 'email' )
    6261        $query .= ' ORDER BY user_email ';
    63     } elseif ( $_GET['sortby'] == 'id' ) {
     62    elseif ( $_GET['sortby'] == 'id' )
    6463        $query .= ' ORDER BY ID ';
    65     } elseif ( $_GET['sortby'] == 'login' ) {
     64    elseif ( $_GET['sortby'] == 'login' )
    6665        $query .= ' ORDER BY user_login ';
    67     } elseif ( $_GET['sortby'] == 'name' ) {
     66    elseif ( $_GET['sortby'] == 'name' )
    6867        $query .= ' ORDER BY display_name ';
    69     } elseif ( $_GET['sortby'] == 'registered' ) {
     68    elseif ( $_GET['sortby'] == 'registered' )
    7069        $query .= ' ORDER BY user_registered ';
    71     }
    7270
    7371    $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC';
    7472
    75     if ( !empty( $s )) {
     73    if ( !empty( $s ) )
    7674        $total = $wpdb->get_var( str_replace('SELECT *', 'SELECT COUNT(ID)', $query) );
    77     } else {
     75    else
    7876        $total = $wpdb->get_var( "SELECT COUNT(ID) FROM {$wpdb->users}");
    79     }
    8077
    8178    $query .= " LIMIT " . intval( ( $apage - 1 ) * $num) . ", " . intval( $num );
     
    10299    ?>
    103100    <div class="wrap">
    104     <h2><?php _e( $current_site->site_name ); ?> <?php _e("Users"); ?></h2>
     101    <?php screen_icon(); ?>
     102    <h2><?php esc_html_e("Users"); ?></h2>
    105103    <form action="ms-users.php" method="get" class="search-form">
    106104        <p class="search-box">
Note: See TracChangeset for help on using the changeset viewer.