WordPress.org

Make WordPress Core

Changeset 9903


Ignore:
Timestamp:
11/26/2008 01:51:25 PM (12 years ago)
Author:
azaozz
Message:

Screen icons

Location:
trunk/wp-admin
Files:
1 added
52 edited

Legend:

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

    r9847 r9903  
    113113
    114114screen_meta($hook_suffix);
    115 unset($hook_suffix);
     115//unset($hook_suffix);
    116116
    117117if ( $parent_file == 'options-general.php' ) {
  • trunk/wp-admin/categories.php

    r9779 r9903  
    131131
    132132<div class="wrap nosubsub">
     133<?php screen_icon(); ?>
    133134<h2><?php echo wp_specialchars( $title ); ?></h2>
    134135
  • trunk/wp-admin/css/colors-fresh.css

    r9894 r9903  
    15211521    text-shadow: rgba(255,255,255,0.7) 0 1px 0;
    15221522}
     1523
     1524#icon-edit,
     1525#icon-post {
     1526    background: transparent url(../images/icons32.png) no-repeat -552px -5px;
     1527}
     1528
     1529#icon-index {
     1530    background: transparent url(../images/icons32.png) no-repeat -137px -5px;
     1531}
     1532
     1533#icon-upload {
     1534    background: transparent url(../images/icons32.png) no-repeat -251px -5px;
     1535}
     1536
     1537#icon-link-manager,
     1538#icon-link {
     1539    background: transparent url(../images/icons32.png) no-repeat -190px -5px;
     1540}
     1541
     1542#icon-edit-pages,
     1543#icon-page {
     1544    background: transparent url(../images/icons32.png) no-repeat -312px -5px;
     1545}
     1546
     1547#icon-edit-comments {
     1548    background: transparent url(../images/icons32.png) no-repeat -72px -5px;
     1549}
     1550
     1551#icon-themes {
     1552    background: transparent url(../images/icons32.png) no-repeat -11px -5px;
     1553}
     1554
     1555#icon-plugins {
     1556    background: transparent url(../images/icons32.png) no-repeat -370px -5px;
     1557}
     1558
     1559#icon-users
     1560#icon-user-edit {
     1561    background: transparent url(../images/icons32.png) no-repeat -600px -5px;
     1562}
     1563
     1564#icon-import,
     1565#icon-admin {
     1566    background: transparent url(../images/icons32.png) no-repeat -432px -5px;
     1567}
     1568
     1569#icon-options-general {
     1570    background: transparent url(../images/icons32.png) no-repeat -492px -5px;
     1571}
  • trunk/wp-admin/edit-comments.php

    r9807 r9903  
    8686
    8787<div class="wrap">
     88<?php screen_icon(); ?>
    8889<h2><?php echo wp_specialchars( $title ); ?></h2>
    8990
  • trunk/wp-admin/edit-form-advanced.php

    r9879 r9903  
    508508
    509509<div class="wrap">
     510<?php screen_icon(); ?>
    510511<h2><?php echo wp_specialchars( $title ); ?></h2>
    511512<?php if ( $notice ) : ?>
  • trunk/wp-admin/edit-link-categories.php

    r9757 r9903  
    6161
    6262<div class="wrap nosubsub">
     63<?php screen_icon(); ?>
    6364<h2><?php echo wp_specialchars( $title ); ?></h2>
    6465
  • trunk/wp-admin/edit-link-form.php

    r9716 r9903  
    342342
    343343<div class="wrap">
     344<?php screen_icon(); ?>
    344345<h2><?php echo wp_specialchars( $title ); ?></h2>
    345346
  • trunk/wp-admin/edit-page-form.php

    r9806 r9903  
    392392
    393393<div class="wrap">
     394<?php screen_icon(); ?>
    394395<h2><?php echo wp_specialchars( $title ); ?></h2>
    395396
  • trunk/wp-admin/edit-pages.php

    r9895 r9903  
    100100
    101101<div class="wrap">
     102<?php screen_icon(); ?>
    102103<h2><?php echo wp_specialchars( $title ); ?></h2>
    103104
  • trunk/wp-admin/edit-tags.php

    r9848 r9903  
    130130
    131131<div class="wrap nosubsub">
     132<?php screen_icon(); ?>
    132133<h2><?php echo wp_specialchars( $title ); ?></h2>
    133134
  • trunk/wp-admin/edit.php

    r9891 r9903  
    9292
    9393<div class="wrap">
     94<?php screen_icon(); ?>
    9495<h2><?php echo wp_specialchars( $title ); ?></h2>
    9596
  • trunk/wp-admin/export.php

    r9369 r9903  
    2424
    2525<div class="wrap">
     26<?php screen_icon(); ?>
    2627<h2><?php echo wp_specialchars( $title ); ?></h2>
    2728
  • trunk/wp-admin/import.php

    r9733 r9903  
    1414
    1515<div class="wrap">
     16<?php screen_icon(); ?>
    1617<h2><?php echo wp_specialchars( $title ); ?></h2>
    1718<p><?php _e('If you have posts or comments in another system, WordPress can import those into this blog. To get started, choose a system to import from below:'); ?></p>
  • trunk/wp-admin/import/blogger.php

    r9716 r9903  
    5555
    5656        echo "
    57         <div class='wrap'><h2>$title</h2><p>$welcome</p><p>$prereqs</p><p>$stepone</p>
     57        <div class='wrap'>
     58        ".screen_icon()."
     59        <h2>$title</h2>
     60        <p>$welcome</p><p>$prereqs</p><p>$stepone</p>
    5861            <form action='$auth_url' method='get'>
    5962                <p class='submit' style='text-align:left;'>
     
    6972
    7073    function uh_oh($title, $message, $info) {
    71         echo "<div class='wrap'><h2>$title</h2><p>$message</p><pre>$info</pre></div>";
     74        echo "<div class='wrap'>";
     75        screen_icon();
     76        echo "<h2>$title</h2><p>$message</p><pre>$info</pre></div>";
    7277    }
    7378
  • trunk/wp-admin/import/blogware.php

    r8645 r9903  
    2222    function header() {
    2323        echo '<div class="wrap">';
     24        screen_icon();
    2425        echo '<h2>'.__('Import Blogware').'</h2>';
    2526    }
  • trunk/wp-admin/import/btt.php

    r9369 r9903  
    1919    function header() {
    2020        echo '<div class="wrap">';
     21        screen_icon();
    2122        echo '<h2>'.__('Import Bunny&#8217;s Technorati Tags').'</h2>';
    2223        echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'<br /><br /></p>';
  • trunk/wp-admin/import/dotclear.php

    r9369 r9903  
    199199    {
    200200        echo '<div class="wrap">';
     201        screen_icon();
    201202        echo '<h2>'.__('Import DotClear').'</h2>';
    202203        echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'</p>';
  • trunk/wp-admin/import/greymatter.php

    r9369 r9903  
    2121    function header() {
    2222        echo '<div class="wrap">';
     23        screen_icon();
    2324        echo '<h2>'.__('Import GreyMatter').'</h2>';
    2425    }
  • trunk/wp-admin/import/jkw.php

    r9369 r9903  
    1818    function header() {
    1919        echo '<div class="wrap">';
     20        screen_icon();
    2021        echo '<h2>'.__('Import Jerome&#8217;s Keywords').'</h2>';
    2122        echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'<br /><br /></p>';
  • trunk/wp-admin/import/livejournal.php

    r8645 r9903  
    2020    function header() {
    2121        echo '<div class="wrap">';
     22        screen_icon();
    2223        echo '<h2>'.__('Import LiveJournal').'</h2>';
    2324    }
  • trunk/wp-admin/import/mt.php

    r9716 r9903  
    2525    function header() {
    2626        echo '<div class="wrap">';
     27        screen_icon();
    2728        echo '<h2>'.__('Import Movable Type or TypePad').'</h2>';
    2829    }
     
    192193?>
    193194<div class="wrap">
     195<?php screen_icon(); ?>
    194196<h2><?php _e('Assign Authors'); ?></h2>
    195197<p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as admin\'s entries.'); ?></p>
  • trunk/wp-admin/import/rss.php

    r8645 r9903  
    2323    function header() {
    2424        echo '<div class="wrap">';
     25        screen_icon();
    2526        echo '<h2>'.__('Import RSS').'</h2>';
    2627    }
  • trunk/wp-admin/import/stp.php

    r9369 r9903  
    1717    function header()  {
    1818        echo '<div class="wrap">';
     19        screen_icon();
    1920        echo '<h2>'.__('Import Simple Tagging').'</h2>';
    2021        echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'<br /><br /></p>';
  • trunk/wp-admin/import/textpattern.php

    r9369 r9903  
    5353    {
    5454        echo '<div class="wrap">';
     55        screen_icon();
    5556        echo '<h2>'.__('Import Textpattern').'</h2>';
    5657        echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'</p>';
  • trunk/wp-admin/import/utw.php

    r9369 r9903  
    1818    function header()  {
    1919        echo '<div class="wrap">';
     20        screen_icon();
    2021        echo '<h2>'.__('Import Ultimate Tag Warrior').'</h2>';
    2122        echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'<br /><br /></p>';
  • trunk/wp-admin/import/wordpress.php

    r9372 r9903  
    3535    function header() {
    3636        echo '<div class="wrap">';
     37        screen_icon();
    3738        echo '<h2>'.__('Import WordPress').'</h2>';
    3839    }
     
    198199    function wp_authors_form() {
    199200?>
     201<?php screen_icon(); ?>
    200202<h2><?php _e('Assign Authors'); ?></h2>
    201203<p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as <code>admin</code>s entries.'); ?></p>
     
    221223?>
    222224</ol>
     225<?php screen_icon(); ?>
    223226<h2><?php _e('Import Attachments'); ?></h2>
    224227<p>
  • trunk/wp-admin/import/wp-cat2tag.php

    r8645 r9903  
    6565
    6666        if ( $cat_num > 0 ) {
     67            screen_icon();
    6768            echo '<h2>' . sprintf( __ngettext( 'Convert Category to Tag.', 'Convert Categories (%d) to Tags.', $cat_num ), $cat_num ) . '</h2>';
    6869            echo '<div class="narrow">';
     
    140141
    141142        if ( $tags_num > 0 ) {
     143            screen_icon();
    142144            echo '<h2>' . sprintf( __ngettext( 'Convert Tag to Category.', 'Convert Tags (%d) to Categories.', $tags_num ), $tags_num ) . '</h2>';
    143145            echo '<div class="narrow">';
  • trunk/wp-admin/includes/template.php

    r9884 r9903  
    33283328}
    33293329
     3330function screen_icon() {
     3331    global $parent_file, $hook_suffix;
     3332
     3333    if ( isset($parent_file) && !empty($parent_file) )
     3334        $name = substr($parent_file, 0, -4);
     3335    else
     3336        $name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
     3337
     3338    unset($hook_suffix);
    33303339?>
     3340    <div id="icon-<?php echo $name; ?>" class="icon32"><br /></div>
     3341<?php
     3342}
     3343
     3344?>
  • trunk/wp-admin/index.php

    r9620 r9903  
    3030
    3131<div class="wrap">
     32<?php screen_icon(); ?>
    3233<h2><?php echo wp_specialchars( $title ); ?></h2>
    3334
  • trunk/wp-admin/link-manager.php

    r9871 r9903  
    7171
    7272<div class="wrap nosubsub">
     73<?php screen_icon(); ?>
    7374<h2><?php echo wp_specialchars( $title ); ?></h2>
    7475
  • trunk/wp-admin/media-upload.php

    r9894 r9903  
    5757    require_once('admin-header.php'); ?>
    5858    <div class="wrap">
     59    <?php screen_icon(); ?>
    5960    <h2><?php echo wp_specialchars( $title ); ?></h2>
    6061
  • trunk/wp-admin/options-discussion.php

    r9456 r9903  
    1717
    1818<div class="wrap">
     19<?php screen_icon(); ?>
    1920<h2><?php echo wp_specialchars( $title ); ?></h2>
    2021
  • trunk/wp-admin/options-general.php

    r9742 r9903  
    5050
    5151<div class="wrap">
     52<?php screen_icon(); ?>
    5253<h2><?php echo wp_specialchars( $title ); ?></h2>
    5354
  • trunk/wp-admin/options-media.php

    r9843 r9903  
    1818
    1919<div class="wrap">
     20<?php screen_icon(); ?>
    2021<h2><?php echo wp_specialchars( $title ); ?></h2>
    2122
  • trunk/wp-admin/options-misc.php

    r9390 r9903  
    1818
    1919<div class="wrap">
     20<?php screen_icon(); ?>
    2021<h2><?php echo wp_specialchars( $title ); ?></h2>
    2122
  • trunk/wp-admin/options-permalink.php

    r9658 r9903  
    124124
    125125<div class="wrap">
     126<?php screen_icon(); ?>
    126127<h2><?php echo wp_specialchars( $title ); ?></h2>
    127128
  • trunk/wp-admin/options-privacy.php

    r9369 r9903  
    1717
    1818<div class="wrap">
     19<?php screen_icon(); ?>
    1920<h2><?php echo wp_specialchars( $title ); ?></h2>
    2021
  • trunk/wp-admin/options-reading.php

    r9390 r9903  
    1717
    1818<div class="wrap">
     19<?php screen_icon(); ?>
    1920<h2><?php echo wp_specialchars( $title ); ?></h2>
    2021
  • trunk/wp-admin/options-writing.php

    r9658 r9903  
    1717
    1818<div class="wrap">
     19<?php screen_icon(); ?>
    1920<h2><?php echo wp_specialchars( $title ); ?></h2>
    2021
  • trunk/wp-admin/plugin-editor.php

    r9233 r9903  
    9797<?php endif; ?>
    9898<div class="wrap">
    99     <h2><?php echo wp_specialchars( $title ); ?></h2>
     99<?php screen_icon(); ?>
     100<h2><?php echo wp_specialchars( $title ); ?></h2>
    100101
    101102<div class="tablenav">
  • trunk/wp-admin/plugin-install.php

    r9233 r9903  
    5353?>
    5454<div class="wrap">
     55<?php screen_icon(); ?>
    5556<h2><?php echo wp_specialchars( $title ); ?></h2>
    5657
  • trunk/wp-admin/plugins.php

    r9733 r9903  
    202202
    203203<div class="wrap">
     204<?php screen_icon(); ?>
    204205    <h2><?php echo wp_specialchars( $title ); ?></h2>
    205206
  • trunk/wp-admin/theme-editor.php

    r9369 r9903  
    100100?>
    101101<div class="wrap">
     102<?php screen_icon(); ?>
    102103<h2><?php echo wp_specialchars( $title ); ?></h2>
    103104<div class="bordertitle">
  • trunk/wp-admin/themes.php

    r9746 r9903  
    101101
    102102<div class="wrap">
     103<?php screen_icon(); ?>
    103104<h2><?php echo wp_specialchars( $title ); ?></h2>
    104105
  • trunk/wp-admin/turbo.php

    r9657 r9903  
    1818?>
    1919    <div id="gears-info-box" class="wrap">
     20    <?php screen_icon(); ?>
    2021    <h2><?php echo wp_specialchars( $title ); ?></h2>
    2122
  • trunk/wp-admin/update-core.php

    r9698 r9903  
    8989function core_upgrade_preamble() {
    9090    $updates = get_core_updates();
    91    
    92     echo '<div class="wrap">';
    93     echo '<h2>' . __('Upgrade WordPress') . '</h2>';
    94 
     91?>
     92    <div class="wrap">
     93    <?php screen_icon(); ?>
     94    <h2><?php _e('Upgrade WordPress'); ?></h2>
     95<?php
    9596    if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) {
    9697        echo '<h3>';
     
    147148        return;
    148149    }
    149 
    150     echo '<div class="wrap">';
    151     echo '<h2>' . __('Upgrade WordPress') . '</h2>';
     150?>
     151    <div class="wrap">
     152    <?php screen_icon(); ?>
     153    <h2><?php _e('Upgrade WordPress'); ?></h2>
     154<?php
    152155    if ( $wp_filesystem->errors->get_error_code() ) {
    153156        foreach ( $wp_filesystem->errors->get_error_messages() as $message )
  • trunk/wp-admin/upload.php

    r9807 r9903  
    164164
    165165<div class="wrap">
     166<?php screen_icon(); ?>
    166167<h2><?php echo wp_specialchars( $title ); ?></h2>
    167168
  • trunk/wp-admin/user-edit.php

    r9746 r9903  
    177177
    178178<div class="wrap" id="profile-page">
    179     <h2><?php echo wp_specialchars( $title ); ?></h2>
     179<?php screen_icon(); ?>
     180<h2><?php echo wp_specialchars( $title ); ?></h2>
    180181
    181182<form id="your-profile" action="" method="post">
  • trunk/wp-admin/user-new.php

    r9699 r9903  
    4343?>
    4444<div class="wrap">
     45<?php screen_icon(); ?>
    4546<h2 id="add-new-user"><?php _e('Add New User') ?></h2>
    4647
  • trunk/wp-admin/users.php

    r9814 r9903  
    238238
    239239<div class="wrap">
     240<?php screen_icon(); ?>
    240241<h2><?php echo wp_specialchars( $title ); ?></h2>
    241242
  • trunk/wp-admin/widgets.php

    r9369 r9903  
    234234
    235235<div class="wrap">
     236<?php screen_icon(); ?>
    236237<h2><?php echo wp_specialchars( $title ); ?></h2>
    237238
  • trunk/wp-admin/wp-admin.css

    r9894 r9903  
    12151215    width: 100%;
    12161216    margin-bottom: -8px;
     1217    clear: both;
    12171218}
    12181219
     
    31123113}
    31133114
     3115.icon32 {
     3116    float: left;
     3117    height: 36px;
     3118    margin: 8px 6px 0 0;
     3119    width: 36px;
     3120}
Note: See TracChangeset for help on using the changeset viewer.