There is no more video-playlist shortcode. To use video, it is now [playlist type="video" ....]. Also deleting core playlist styles. The style attribute is still supported, defaulting to light. Our core style support was 4-5 CSS rules.

See #27552. Leaving open for comments and potential bugs.



git-svn-id: https://develop.svn.wordpress.org/trunk@27785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-03-27 17:57:30 +00:00
parent 0098d5ab65
commit 9384ee1bf3
7 changed files with 125 additions and 227 deletions

View File

@@ -517,53 +517,25 @@ function wp_print_media_templates() {
<script type="text/html" id="tmpl-playlist-settings">
<h3><?php _e( 'Playlist Settings' ); ?></h3>
<?php
$playlist_styles = array(
'light' => _x( 'Light', 'playlist theme' ),
'dark' => _x( 'Dark', 'playlist theme' )
);
/** This filter is documented in wp-includes/media.php */
$styles = apply_filters( 'playlist_styles', $playlist_styles );
if ( ! empty( $styles ) ): ?>
<label class="setting">
<span><?php _e( 'Style' ); ?></span>
<select class="style" data-setting="style">
<?php foreach ( $styles as $slug => $label ): ?>
<option value="<?php echo esc_attr( $slug ) ?>">
<?php echo $label ?>
</option>
<?php endforeach ?>
</select>
</label>
<?php endif; ?>
<#
var playlist = 'playlist-edit' === data.controller.id, emptyModel = _.isEmpty(data.model);
#>
<label class="setting">
<input type="checkbox" data-setting="_orderbyRandom" />
<span><?php _e( 'Random Order' ); ?></span>
</label>
<# var emptyModel = _.isEmpty( data.model ); #>
<label class="setting">
<input type="checkbox" data-setting="tracklist" <# if ( playlist && emptyModel ) { #>
<input type="checkbox" data-setting="tracklist" <# if ( emptyModel ) { #>
checked="checked"
<# } #> />
<span><?php _e( 'Show Tracklist' ); ?></span>
</label>
<label class="setting">
<input type="checkbox" data-setting="tracknumbers" <# if ( playlist && emptyModel ) { #>
<input type="checkbox" data-setting="tracknumbers" <# if ( emptyModel ) { #>
checked="checked"
<# } #> />
<span><?php _e( 'Show Track Numbers' ); ?></span>
</label>
<# if ( playlist ) { #>
<# if ( 'audio' === data.model.type ) { #>
<label class="setting">
<input type="checkbox" data-setting="artists" <# if ( playlist && emptyModel ) { #>
<input type="checkbox" data-setting="artists" <# if ( emptyModel ) { #>
checked="checked"
<# } #> />
<span><?php _e( 'Show Artist Name in Tracklist' ); ?></span>