~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/themes.php

  • Committer: Paul Collins
  • Date: 2011-07-13 02:31:10 UTC
  • Revision ID: paul.collins@canonical.com-20110713023110-rvp7cjj31rsaomkr
import Wordpress 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
$help = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>';
41
41
$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>';
42
42
if ( 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>';
44
44
 
45
45
$help .= '<p><strong>' . __('For more information:') . '</strong></p>';
46
46
$help .= '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>';
71
71
 
72
72
<div class="wrap"><?php
73
73
screen_icon();
74
 
if ( !is_multisite() ) : ?>
 
74
if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
75
75
<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 ); ?>
83
79
<?php endif; ?>
84
80
</h2>
85
81
 
147
143
<form class="search-form filter-form" action="" method="get">
148
144
 
149
145
<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>
151
147
        <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' ) ); ?>
153
149
        <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
154
150
</p>
155
151
 
184
180
        <?php endforeach; ?>
185
181
 
186
182
        <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' ) ); ?>
188
184
                &nbsp;
189
185
                <small><a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a></small>
190
186
        </div>
213
209
 
214
210
<table id="broken-themes">
215
211
        <tr>
216
 
                <th><?php _e('Name'); ?></th>
 
212
                <th><?php _ex('Name', 'theme name'); ?></th>
217
213
                <th><?php _e('Description'); ?></th>
218
214
        </tr>
219
215
<?php