Make WordPress Core

Changeset 8295


Ignore:
Timestamp:
07/09/2008 01:04:24 AM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: get rid of most of the big-add-buttons and put in 2.5 style (Add New) links in h2s

Location:
branches/crazyhorse/wp-admin
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/categories.php

    r8162 r8295  
    119119<div class="wrap">
    120120<form id="posts-filter" action="" method="get">
    121     <h2><?php _e('Manage Categories') ?> </h2>
    122 
    123 <?php if ( current_user_can('manage_categories') ) : ?>
    124 <p id="big-add-button">
    125     <a href="#addcat" class="button"><?php _e('Add New Category'); ?></a>
    126 </p>
    127 <?php endif; ?>
     121    <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    128122
    129123<p id="post-search">
  • branches/crazyhorse/wp-admin/edit-link-categories.php

    r8163 r8295  
    5757
    5858<form id="posts-filter" action="" method="get">
    59     <h2><?php _e('Manage Link Categories') ?> </h2>
    60 
    61 <?php if ( current_user_can('manage_categories') ) : ?>
    62 <p id="big-add-button">
    63     <a href="#addcat" class="button"><?php _e('Add New Category'); ?></a>
    64 </p>
    65 <?php endif; ?>
     59    <h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2>
    6660
    6761<p id="post-search">
  • branches/crazyhorse/wp-admin/edit-pages.php

    r8156 r8295  
    4646    );
    4747
    48 $post_status_label = __('Manage Pages');
     48$post_status_label = __('Pages');
    4949$post_status_q = '';
    5050if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) {
     
    7474    $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name ));
    7575}
    76 printf( _c( '%1$s%2$s%3$s|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search );
     76printf( _c( '%1$s%2$s%3$s (<a href="%4$s">Add New</a>)|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search, 'page-new.php' );
    7777?></h2>
    7878
     
    112112endif;
    113113?>
    114 
    115 <p id="big-add-button">
    116     <a href="page-new.php" class="button"><?php _e( 'Write New Page' ); ?></a>
    117 </p>
    118114
    119115<p id="post-search">
  • branches/crazyhorse/wp-admin/edit-tags.php

    r8161 r8295  
    126126
    127127<form id="posts-filter" action="" method="get">
    128     <h2><?php _e('Manage Tags'); ?></h2>
    129 
    130 <?php if ( current_user_can('manage_categories') ) : ?>
    131 <p id="big-add-button">
    132     <a href="#addtag" class="button"><?php _e('Add New Tag'); ?></a>
    133 </p>
    134 <?php endif; ?>
     128    <h2><?php printf( current_user_can('manage_categories') ? __('Tags (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addtag' ); ?></h2>
    135129
    136130<p id="post-search">
  • branches/crazyhorse/wp-admin/edit.php

    r8288 r8295  
    6666    printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
    6767} else {
    68     $post_status_label = _c('Manage Posts|manage posts header');
     68    $post_status_label = _c('Posts|manage posts header');
    6969    if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) )
    7070        $post_status_label = $post_stati[$_GET['post_status']][1];
     
    8888    $h2_tag    = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with &#8220;%s&#8221;'), single_tag_title('', false) ) : '';
    8989    $h2_month  = isset($_GET['m'])   && $_GET['m']   ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';
    90     printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s|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 );
     90    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' );
    9191}
    9292?></h2>
     
    127127endif;
    128128?>
    129 
    130 <p id="big-add-button">
    131     <a href="post-new.php" class="button"><?php _e( 'Write New Post' ); ?></a>
    132 </p>
    133129
    134130<p id="post-search">
  • branches/crazyhorse/wp-admin/link-manager.php

    r8155 r8295  
    7878
    7979<form id="posts-filter" action="" method="get">
    80 <h2><?php _e( 'Manage Links' ); ?></h2>
    81 
    82 <p id="big-add-button">
    83     <a href="link-add.php" class="button"><?php _e( 'Add New Link' ); ?></a>
    84 </p>
     80<h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2>
    8581
    8682<p id="post-search">
  • branches/crazyhorse/wp-admin/upload.php

    r8154 r8295  
    6161    printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title));
    6262} else {
    63     $post_mime_type_label = _c('Manage Media|manage media header');
     63    $post_mime_type_label = _c('Media|manage media header');
    6464    if ( isset($_GET['post_mime_type']) && in_array( $_GET['post_mime_type'], array_keys($post_mime_types) ) )
    6565        $post_mime_type_label = $post_mime_types[$_GET['post_mime_type']][1];
     
    8383    $h2_tag    = isset($_GET['tag']) && $_GET['tag'] ? ' ' . sprintf( __('tagged with &#8220;%s&#8221;'), single_tag_title('', false) ) : '';
    8484    $h2_month  = isset($_GET['m'])   && $_GET['m']   ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : '';
    85     printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s|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 );
     85    printf( _c( '%1$s%2$s%3$s%4$s%5$s%6$s (<a href="%7$s" class="thickbox">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, 'media-upload.php?TB_iframe=true' );
    8686}
    8787?></h2>
     
    129129?>
    130130
    131 <p id="big-add-button">
    132     <a href="media-upload.php?TB_iframe=true" class="button thickbox"><?php _e( 'Add Media' ); ?></a>
    133 </p>
    134 
    135131<p id="post-search">
    136132    <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label>
  • branches/crazyhorse/wp-admin/users.php

    r8163 r8295  
    242242<form id="posts-filter" action="" method="get">
    243243    <?php if ( $wp_user_search->is_search() ) : ?>
    244         <h2><?php printf(__('Users Matching "%s"'), wp_specialchars($wp_user_search->search_term)); ?></h2>
     244        <h2><?php printf( current_user_can('create_users') ? __('Users Matching "%2$s" (<a href="%1$s">Add New</a>)') : __('Add New'), '#add-new-user', wp_specialchars($wp_user_search->search_term) ); ?></h2>
    245245    <?php else : ?>
    246         <h2><?php _e('Manage Users'); ?></h2>
     246        <h2><?php printf( current_user_can('create_users') ? __('Users (<a href="%s">Add New</a>)') : __('Add New'), '#add-new-user' ); ?></h2>
    247247    <?php endif; ?>
    248248
     
    285285?>
    286286</ul>
    287 
    288 <?php if ( current_user_can('create_users') ) : ?>
    289 <p id="big-add-button">
    290     <a href="#add-new-user" class="button"><?php _e('Add New User'); ?></a>
    291 </p>
    292 <?php endif; ?>
    293287
    294288    <p id="post-search">
Note: See TracChangeset for help on using the changeset viewer.