Changeset 20445 for trunk/wp-admin/themes.php
- Timestamp:
- 04/11/2012 09:19:32 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/themes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r20419 r20445 96 96 <?php endif; ?> 97 97 </h2> 98 <?php $ct = wp_get_theme(); ?> 99 <div id="current-theme"> 100 <h3><?php _e( 'Current Theme' ); ?></h3> 101 <?php if ( $screenshot = $ct->get_screenshot() ) : ?> 102 <img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" /> 103 <?php endif; ?> 104 <h4><?php 105 /* translators: 1: theme title, 2: theme version, 3: theme author */ 106 printf( __( '%1$s %2$s by %3$s' ), $ct->display('Name'), $ct->display('Version'), $ct->display('Author') ) ; ?></h4> 107 <p class="theme-description"><?php echo $ct->display('Description'); ?></p> 98 <?php 99 100 $ct = wp_get_theme(); 101 $screenshot = $ct->get_screenshot(); 102 $class = $screenshot ? 'has-screenshot' : ''; 103 104 ?> 105 <div id="current-theme" class="<?php echo esc_attr( $class ); ?>"> 106 <?php if ( $screenshot ) : ?> 107 <img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview' ); ?>" /> 108 <?php endif; ?> 109 110 <h3><?php _e('Current Theme'); ?></h3> 111 <h4> 112 <?php echo $ct->display('Name'); ?> 113 </h4> 114 115 <div> 116 <p> 117 <span><?php printf( __('By %s'), $ct->display('Author') ); ?></span> 118 | 119 <span><?php printf( __('Version %s'), $ct->display('Version') ); ?></span> 120 </p> 121 <p class="theme-description"><?php echo $ct->display('Description'); ?></p> 122 <?php theme_update_available( $ct ); ?> 123 </div> 124 108 125 <div class="theme-options"> 109 126 <a href="#" class="load-customize hide-if-no-js" data-customize-template="<?php echo esc_attr( $ct->get_template() ); ?>" data-customize-stylesheet="<?php echo esc_attr( $ct->get_stylesheet() ); ?>" title="<?php echo esc_attr( sprintf( __( 'Customize “%s”' ), $ct->get('Name') ) ); ?>"><?php _e( 'Customize' )?></a> … … 138 155 echo implode ( ' | ', $options ); 139 156 ?></div> 140 <?php theme_update_available( $ct ); ?>141 157 142 158 </div>
Note: See TracChangeset
for help on using the changeset viewer.