Make WordPress Core


Ignore:
Timestamp:
10/27/2008 01:22:24 AM (17 years ago)
Author:
azaozz
Message:

Attach 'Screen Options' button to the sliding layer and related changes

File:
1 edited

Legend:

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

    r9359 r9363  
    7474<div id="wphead">
    7575<?php
    76 $settings_pages = array( 'categories.php', 'edit.php', 'edit-comments.php', 'edit-form-advanced.php', 'edit-link-categories.php', 'edit-link-form.php', 'edit-page-form.php', 'edit-tags.php', 'link-manager.php', 'upload.php', 'users.php', 'edit-pages.php', 'post-new.php', 'post.php', 'page-new.php', 'page.php', 'index.php' );
    7776$blog_name = get_bloginfo('name', 'display');
    7877if ( '' == $blog_name )
     
    8079?>
    8180
    82 <img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a>
    83 <?php if ( false === strpos($_SERVER['REQUEST_URI'], 'page=') && in_array( $pagenow, $settings_pages ) ) { ?>
    84 
    85 <span id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed">
    86 <span id="screen-options">
    87 <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a>
    88 <a href="#screen-options" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
    89 </span>
    90 </span>
    91 <?php } ?></h1>
     81<img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a></h1>
    9282
    9383<div id="wphead-info">
     
    9989<?php favorite_actions(); ?>
    10090</div>
    101 
    10291</div>
    10392
    104 <?php
    105 require(ABSPATH . 'wp-admin/menu-header.php');
    106 ?>
    10793<div id="wpbody">
     94<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
     95
    10896<div id="wpbody-content">
    10997<?php
Note: See TracChangeset for help on using the changeset viewer.