Make WordPress Core


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

Screen icons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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?>
Note: See TracChangeset for help on using the changeset viewer.