Changeset 27785 for trunk/src/wp-includes/media-template.php
- Timestamp:
- 03/27/2014 05:57:30 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r27777 r27785 518 518 <h3><?php _e( 'Playlist Settings' ); ?></h3> 519 519 520 <?php 521 $playlist_styles = array( 522 'light' => _x( 'Light', 'playlist theme' ), 523 'dark' => _x( 'Dark', 'playlist theme' ) 524 ); 525 526 /** This filter is documented in wp-includes/media.php */ 527 $styles = apply_filters( 'playlist_styles', $playlist_styles ); 528 529 if ( ! empty( $styles ) ): ?> 520 <# var emptyModel = _.isEmpty( data.model ); #> 521 530 522 <label class="setting"> 531 <span><?php _e( 'Style' ); ?></span> 532 <select class="style" data-setting="style"> 533 <?php foreach ( $styles as $slug => $label ): ?> 534 <option value="<?php echo esc_attr( $slug ) ?>"> 535 <?php echo $label ?> 536 </option> 537 <?php endforeach ?> 538 </select> 539 </label> 540 <?php endif; ?> 541 542 <# 543 var playlist = 'playlist-edit' === data.controller.id, emptyModel = _.isEmpty(data.model); 544 #> 545 <label class="setting"> 546 <input type="checkbox" data-setting="_orderbyRandom" /> 547 <span><?php _e( 'Random Order' ); ?></span> 548 </label> 549 550 <label class="setting"> 551 <input type="checkbox" data-setting="tracklist" <# if ( playlist && emptyModel ) { #> 523 <input type="checkbox" data-setting="tracklist" <# if ( emptyModel ) { #> 552 524 checked="checked" 553 525 <# } #> /> … … 556 528 557 529 <label class="setting"> 558 <input type="checkbox" data-setting="tracknumbers" <# if ( playlist &&emptyModel ) { #>530 <input type="checkbox" data-setting="tracknumbers" <# if ( emptyModel ) { #> 559 531 checked="checked" 560 532 <# } #> /> … … 562 534 </label> 563 535 564 <# if ( playlist) { #>536 <# if ( 'audio' === data.model.type ) { #> 565 537 <label class="setting"> 566 <input type="checkbox" data-setting="artists" <# if ( playlist &&emptyModel ) { #>538 <input type="checkbox" data-setting="artists" <# if ( emptyModel ) { #> 567 539 checked="checked" 568 540 <# } #> />
Note: See TracChangeset
for help on using the changeset viewer.