Changeset 20496 for trunk/wp-includes/customize-controls.php
- Timestamp:
- 04/17/2012 09:43:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/customize-controls.php
r20495 r20496 28 28 do_action( 'customize_controls_enqueue_scripts' ); 29 29 30 $theme = wp_get_theme();31 $screenshot = $theme->get_screenshot();32 33 30 // Let's roll. 34 31 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); … … 37 34 _wp_admin_html_begin(); 38 35 39 $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $th eme['Name']) ) );36 $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $this->theme->display('Name') ) ) ); 40 37 ?><title><?php echo $admin_title; ?></title><?php 41 38 … … 48 45 <?php wp_nonce_field( 'customize_controls' ); ?> 49 46 <input type="hidden" name="customize" value="on" /> 50 <input type="hidden" id="customize-template" name="template" value="<?php echo esc_attr( $theme['Template'] ); ?>" /> 51 <input type="hidden" id="customize-stylesheet" name="stylesheet" value="<?php echo esc_attr( $theme['Stylesheet'] ); ?>" /> 52 47 <input type="hidden" name="theme" value="<?php echo esc_attr( $this->get_stylesheet() ); ?>" /> 53 48 <div id="customize-header-actions" class="customize-section wp-full-overlay-header"> 54 49 <a class="back" href="<?php echo esc_url( admin_url( 'themes.php' ) ); ?>"> … … 60 55 <div class="customize-section-title"> 61 56 <span class="preview-notice"><?php _e('You are previewing'); ?></span> 62 <strong class="theme-name"><?php echo $th eme['Name']; ?></strong>57 <strong class="theme-name"><?php echo $this->theme->display('Name'); ?></strong> 63 58 </div> 64 59 <div class="customize-section-content"> 65 <?php if ( $screenshot ) : ?>60 <?php if ( $screenshot = $this->theme->get_screenshot() ) : ?> 66 61 <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" /> 67 62 <?php endif; ?> 68 63 69 <?php if ( $th eme->description): ?>70 <div class="theme-description"><?php echo $th eme->description; ?></div>64 <?php if ( $this->theme->get('Description') ): ?> 65 <div class="theme-description"><?php echo $this->theme->display('Description'); ?></div> 71 66 <?php endif; ?> 72 67 </div>
Note: See TracChangeset
for help on using the changeset viewer.