wip
This commit is contained in:
@@ -195,14 +195,14 @@ function wp_print_media_templates() {
|
||||
|
||||
<?php // Template for the media modal. ?>
|
||||
<script type="text/html" id="tmpl-media-modal">
|
||||
<div tabindex="0" class="<?php echo $class; ?>" role="dialog" aria-labelledby="media-frame-title">
|
||||
<div id="wp-media-modal" tabindex="0" class="<?php echo $class; ?>" role="dialog" aria-labelledby="media-frame-title">
|
||||
<# if ( data.hasCloseButton ) { #>
|
||||
<button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text">
|
||||
<button type="button" class="media-modal-close"><span class="media-modal-icon" aria-hidden="true"></span><span class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Close dialog' );
|
||||
?>
|
||||
</span></span></button>
|
||||
</span></button>
|
||||
<# } #>
|
||||
<div class="media-modal-content" role="document"></div>
|
||||
</div>
|
||||
@@ -365,7 +365,7 @@ function wp_print_media_templates() {
|
||||
<div class="edit-media-header">
|
||||
<button class="left dashicons"<# if ( ! data.hasPrevious ) { #> disabled<# } #>><span class="screen-reader-text"><?php /* translators: Hidden accessibility text. */ _e( 'Edit previous media item' ); ?></span></button>
|
||||
<button class="right dashicons"<# if ( ! data.hasNext ) { #> disabled<# } #>><span class="screen-reader-text"><?php /* translators: Hidden accessibility text. */ _e( 'Edit next media item' ); ?></span></button>
|
||||
<button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close dialog' ); ?></span></span></button>
|
||||
<button type="button" class="media-modal-close"><span class="media-modal-icon" aria-hidden="true"></span><span class="screen-reader-text"><?php _e( 'Close dialog' ); ?></span></button>
|
||||
</div>
|
||||
<div class="media-frame-title"></div>
|
||||
<div class="media-frame-content"></div>
|
||||
@@ -443,7 +443,7 @@ function wp_print_media_templates() {
|
||||
?>
|
||||
</h2>
|
||||
<div class="uploaded"><strong><?php _e( 'Uploaded on:' ); ?></strong> {{ data.dateFormatted }}</div>
|
||||
<div class="uploaded-by">
|
||||
<div class="uploaded-by word-wrap-break-word">
|
||||
<strong><?php _e( 'Uploaded by:' ); ?></strong>
|
||||
<# if ( data.authorLink ) { #>
|
||||
<a href="{{ data.authorLink }}">{{ data.authorName }}</a>
|
||||
@@ -605,7 +605,7 @@ function wp_print_media_templates() {
|
||||
<div class="centered">
|
||||
<# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
|
||||
<img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />
|
||||
<# } else if ( data.sizes ) {
|
||||
<# } else if ( data.sizes ) {
|
||||
if ( data.sizes.medium ) { #>
|
||||
<img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />
|
||||
<# } else { #>
|
||||
@@ -621,7 +621,7 @@ function wp_print_media_templates() {
|
||||
<# } #>
|
||||
</div>
|
||||
<# if ( data.buttons.close ) { #>
|
||||
<button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text">
|
||||
<button type="button" class="button-link attachment-close"><span class="media-modal-icon" aria-hidden="true"></span><span class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Remove' );
|
||||
@@ -630,7 +630,7 @@ function wp_print_media_templates() {
|
||||
<# } #>
|
||||
</div>
|
||||
<# if ( data.buttons.check ) { #>
|
||||
<button type="button" class="check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text">
|
||||
<button type="button" class="check" tabindex="-1"><span class="media-modal-icon" aria-hidden="true"></span><span class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Deselect' );
|
||||
|
||||
Reference in New Issue
Block a user