mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
git-svn-id: http://core.svn.wordpress.org/trunk@22671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
479d27013a
commit
549b5f61ae
@ -1354,6 +1354,7 @@
|
||||
model: display[ single.cid ],
|
||||
sizes: single.get('sizes'),
|
||||
priority: 160,
|
||||
type: single.get('type'),
|
||||
userSettings: state.get('displayUserSettings')
|
||||
}).render()
|
||||
}, options );
|
||||
|
@ -1548,28 +1548,30 @@ function wp_print_media_templates( $attachment ) {
|
||||
<script type="text/html" id="tmpl-attachment-display-settings">
|
||||
<h3><?php _e('Attachment Display Settings'); ?></h3>
|
||||
|
||||
<label class="setting">
|
||||
<span><?php _e('Alignment'); ?></span>
|
||||
<select class="alignment"
|
||||
data-setting="align"
|
||||
<# if ( data.userSettings ) { #>
|
||||
data-user-setting="align"
|
||||
<# } #>>
|
||||
<# if ( 'image' === data.type ) { #>
|
||||
<label class="setting">
|
||||
<span><?php _e('Alignment'); ?></span>
|
||||
<select class="alignment"
|
||||
data-setting="align"
|
||||
<# if ( data.userSettings ) { #>
|
||||
data-user-setting="align"
|
||||
<# } #>>
|
||||
|
||||
<option value="left">
|
||||
<?php esc_attr_e('Left'); ?>
|
||||
</option>
|
||||
<option value="center">
|
||||
<?php esc_attr_e('Center'); ?>
|
||||
</option>
|
||||
<option value="right">
|
||||
<?php esc_attr_e('Right'); ?>
|
||||
</option>
|
||||
<option value="none" selected>
|
||||
<?php esc_attr_e('None'); ?>
|
||||
</option>
|
||||
</select>
|
||||
</label>
|
||||
<option value="left">
|
||||
<?php esc_attr_e('Left'); ?>
|
||||
</option>
|
||||
<option value="center">
|
||||
<?php esc_attr_e('Center'); ?>
|
||||
</option>
|
||||
<option value="right">
|
||||
<?php esc_attr_e('Right'); ?>
|
||||
</option>
|
||||
<option value="none" selected>
|
||||
<?php esc_attr_e('None'); ?>
|
||||
</option>
|
||||
</select>
|
||||
</label>
|
||||
<# } #>
|
||||
|
||||
<div class="setting">
|
||||
<label>
|
||||
|
Loading…
Reference in New Issue
Block a user