WordPress.org

Make WordPress Core

Changeset 13533


Ignore:
Timestamp:
03/01/2010 03:27:42 PM (9 years ago)
Author:
ryan
Message:

Tab interface for Theme and Add New Theme. First pass. Props matveb, dremeda. see #12412

Location:
trunk/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r13303 r13533  
    36683668    display: inline;
    36693669}
     3670
     3671/* Tab Interface */
     3672
     3673.menu-tabs {
     3674    border-width: 1px 1px 2px;
     3675    border-style: solid;
     3676    border-color: #ccc #ccc #f9f9f9;
     3677    color: #464646;
     3678    padding: 4px 20px 6px;
     3679    text-decoration: none;
     3680    background-color: #fafafa;
     3681    margin: 0;
     3682    -moz-border-radius: 5px 5px 0 0;
     3683    -webkit-border-top-left-radius: 5px;
     3684    -webkit-border-top-right-radius: 5px;
     3685    -khtml-border-top-left-radius: 5px;
     3686    -khtml-border-top-right-radius: 5px;
     3687    border-top-left-radius: 5px;
     3688    border-top-right-radius: 5px;
     3689}
     3690
     3691.themes-php .wrap h2, .theme-install-php .wrap h2 {
     3692    border-bottom: 1px solid #ccc;
     3693}
     3694
     3695.menu-tab-inactive {
     3696    border-width: 1px 1px 0;
     3697    background-color: #fafafa;
     3698    color: #c1c1c1;
     3699    margin: 0 6px 0 0;
     3700}
  • trunk/wp-admin/menu.php

    r13366 r13533  
    108108    $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
    109109    $submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
    110     $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
    111110    $submenu['themes.php'][20] = array(__('Menus'), 'switch_themes', 'nav-menus.php');
    112111
  • trunk/wp-admin/theme-install.php

    r12752 r13533  
    1717$title = __('Install Themes');
    1818$parent_file = 'themes.php';
     19$submenu_file = 'themes.php';
    1920
    2021wp_reset_vars( array('tab', 'paged') );
     
    5960<div class="wrap">
    6061<?php screen_icon(); ?>
    61 <h2><?php echo esc_html( $title ); ?></h2>
     62<h2><a href="themes.php" class="menu-tabs menu-tab-inactive"><?php echo esc_html_x('Manage Themes', 'theme'); ?></a><a href="theme-install.php" class="menu-tabs"><?php echo esc_html( $title ); ?></a></h2>
    6263
    6364    <ul class="subsubsub">
  • trunk/wp-admin/themes.php

    r12837 r13533  
    135135<div class="wrap">
    136136<?php screen_icon(); ?>
    137 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2>
     137<h2><a href="themes.php" class="menu-tabs"><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?></a> <a href="theme-install.php" class="menu-tabs menu-tab-inactive"><?php echo esc_html_x('Install Themes', 'theme'); ?></a><?php } ?></h2>
    138138
    139139<h3><?php _e('Current Theme'); ?></h3>
Note: See TracChangeset for help on using the changeset viewer.