Screen icons

git-svn-id: http://svn.automattic.com/wordpress/trunk@9903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2008-11-26 13:51:25 +00:00
parent ba7c715d8e
commit 7c68e6945a
53 changed files with 140 additions and 12 deletions

View File

@@ -3327,4 +3327,18 @@ function add_contextual_help($screen, $help) {
$_wp_contextual_help[$screen] = $help;
}
function screen_icon() {
global $parent_file, $hook_suffix;
if ( isset($parent_file) && !empty($parent_file) )
$name = substr($parent_file, 0, -4);
else
$name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
unset($hook_suffix);
?>
<div id="icon-<?php echo $name; ?>" class="icon32"><br /></div>
<?php
}
?>