Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r17364 r18248  
    4141$help .= '<p>' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '</p>';
    4242if ( current_user_can('install_themes') )
    43     $help .= '<p>' . sprintf(__('If you would like to see more themes to choose from, click on the &#8220;Install Themes&#8221; tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are licensed under the GNU General Public License, version 2, just like WordPress. Oh, and they&#8217;re free!'), 'http://wordpress.org/extend/themes/') . '</p>';
     43    $help .= '<p>' . sprintf(__('If you would like to see more themes to choose from, click on the &#8220;Install Themes&#8221; tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!'), 'http://wordpress.org/extend/themes/') . '</p>';
    4444
    4545$help .= '<p><strong>' . __('For more information:') . '</strong></p>';
     
    7272<div class="wrap"><?php
    7373screen_icon();
    74 if ( !is_multisite() ) : ?>
     74if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    7575<h2 class="nav-tab-wrapper">
    76 <a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a>
    77     <?php if ( current_user_can('install_themes') ) : ?>
    78 <a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a>
    79     <?php endif;
    80 else : ?>
    81 <h2>
    82 <?php echo esc_html( $title ); ?>
     76<a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a><a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a>
     77<?php else : ?>
     78<h2><?php echo esc_html( $title ); ?>
    8379<?php endif; ?>
    8480</h2>
     
    148144
    149145<p class="search-box">
    150     <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>
     146    <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Installed Themes'); ?>:</label>
    151147    <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    152     <?php submit_button( __( 'Search Themes' ), 'button', 'submit', false ); ?>
     148    <?php submit_button( __( 'Search Installed Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?>
    153149    <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
    154150</p>
     
    185181
    186182    <div class="feature-container">
    187         <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?>
     183        <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', false, false, array( 'style' => 'margin-left: 120px', 'id' => 'filter-submit' ) ); ?>
    188184        &nbsp;
    189185        <small><a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a></small>
     
    214210<table id="broken-themes">
    215211    <tr>
    216         <th><?php _e('Name'); ?></th>
     212        <th><?php _ex('Name', 'theme name'); ?></th>
    217213        <th><?php _e('Description'); ?></th>
    218214    </tr>
Note: See TracChangeset for help on using the changeset viewer.