WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/01/2015 11:05:41 PM (6 years ago)
Author:
ocean90
Message:

Customizer Theme Switcher: Update JavaScript template after [31975].

see #31289.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r31968 r31976  
    12031203        $preview_url = site_url( add_query_arg( 'theme', '{{ data.theme.id }}' ) );
    12041204        ?>
    1205         <div class="theme<# if ( data.theme.active ) { #> active<# } #>"<# if ( ! data.theme.active ) { #> tabindex="0"<# } #> data-preview-url="<?php echo esc_attr( $preview_url ); ?>" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name">
     1205        <div class="theme" tabindex="0" data-preview-url="<?php echo esc_attr( $preview_url ); ?>" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name">
    12061206            <# if ( data.theme.screenshot[0] ) { #>
    12071207                <div class="theme-screenshot">
     
    12141214            <div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.theme.author }}' ); ?></div>
    12151215
    1216             <# if ( data.theme.active ) { #>
    1217                 <h3 class="theme-name" id="{{ data.theme.id }}-name">
    1218                     <?php
    1219                     /* translators: %s: theme name */
    1220                     printf( __( '<span>Previewing:</span> %s' ), '{{ data.theme.name }}' );
    1221                     ?>
    1222                 </h3>
    1223             <# } else { #>
    1224                 <h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
    1225             <# } #>
    1226 
    1227             <# if ( ! data.theme.active ) { #>
    1228                 <div class="theme-actions">
    1229                     <button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
    1230                 </div>
    1231             <# } #>
     1216            <h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
     1217
     1218            <div class="theme-actions">
     1219                <button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
     1220            </div>
    12321221        </div>
    12331222    <?php
Note: See TracChangeset for help on using the changeset viewer.