Changeset 32952 for trunk/src/wp-includes/media-template.php
- Timestamp:
- 06/26/2015 05:00:42 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media-template.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r32909 r32952 167 167 <script type="text/html" id="tmpl-media-modal"> 168 168 <div class="<?php echo $class; ?>"> 169 < a class="media-modal-close" href="#"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></a>169 <button type="button" class="button-link media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></button> 170 170 <div class="media-modal-content"></div> 171 171 </div> … … 262 262 <script type="text/html" id="tmpl-uploader-status"> 263 263 <h3><?php _e( 'Uploading' ); ?></h3> 264 < a class="upload-dismiss-errors" href="#"><?php _e('Dismiss Errors'); ?></a>264 <button type="button" class="button-link upload-dismiss-errors"><span class="screen-reader-text"><?php _e( 'Dismiss Errors' ); ?></span></button> 265 265 266 266 <div class="media-progress-bar"><div></div></div> … … 435 435 <?php if ( MEDIA_TRASH ): ?> 436 436 <# if ( 'trash' === data.status ) { #> 437 < a class="untrash-attachment" href="#"><?php _e( 'Untrash' ); ?></a>437 <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> 438 438 <# } else { #> 439 < a class="trash-attachment" href="#"><?php _ex( 'Trash', 'verb' ); ?></a>439 <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button> 440 440 <# } #> 441 441 <?php else: ?> 442 < a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a>442 <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> 443 443 <?php endif; ?> 444 444 <# } #> … … 471 471 </div> 472 472 <# if ( data.buttons.close ) { #> 473 < a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>473 <button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text"><?php _e( 'Remove' ); ?></span></button> 474 474 <# } #> 475 475 </div> 476 476 <# if ( data.buttons.check ) { #> 477 < a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>477 <button type="button" class="button-link check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text"><?php _e( 'Deselect' ); ?></span></button> 478 478 <# } #> 479 479 <# … … 537 537 <?php if ( MEDIA_TRASH ): ?> 538 538 <# if ( 'trash' === data.status ) { #> 539 < a class="untrash-attachment" href="#"><?php _e( 'Untrash' ); ?></a>539 <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> 540 540 <# } else { #> 541 < a class="trash-attachment" href="#"><?php _ex( 'Trash', 'verb' ); ?></a>541 <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button> 542 542 <# } #> 543 543 <?php else: ?> 544 < a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a>544 <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> 545 545 <?php endif; ?> 546 546 <# } #> … … 596 596 <span class="count"></span> 597 597 <# if ( data.editable ) { #> 598 < a class="edit-selection" href="#"><?php _e( 'Edit Selection' ); ?></a>598 <button type="button" class="button-link edit-selection"><?php _e( 'Edit Selection' ); ?></button> 599 599 <# } #> 600 600 <# if ( data.clearable ) { #> 601 < a class="clear-selection" href="#"><?php _e('Clear'); ?></a>601 <button type="button" class="button-link clear-selection"><?php _e( 'Clear' ); ?></button> 602 602 <# } #> 603 603 </div> … … 992 992 </div> 993 993 <div class="advanced-section"> 994 <h3>< a class="advanced-toggle" href="#"><?php _e('Advanced Options'); ?></a></h3>994 <h3><button type="button" class="button-link advanced-toggle"><?php _e( 'Advanced Options' ); ?></button></h3> 995 995 <div class="advanced-settings hidden"> 996 996 <div class="advanced-image"> … … 1049 1049 <span>SRC</span> 1050 1050 <input type="text" disabled="disabled" data-setting="src" value="{{ data.model.src }}" /> 1051 < a class="remove-setting"><?php _e( 'Remove' ); ?></a>1051 <button type="button" class="button-link remove-setting"><?php _e( 'Remove' ); ?></button> 1052 1052 </label> 1053 1053 <# } #> … … 1063 1063 <span><?php echo strtoupper( $type ) ?></span> 1064 1064 <input type="text" disabled="disabled" data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" /> 1065 < a class="remove-setting"><?php _e( 'Remove' ); ?></a>1065 <button type="button" class="button-link remove-setting"><?php _e( 'Remove' ); ?></button> 1066 1066 </label> 1067 1067 <# } #> … … 1132 1132 <span>SRC</span> 1133 1133 <input type="text" disabled="disabled" data-setting="src" value="{{ data.model.src }}" /> 1134 < a class="remove-setting"><?php _e( 'Remove' ); ?></a>1134 <button type="button" class="button-link remove-setting"><?php _e( 'Remove' ); ?></button> 1135 1135 </label> 1136 1136 <# } #> … … 1144 1144 <span><?php echo strtoupper( $type ) ?></span> 1145 1145 <input type="text" disabled="disabled" data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" /> 1146 < a class="remove-setting"><?php _e( 'Remove' ); ?></a>1146 <button type="button" class="button-link remove-setting"><?php _e( 'Remove' ); ?></button> 1147 1147 </label> 1148 1148 <# } #> … … 1165 1165 <span><?php _e( 'Poster Image' ); ?></span> 1166 1166 <input type="text" disabled="disabled" data-setting="poster" value="{{ data.model.poster }}" /> 1167 < a class="remove-setting"><?php _e( 'Remove' ); ?></a>1167 <button type="button" class="button-link remove-setting"><?php _e( 'Remove' ); ?></button> 1168 1168 </label> 1169 1169 <# } #> … … 1197 1197 <p> 1198 1198 <input class="content-track" type="text" value="{{ track.outerHTML }}" /> 1199 < a class="remove-setting remove-track"><?php _e( 'Remove' ); ?></a>1199 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove', 'media' ); ?></button> 1200 1200 </p> 1201 1201 <# } ); #>
Note: See TracChangeset
for help on using the changeset viewer.