~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-admin/themes.php

  • Committer: Paul Gear
  • Date: 2015-04-24 01:35:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: paul.gear@canonical.com-20150424013520-w4p9ksth76zh6opw
Merge new upstream release 4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                '<ul><li>' . __( 'Hover or tap to see Activate and Live Preview buttons' ) . '</li>' .
48
48
                '<li>' . __( 'Click on the theme to see the theme name, version, author, description, tags, and the Delete link' ) . '</li>' .
49
49
                '<li>' . __( 'Click Customize for the current theme or Live Preview for any other theme to see a live preview' ) . '</li></ul>' .
50
 
                '<p>' . __( 'The current theme is displayed highlighted as the first theme.' ) . '</p>';
 
50
                '<p>' . __( 'The current theme is displayed highlighted as the first theme.' ) . '</p>' .
 
51
                '<p>' . __( 'The search for installed themes will search for terms in their name, description, author, or tag.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>';
51
52
 
52
53
        get_current_screen()->add_help_tab( array(
53
54
                'id'      => 'overview',
87
88
 
88
89
get_current_screen()->set_help_sidebar(
89
90
        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
90
 
        '<p>' . __( '<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>' ) . '</p>' .
 
91
        '<p>' . __( '<a href="https://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>' ) . '</p>' .
91
92
        '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
92
93
);
93
94
 
107
108
                'adminUrl'      => parse_url( admin_url(), PHP_URL_PATH ),
108
109
        ),
109
110
        'l10n' => array(
110
 
                'addNew' => __( 'Add New Theme' ),
111
 
                'search'  => __( 'Search Installed Themes' ),
 
111
                'addNew'            => __( 'Add New Theme' ),
 
112
                'search'            => __( 'Search Installed Themes' ),
112
113
                'searchPlaceholder' => __( 'Search installed themes...' ), // placeholder (no ellipsis)
 
114
                'themesFound'       => __( 'Number of Themes found: %d' ),
 
115
                'noThemesFound'     => __( 'No themes found. Try a different search.' ),
113
116
        ),
114
117
) );
115
118
 
129
132
        </h2>
130
133
<?php
131
134
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
132
 
<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
 
135
<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
133
136
<?php elseif ( isset($_GET['activated']) ) :
134
137
                if ( isset( $_GET['previewed'] ) ) { ?>
135
 
                <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div>
 
138
                <div id="message2" class="updated notice is-dismissible"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div>
136
139
                <?php } else { ?>
137
 
<div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php
 
140
<div id="message2" class="updated notice is-dismissible"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php
138
141
                }
139
142
        elseif ( isset($_GET['deleted']) ) : ?>
140
 
<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
 
143
<div id="message3" class="updated notice is-dismissible"><p><?php _e('Theme deleted.') ?></p></div>
141
144
<?php elseif ( isset( $_GET['delete-active-child'] ) ) : ?>
142
145
        <div id="message4" class="error"><p><?php _e( 'You cannot delete a theme while it has an active child theme.' ); ?></p></div>
143
146
<?php
222
225
        <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
223
226
 
224
227
        <?php if ( $theme['active'] ) { ?>
225
 
                <h3 class="theme-name" id="<?php echo $aria_name; ?>"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>
 
228
                <h3 class="theme-name" id="<?php echo $aria_name; ?>">
 
229
                        <?php
 
230
                        /* translators: %s: theme name */
 
231
                        printf( __( '<span>Active:</span> %s' ), $theme['name'] );
 
232
                        ?>
 
233
                </h3>
226
234
        <?php } else { ?>
227
235
                <h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
228
236
        <?php } ?>
320
328
        <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
321
329
 
322
330
        <# if ( data.active ) { #>
323
 
                <h3 class="theme-name" id="{{ data.id }}-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
 
331
                <h3 class="theme-name" id="{{ data.id }}-name">
 
332
                        <?php
 
333
                        /* translators: %s: theme name */
 
334
                        printf( __( '<span>Active:</span> %s' ), '{{ data.name }}' );
 
335
                        ?>
 
336
                </h3>
324
337
        <# } else { #>
325
338
                <h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
326
339
        <# } #>
365
378
                                <# if ( data.active ) { #>
366
379
                                        <span class="current-label"><?php _e( 'Current Theme' ); ?></span>
367
380
                                <# } #>
368
 
                                <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span></h3>
 
381
                                <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h3>
369
382
                                <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></h4>
370
383
 
371
384
                                <# if ( data.hasUpdate ) { #>