Changeset 37714 for trunk/src/wp-admin/themes.php
- Timestamp:
- 06/15/2016 04:36:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r37297 r37714 146 146 add_thickbox(); 147 147 wp_enqueue_script( 'theme' ); 148 wp_enqueue_script( 'updates' ); 148 149 wp_enqueue_script( 'customize-loader' ); 149 150 … … 249 250 <div class="theme-screenshot blank"></div> 250 251 <?php } ?> 252 253 <?php if ( $theme['hasUpdate'] ) : ?> 254 <div class="update-message notice inline notice-warning notice-alt"> 255 <p><?php _e( 'New version available. <button class="button-link" type="button">Update now</button>' ); ?></p> 256 </div> 257 <?php endif; ?> 258 251 259 <span class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></span> 252 260 <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div> … … 277 285 278 286 </div> 279 280 <?php if ( $theme['hasUpdate'] ) { ?>281 <div class="theme-update"><?php _e( 'Update Available' ); ?></div>282 <?php } ?>283 287 </div> 284 288 <?php endforeach; ?> … … 369 373 <div class="theme-screenshot blank"></div> 370 374 <# } #> 375 376 <# if ( data.hasUpdate ) { #> 377 <div class="update-message notice inline notice-warning notice-alt"><p><?php _e( 'New version available. <button class="button-link" type="button">Update now</button>' ); ?></p></div> 378 <# } #> 379 371 380 <span class="more-details" id="{{ data.id }}-action"><?php _e( 'Theme Details' ); ?></span> 372 <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div> 381 <div class="theme-author"> 382 <?php 383 /* translators: %s: Theme author name */ 384 printf( __( 'By %s' ), '{{{ data.author }}}' ); 385 ?> 386 </div> 373 387 374 388 <# if ( data.active ) { #> 375 389 <h2 class="theme-name" id="{{ data.id }}-name"> 376 390 <?php 377 /* translators: %s: theme name */391 /* translators: %s: Theme name */ 378 392 printf( __( '<span>Active:</span> %s' ), '{{{ data.name }}}' ); 379 393 ?> … … 384 398 385 399 <div class="theme-actions"> 386 387 <# if ( data.active ) { #> 388 <# if ( data.actions.customize ) { #> 389 <a class="button button-primary customize load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Customize' ); ?></a> 400 <# if ( data.active ) { #> 401 <# if ( data.actions.customize ) { #> 402 <a class="button button-primary customize load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Customize' ); ?></a> 403 <# } #> 404 <# } else { #> 405 <a class="button button-secondary activate" href="{{{ data.actions.activate }}}"><?php _e( 'Activate' ); ?></a> 406 <a class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a> 390 407 <# } #> 391 <# } else { #>392 <a class="button button-secondary activate" href="{{{ data.actions.activate }}}"><?php _e( 'Activate' ); ?></a>393 <a class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a>394 <# } #>395 396 408 </div> 397 398 <# if ( data.hasUpdate ) { #>399 <div class="theme-update"><?php _e( 'Update Available' ); ?></div>400 <# } #>401 409 </script> 402 410 … … 462 470 </script> 463 471 464 <?php require( ABSPATH . 'wp-admin/admin-footer.php' ); 472 <?php 473 wp_print_request_filesystem_credentials_modal(); 474 wp_print_admin_notice_templates(); 475 wp_print_update_row_templates(); 476 477 require( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset
for help on using the changeset viewer.