Make WordPress Core

Changeset 9063


Ignore:
Timestamp:
10/02/2008 11:04:09 AM (16 years ago)
Author:
azaozz
Message:

Add page options to edit/write page, remove the IE6 scrollbar hack (seems not to be needed any more), add the min-width to all admin pages, add the Page Options link to the end of the breadcrumbs

Location:
trunk/wp-admin
Files:
4 edited

Legend:

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

    r9062 r9063  
    1010if (!isset($_GET["page"])) require_once('admin.php');
    1111wp_enqueue_script( 'wp-gears' );
    12 
    13 $min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php', 'link.php' );
    14 $the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
    15 $ie6_no_scrollbar = true;
    16 
    17 /**
    18  * Append 'minwidth' to value.
    19  *
    20  * @param mixed $c
    21  * @return string
    22  */
    23 function add_minwidth($c) {
    24     return $c . 'minwidth ';
    25 }
    26 
    27 if ( in_array( $the_current_page, $min_width_pages ) ) {
    28         $ie6_no_scrollbar = false;
    29         add_filter( 'admin_body_class', 'add_minwidth' );
    30 }
    3112
    3213get_admin_page_title();
     
    5132//]]>
    5233</script>
    53 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?>
    54 <style type="text/css">* html { overflow-x: hidden; }</style>
    55 <?php endif;
     34<?php
    5635
    5736$hook_suffixes = array();
     
    8766    $breadcrumb = '<a href="index.php">' . __('Dashboard') . '</a> &rsaquo; ' . $title;
    8867}
     68
     69$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' );
    8970?>
    90 <img id="logo50" src="images/logo50.png" alt="" /> <h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?> <a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="View site" id="view-site-link"><img src="<?php echo trailingslashit( bloginfo('wpurl') ) . 'wp-admin/images/new-window-icon.gif'; ?>" alt="View site" /></a><span id="breadcrumb"><?php echo $breadcrumb ?></span></h1>
     71
     72<img id="logo50" src="images/logo50.png" alt="" /> <h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?> <a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="View site" id="view-site-link"><img src="<?php echo trailingslashit( bloginfo('wpurl') ) . 'wp-admin/images/new-window-icon.gif'; ?>" alt="" /></a>
     73<span id="breadcrumb"><?php echo $breadcrumb ?></span>
     74<?php if ( in_array( $pagenow, $settings_pages ) ) { ?>
     75<span id="edit-settings">
     76<a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a>
     77<a href="#edit_settings" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
     78</span>
     79<?php } ?></h1>
    9180</div>
    9281
     
    10594
    10695favorite_actions();
    107 
    108 $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' );
    109 
    110 if ( in_array( $pagenow, $settings_pages ) ) { ?>
    111 <div id="edit-settings">
    112 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a>
    113 <a href="#edit_settings" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
    114 </div>
    115 <?php } ?>
  • trunk/wp-admin/css/colors-classic.css

    r9036 r9063  
    240240#login form .submit input:hover, div.dashboard-widget-submit input:hover,
    241241#edit-slug-buttons a.save:hover, #media-upload a.delete:hover,
    242 #media-upload a.del-link:hover, .ui-tabs-nav a:hover, #user_info a:hover {
     242#media-upload a.del-link:hover, .ui-tabs-nav a:hover, #user_info a:hover,
     243#edit-settings a.show-settings:hover {
    243244    color: #d54e21;
    244245}
     
    351352}
    352353
    353 #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-sortable .postbox h3:hover span, a {
     354#poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-sortable .postbox h3:hover span, a, #edit-settings a.show-settings {
    354355    color: #2e7ca0;
    355356}
  • trunk/wp-admin/css/colors-fresh.css

    r9036 r9063  
    240240#login form .submit input:hover, div.dashboard-widget-submit input:hover,
    241241#edit-slug-buttons a.save:hover, #media-upload a.delete:hover,
    242 #media-upload a.del-link:hover, .ui-tabs-nav a:hover, #user_info a:hover {
     242#media-upload a.del-link:hover, .ui-tabs-nav a:hover, #user_info a:hover,
     243#edit-settings a.show-settings:hover {
    243244    color: #d54e21;
    244245}
     
    349350}
    350351
    351 #adminmenu a, #adminmenu ul.wp-submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, .ui-sortable .postbox h3:hover span, a {
     352#adminmenu a, #adminmenu ul.wp-submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, .ui-sortable .postbox h3:hover span, a, #edit-settings a.show-settings {
    352353    color: #2583ad;
    353354}
  • trunk/wp-admin/wp-admin.css

    r9060 r9063  
    635635
    636636#wphead #breadcrumb {
    637     position: absolute;
    638637    margin-top: 12px;
    639638    margin-left: 10px;
     
    16241623}
    16251624
    1626 body.minwidth {
     1625body.wp-admin {
    16271626    min-width: 785px;
    16281627}
     
    20612060/* show/hide settings */
    20622061#edit-settings {
    2063     position: absolute;
    2064     right: 200px;
    2065     top: 46px;
    2066 }
    2067 
    2068 .show-settings {
    2069     display: block;
     2062    margin-left: 20px;
     2063}
     2064
     2065#edit-settings a.show-settings {
    20702066    height: 18px;
    20712067    font-size: 11px;
     
    20732069    z-index: 1;
    20742070    padding: 3px 8px;
     2071}
     2072
     2073#edit-settings a.show-settings:hover {
     2074    text-decoration: none;
    20752075}
    20762076
     
    21042104    padding: 5px 3px;
    21052105    white-space: nowrap;
    2106     width: 12em;
     2106    overflow: hidden;
     2107    width: 13em;
    21072108}
    21082109
Note: See TracChangeset for help on using the changeset viewer.