Changeset 8993

Show
Ignore:
Timestamp:
09/26/08 22:27:48 (2 months ago)
Author:
ryan
Message:

Add breadcrumb, remove h2 from edit.php. Styling carnage to be fixed

Files:

Legend:

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

    r8986 r8993  
    3131 
    3232get_admin_page_title(); 
    33  
     33$title = wp_specialchars( strip_tags( $title ) ); 
    3434?> 
    3535<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    3737<head> 
    3838<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 
    39 <title><?php bloginfo('name') ?> &rsaquo; <?php echo wp_specialchars( strip_tags( $title ) ); ?> &#8212; WordPress</title> 
     39<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; WordPress</title> 
    4040<?php 
    4141 
     
    8181<div id="wpcontent"> 
    8282<div id="wphead"> 
    83 <h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?><span id="viewsite"><a href="<?php echo trailingslashit( get_option('home') ); ?>"><?php _e('Visit Site') ?></a></span></h1> 
     83<h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?><span id="breadcrumb"><a href="index.php"><?php _e('Dashboard') ?></a> &rsaquo; <?php echo $title ?></span></h1> 
    8484</div> 
    8585 
  • trunk/wp-admin/edit-post-drafts.php

    r8992 r8993  
    22$locked_post_status = 'draft'; 
    33$_GET['post_status'] = 'draft'; 
    4  
     4require_once('admin.php'); 
     5$title = __('View Drafts'); 
    56require_once('edit.php'); 
    67 
  • trunk/wp-admin/edit.php

    r8992 r8993  
    6868} 
    6969 
    70 $title = __('Posts'); 
     70if ( empty($title) ) 
     71    $title = __('View All Posts'); 
    7172$parent_file = 'edit.php'; 
    7273wp_enqueue_script('admin-forms'); 
     
    124125</div></form> 
    125126 
    126 <h2><?php 
    127 if ( is_single() ) { 
    128     printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title)); 
    129 } else { 
    130     $post_status_label = _c('Posts|manage posts header'); 
    131     if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) 
    132         $post_status_label = $post_stati[$_GET['post_status']][1]; 
    133     //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in upload.php 
    134     //if ( $post_listing_pageable && !is_archive() && !is_search() )  
    135     //  $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label); 
    136     //else 
    137         $h2_noun = $post_status_label; 
    138     // Use $_GET instead of is_ since they can override each other 
    139     $h2_author = ''; 
    140     $_GET['author'] = isset($_GET['author']) ? (int) $_GET['author'] : 0; 
    141     if ( $_GET['author'] != 0 ) { 
    142         if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion 
    143             $h2_author = ' ' . __('by other authors'); 
    144         } else { 
    145             $author_user = get_userdata( get_query_var( 'author' ) ); 
    146             $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name )); 
    147         } 
    148     } 
    149     $h2_search = isset($_GET['s'])   && $_GET['s']   ? ' ' . sprintf(__('matching &#8220;%s&#8221;'), wp_specialchars( get_search_query() ) ) : ''; 
    150     $h2_cat    = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in &#8220;%s&#8221;'), single_cat_title('', false) ) : ''; 
    151     $h2_tag    = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with &#8220;%s&#8221;'), single_tag_title('', false) ) : ''; 
    152     $h2_month  = isset($_GET['m'])   && $_GET['m']   ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : ''; 
    153     printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s (<a href="%7$s">Add New</a>)|You can reorder these: 1: Posts, 2: by {s}, 3: matching {s}, 4: in {s}, 5: tagged with {s}, 6: during {s}' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_tag, $h2_month, 'post-new.php' ); 
    154 } 
    155 ?></h2> 
    156  
    157127<form id="posts-filter" action="" method="get"> 
    158128<ul class="subsubsub"> 
  • trunk/wp-admin/wp-admin.css

    r8988 r8993  
    632632} 
    633633 
    634 #wphead #viewsite
     634#wphead #breadcrumb
    635635    position: absolute; 
    636636    margin-top: 12px; 
    637637    margin-left: 10px; 
    638 
    639 #wphead #viewsite a { 
    640     font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 
     638    font: 16px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 
    641639    padding: 3px 4px; 
    642     display: block; 
    643640    letter-spacing: normal; 
    644     border-width: 1px; 
    645     border-style: solid; 
    646     -moz-border-radius: 3px; 
    647     -khtml-border-radius: 3px; 
    648     -webkit-border-radius: 3px; 
    649     border-radius: 3px; 
    650641} 
    651642