Changeset 45499
- Timestamp:
- 06/07/2019 08:43:26 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/mediaelement/wp-mediaelement.css
r43309 r45499 68 68 } 69 69 70 .media-embed-details .embed-media-settings .setting span {71 max-width: 400px; 72 width: auto; 70 .media-embed-details .embed-media-settings .setting span:not(.button-group) { 71 max-width: 400px; /* Back-compat for pre-5.3 */ 72 width: auto; /* Back-compat for pre-5.3 */ 73 73 } 74 74 … … 95 95 96 96 .media-embed-details .setting .remove-setting { 97 padding: 0;97 padding: 5px 0; 98 98 } 99 99 -
trunk/src/js/media/views/embed/url.js
r43309 r45499 1 1 var View = wp.media.View, 2 2 $ = jQuery, 3 l10n = wp.media.view.l10n, 3 4 EmbedUrl; 4 5 … … 14 15 */ 15 16 EmbedUrl = View.extend(/** @lends wp.media.view.EmbedUrl.prototype */{ 16 tagName: ' label',17 tagName: 'span', 17 18 className: 'embed-url', 18 19 19 20 events: { 20 'input': 'url', 21 'keyup': 'url', 22 'change': 'url' 21 'input': 'url' 23 22 }, 24 23 25 24 initialize: function() { 26 this.$input = $('<input id="embed-url-field" type="url" />').val( this.model.get('url') ); 25 this.$input = $( '<input id="embed-url-field" type="url" />' ) 26 .attr( 'aria-label', l10n.insertFromUrlTitle ) 27 .val( this.model.get('url') ); 27 28 this.input = this.$input[0]; 28 29 -
trunk/src/js/media/views/frame/image-details.js
r43309 r45499 135 135 back: { 136 136 text: l10n.back, 137 priority: 20,137 priority: 80, 138 138 click: function() { 139 139 if ( previous ) { … … 148 148 style: 'primary', 149 149 text: l10n.replace, 150 priority: 80,150 priority: 20, 151 151 requires: { selection: true }, 152 152 -
trunk/src/js/media/views/settings/attachment-display.js
r43309 r45499 67 67 68 68 if ( 'none' === linkTo || 'embed' === linkTo || ( ! attachment && 'custom' !== linkTo ) ) { 69 $input. addClass( 'hidden' );69 $input.closest( '.setting' ).addClass( 'hidden' ); 70 70 return; 71 71 } … … 83 83 } 84 84 85 $input. removeClass( 'hidden' );85 $input.closest( '.setting' ).removeClass( 'hidden' ); 86 86 87 87 // If the input is visible, focus and select its contents. -
trunk/src/wp-admin/css/media.css
r45497 r45499 375 375 376 376 .drag-drop .drag-drop-inside { 377 margin: 70px auto 0;377 margin: 60px auto 0; 378 378 width: 250px; 379 379 } 380 380 381 381 .drag-drop-inside p { 382 color: #a0a5aa;383 382 font-size: 14px; 384 383 margin: 5px 0; … … 481 480 } 482 481 483 .upload-php .mode-grid .media-sidebar .media-uploader-status.errors h3, /* Back-compat for pre-4.4 */484 482 .upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2 { 485 483 display: none; … … 1032 1030 } 1033 1031 1034 #poststuff .imgedit-group-top h3, /* Back-compat for pre-4.4 */1035 1032 #poststuff .imgedit-group-top h2 { 1036 1033 display: inline-block; … … 1110 1107 } 1111 1108 1109 .imgedit-save-target legend { 1110 font-weight: 600; 1111 } 1112 1112 1113 .imgedit-group { 1113 1114 margin-bottom: 8px; … … 1127 1128 width: 7px; 1128 1129 text-align: center; 1129 vertical-align: middle;1130 1130 font-size: 13px; 1131 1131 color: #444; … … 1191 1191 padding: 6px 10px; 1192 1192 } 1193 1194 .imgedit-applyto .imgedit-label {1195 vertical-align: middle;1196 }1197 1193 } 1198 1194 … … 1233 1229 } 1234 1230 1235 .upload-php .media-modal-close .media-modal-icon {1236 margin: 9px 10px;1237 }1238 1239 1231 .edit-attachment-frame .edit-media-header .right:before, 1240 1232 .edit-attachment-frame .edit-media-header .left:before { -
trunk/src/wp-admin/includes/image-edit.php
r44785 r45499 65 65 <legend><?php _e( 'New dimensions:' ); ?></legend> 66 66 <div class="nowrap"> 67 <label ><span class="screen-reader-text"><?php _e( 'scale width' ); ?></span>67 <label for="imgedit-scale-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale width' ); ?></label> 68 68 <input type="text" id="imgedit-scale-width-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" /> 69 </label> 70 <span class="imgedit-separator">×</span> 71 <label><span class="screen-reader-text"><?php _e( 'scale height' ); ?></span> 69 <span class="imgedit-separator" aria-hidden="true">×</span> 70 <label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label> 72 71 <input type="text" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" /> 73 </label>74 72 <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span> 75 73 <input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" /> 76 74 </div> 77 75 </fieldset> 78 76 … … 125 123 <legend><?php _e( 'Aspect ratio:' ); ?></legend> 126 124 <div class="nowrap"> 127 <label ><span class="screen-reader-text"><?php _e( 'crop ratio width' ); ?></span>125 <label for="imgedit-crop-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'crop ratio width' ); ?></label> 128 126 <input type="text" id="imgedit-crop-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" /> 129 </label> 130 <span class="imgedit-separator">:</span> 131 <label><span class="screen-reader-text"><?php _e( 'crop ratio height' ); ?></span> 127 <span class="imgedit-separator" aria-hidden="true">:</span> 128 <label for="imgedit-crop-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'crop ratio height' ); ?></label> 132 129 <input type="text" id="imgedit-crop-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" /> 133 </label>134 130 </div> 135 131 </fieldset> … … 138 134 <legend><?php _e( 'Selection:' ); ?></legend> 139 135 <div class="nowrap"> 140 <label ><span class="screen-reader-text"><?php _e( 'selection width' ); ?></span>136 <label for="imgedit-sel-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'selection width' ); ?></label> 141 137 <input type="text" id="imgedit-sel-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" /> 142 </label> 143 <span class="imgedit-separator">×</span> 144 <label><span class="screen-reader-text"><?php _e( 'selection height' ); ?></span> 138 <span class="imgedit-separator" aria-hidden="true">×</span> 139 <label for="imgedit-sel-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'selection height' ); ?></label> 145 140 <input type="text" id="imgedit-sel-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" /> 146 </label>147 141 </div> 148 142 </fieldset> … … 169 163 <div id="imgedit-save-target-<?php echo $post_id; ?>" class="imgedit-save-target"> 170 164 <fieldset> 171 <legend><strong><?php _e( 'Apply changes to:' ); ?></strong></legend> 172 173 <label class="imgedit-label"> 174 <input type="radio" name="imgedit-target-<?php echo $post_id; ?>" value="all" checked="checked" /> 175 <?php _e( 'All image sizes' ); ?></label> 176 177 <label class="imgedit-label"> 178 <input type="radio" name="imgedit-target-<?php echo $post_id; ?>" value="thumbnail" /> 179 <?php _e( 'Thumbnail' ); ?></label> 180 181 <label class="imgedit-label"> 182 <input type="radio" name="imgedit-target-<?php echo $post_id; ?>" value="nothumb" /> 183 <?php _e( 'All sizes except thumbnail' ); ?></label> 165 <legend><?php _e( 'Apply changes to:' ); ?></legend> 166 167 <span class="imgedit-label"> 168 <input type="radio" id="imgedit-target-all" name="imgedit-target-<?php echo $post_id; ?>" value="all" checked="checked" /> 169 <label for="imgedit-target-all"><?php _e( 'All image sizes' ); ?></label> 170 </span> 171 172 <span class="imgedit-label"> 173 <input type="radio" id="imgedit-target-thumbnail" name="imgedit-target-<?php echo $post_id; ?>" value="thumbnail" /> 174 <label for="imgedit-target-thumbnail"><?php _e( 'Thumbnail' ); ?></label> 175 </span> 176 177 <span class="imgedit-label"> 178 <input type="radio" id="imgedit-target-nothumb" name="imgedit-target-<?php echo $post_id; ?>" value="nothumb" /> 179 <label for="imgedit-target-nothumb"><?php _e( 'All sizes except thumbnail' ); ?></label> 180 </span> 184 181 </fieldset> 185 182 </div> -
trunk/src/wp-admin/includes/media.php
r45450 r45499 2073 2073 <div id="drag-drop-area"> 2074 2074 <div class="drag-drop-inside"> 2075 <p class="drag-drop-info"><?php _e( 'Drop files here' ); ?></p>2075 <p class="drag-drop-info"><?php _e( 'Drop files to upload' ); ?></p> 2076 2076 <p><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p> 2077 2077 <p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select Files' ); ?>" class="button" /></p> -
trunk/src/wp-includes/css/buttons.css
r45476 r45499 310 310 border-radius: 0; 311 311 margin-right: -1px; 312 z-index: 10;313 312 } 314 313 -
trunk/src/wp-includes/css/media-views.css
r45478 r45499 19 19 } 20 20 21 .media-modal legend, 21 .media-modal legend { 22 padding: 0; 23 font-size: 13px; 24 } 25 22 26 .media-modal label { 23 27 font-size: 13px; 28 } 29 30 .media-modal .legend-inline { 31 position: absolute; 32 transform: translate(-100%, 50%); 33 margin-left: -1%; 34 line-height: 1.2; 24 35 } 25 36 … … 31 42 .media-frame select, 32 43 .wp-admin .media-frame select { 44 padding: 2px; 33 45 line-height: 2; 34 margin-top: 3px; 46 height: 28px; 47 vertical-align: middle; 35 48 } 36 49 … … 93 106 } 94 107 95 .media-frame select {96 height: 24px;97 padding: 2px;98 }99 100 108 .media-frame input:disabled, 101 109 .media-frame textarea:disabled, … … 122 130 } 123 131 124 .media-frame .hidden { 132 /* 133 * In some cases there's the need of higher specificity, 134 * for example higher than `.media-embed .setting`. 135 */ 136 .media-frame .hidden, 137 .media-frame .setting.hidden { 125 138 display: none; 126 139 } … … 235 248 } 236 249 237 .media-modal-content .media-toolbar-primary .media-button {238 float: right;239 }240 241 250 .media-modal-content .attachments-browser .search { 242 251 width: 100%; … … 322 331 } 323 332 324 .media-sidebar .sidebar-title {325 font-size: 20px;326 margin: 0;327 padding: 12px 10px 10px;328 line-height: 28px;329 }330 331 .media-sidebar .sidebar-content {332 padding: 0 10px;333 margin-bottom: 130px;334 }335 336 .media-sidebar .search {337 display: block;338 width: 100%;339 }340 341 .media-sidebar h3, /* Back-compat for pre-4.4 */342 .image-details h3, /* Back-compat for pre-4.4 */343 333 .media-sidebar h2, 344 334 .image-details h2 { … … 356 346 float: left; 357 347 width: 100%; 348 margin: 0 0 10px; 349 } 350 351 .media-sidebar .collection-settings .setting { 358 352 margin: 1px 0; 359 353 } 360 354 361 .media-sidebar .setting label, 362 .attachment-details .setting label { 363 display: block; 364 } 365 366 .media-sidebar .setting .link-to-custom, 367 .attachment-details .setting .link-to-custom { 355 .media-sidebar .setting.has-description, 356 .attachment-details .setting.has-description { 357 margin-bottom: 5px; 358 } 359 360 .media-sidebar .setting .link-to-custom { 368 361 margin: 3px 2px 0; 369 362 } 370 363 371 .media-sidebar .setting span, 372 .attachment-details .setting span { 364 .media-sidebar .setting span, /* Back-compat for pre-5.3 */ 365 .attachment-details .setting span, /* Back-compat for pre-5.3 */ 366 .media-sidebar .setting .name, 367 .media-sidebar .setting .value, 368 .attachment-details .setting .name { 373 369 min-width: 30%; 374 370 margin-right: 4%; … … 382 378 } 383 379 384 .media-sidebar .setting select, 385 .attachment-details .setting select { 380 .media-sidebar .setting .value { 381 text-align: left; 382 } 383 384 .media-sidebar .setting select { 386 385 max-width: 65%; 387 386 } … … 400 399 } 401 400 402 .media-sidebar .setting span, 403 .attachment-details .setting span, 401 .media-sidebar .setting span, /* Back-compat for pre-5.3 */ 402 .attachment-details .setting span, /* Back-compat for pre-5.3 */ 403 .media-sidebar .setting .name, 404 .media-sidebar .setting .value, 405 .media-sidebar .checkbox-label-inline, 406 .attachment-details .setting .name, 407 .attachment-details .setting .value, 404 408 .compat-item label span { 405 409 float: left; … … 409 413 font-weight: 400; 410 414 color: #666; 415 } 416 417 .media-sidebar .checkbox-label-inline { 418 font-size: 12px; 411 419 } 412 420 … … 451 459 font-size: 12px; 452 460 font-style: normal; 453 margin-bottom: 0.5em;461 margin-bottom: 10px; 454 462 } 455 463 … … 459 467 height: 62px; 460 468 resize: vertical; 461 }462 463 .media-sidebar select,464 .attachment-details select {465 margin-top: 3px;466 469 } 467 470 … … 760 763 } 761 764 762 .media-frame-content .crop-content .upload-errors 763 { 765 .media-frame-content .crop-content .upload-errors { 764 766 position: absolute; 765 767 width: 300px; … … 941 943 } 942 944 943 .ie8 .wp-core-ui .attachment img.icon {944 top: 20%;945 position: relative;946 }947 948 945 .wp-core-ui .attachment .filename { 949 946 position: absolute; … … 1202 1199 } 1203 1200 1204 .uploader-inline .media-uploader-status h3, /* Back-compat for pre-4.4 */1205 1201 .uploader-inline .media-uploader-status h2 { 1206 1202 display: none; … … 1290 1286 } 1291 1287 1292 .uploader-window { 1293 position: fixed; 1288 /** 1289 * Window and Editor uploaders used to display "drop zones" 1290 */ 1291 .uploader-window, 1292 .wp-editor-wrap .uploader-editor { 1294 1293 top: 0; 1295 1294 left: 0; 1296 1295 right: 0; 1297 1296 bottom: 0; 1297 text-align: center; 1298 display: none; 1299 } 1300 1301 .uploader-window { 1302 position: fixed; 1303 z-index: 250000; 1304 opacity: 0; /* Only the inline uploader is animated with JS, the editor one isn't */ 1305 transition: opacity 250ms; 1306 } 1307 1308 .wp-editor-wrap .uploader-editor { 1309 position: absolute; 1310 z-index: 99998; /* under the toolbar */ 1311 background: rgba(150, 150, 150, 0.9); 1312 } 1313 1314 .uploader-window, 1315 .wp-editor-wrap .uploader-editor.droppable { 1298 1316 background: rgba(0, 86, 132, 0.9); 1299 z-index: 250000; 1300 display: none; 1301 text-align: center; 1302 opacity: 0; 1303 transition: opacity 250ms; 1304 } 1305 1306 .uploader-window-content { 1317 } 1318 1319 .uploader-window-content, 1320 .wp-editor-wrap .uploader-editor-content { 1307 1321 position: absolute; 1308 1322 top: 10px; … … 1313 1327 } 1314 1328 1315 .uploader-window h3, /* Back-compat for pre-4.4 */ 1316 .uploader-window h1 { 1317 margin: -0.5em 0 0; 1329 /* uploader drop-zone title */ 1330 .uploader-window h1, /* Back-compat for pre-5.3 */ 1331 .uploader-window .uploader-editor-title, 1332 .wp-editor-wrap .uploader-editor .uploader-editor-title { 1318 1333 position: absolute; 1319 1334 top: 50%; 1320 1335 left: 0; 1321 1336 right: 0; 1322 transform: translateY( -50% ); 1323 font-size: 40px; 1337 transform: translateY(-50%); 1338 font-size: 3em; 1339 line-height: 1.3; 1340 font-weight: 600; 1324 1341 color: #fff; 1325 padding: 0; 1342 margin: 0; 1343 padding: 0 10px; 1344 } 1345 1346 .wp-editor-wrap .uploader-editor .uploader-editor-title { 1347 display: none; 1348 } 1349 1350 .wp-editor-wrap .uploader-editor.droppable .uploader-editor-title { 1351 display: block; 1326 1352 } 1327 1353 … … 1367 1393 } 1368 1394 1369 .uploader-inline h3, /* Back-compat for pre-4.4 */1370 1395 .uploader-inline h2 { 1371 1396 font-size: 20px; … … 1390 1415 1391 1416 .uploader-inline p { 1392 font-size: 12px;1393 1417 margin: 0.5em 0; 1394 1418 } … … 1581 1605 float: right; 1582 1606 text-transform: none; 1583 z-index: 10;1607 font-weight: 400; 1584 1608 } 1585 1609 1586 1610 .attachment-details .settings-save-status .spinner { 1611 float: none; 1587 1612 margin-left: 5px; 1588 1613 } 1589 1614 1590 1615 .attachment-details .settings-save-status .saved { 1591 float: right;1592 1616 display: none; 1593 1617 } … … 1598 1622 1599 1623 .attachment-details.save-complete .settings-save-status .saved { 1600 display: block;1624 display: inline-block; 1601 1625 } 1602 1626 … … 1705 1729 } 1706 1730 1707 .attachment-display-settings h4 {1708 margin: 1.4em 0 0.4em;1709 }1710 1711 1731 .collection-settings { 1712 1732 overflow: hidden; … … 1718 1738 } 1719 1739 1720 .collection-settings .setting span { 1740 .collection-settings .setting span, /* Back-compat for pre-5.3 */ 1741 .collection-settings .setting .name { 1721 1742 min-width: inherit; 1722 1743 } … … 1773 1794 } 1774 1795 1775 .media-modal .imgedit-group-top h3, /* Back-compat for pre-4.4 */1776 1796 .media-modal .imgedit-group-top h2, 1777 1797 .media-modal .imgedit-group-top h2 .button-link { … … 1784 1804 } 1785 1805 1786 .media-modal .imgedit-group-top h3 a, /* Back-compat for pre-4.4 */1787 1806 .media-modal .imgedit-group-top h2 a, 1788 1807 .media-modal .imgedit-group-top h2 .button-link { … … 1840 1859 } 1841 1860 1842 1843 1861 /** 1844 1862 * Embed from URL and Image Details … … 1856 1874 .media-frame .embed-url input { 1857 1875 font-size: 18px; 1858 padding: 12px 14px;1876 padding: 12px 40px 12px 14px; /* right padding to leave room for the spinner */ 1859 1877 width: 100%; 1860 1878 min-width: 200px; 1861 1879 box-shadow: inset 2px 2px 4px -2px rgba(0, 0, 0, 0.1); 1880 } 1881 1882 .media-frame .embed-url input::-ms-clear { 1883 display: none; /* the "x" in IE 11 conflicts with the spinner */ 1862 1884 } 1863 1885 … … 1879 1901 right: 0; 1880 1902 bottom: 0; 1881 padding: 16px16px 32px;1903 padding: 0 16px 32px; 1882 1904 overflow: auto; 1883 1905 } … … 1942 1964 } 1943 1965 1944 .image-details .column-settings h3, /* Back-compat for pre-4.4 */1945 1966 .image-details .column-settings h2 { 1946 1967 margin: 20px; … … 1993 2014 } 1994 2015 1995 .image-details .embed-media-settings .size { 1996 margin-bottom: 4px; 1997 } 1998 1999 .image-details .custom-size span { 2000 display: block; 2001 } 2002 2003 .image-details .custom-size label { 2016 .image-details .custom-size label, /* Back-compat for pre-5.3 */ 2017 .image-details .custom-size .custom-size-setting { 2004 2018 display: block; 2005 2019 float: left; 2006 2020 } 2007 2021 2008 .image-details .custom-size span small { 2009 color: #555d66; /* #f3f3f3 background */ 2010 font-size: inherit; 2022 .image-details .custom-size .custom-size-setting label { 2023 float: none; 2011 2024 } 2012 2025 … … 2020 2033 } 2021 2034 2022 .image-details .custom-size:after { 2023 content: ""; 2024 display: table; 2025 clear: both; 2035 .image-details .custom-size .description { 2036 margin-left: 0; 2026 2037 } 2027 2038 … … 2050 2061 } 2051 2062 2052 .media-embed .setting { 2063 .media-embed .setting, 2064 .media-embed .setting-group { 2053 2065 width: 100%; 2054 2066 margin: 10px 0; … … 2058 2070 } 2059 2071 2072 .media-embed .setting-group .setting:not(.checkbox-setting) { 2073 margin: 0; 2074 } 2075 2060 2076 .media-embed .setting.has-description { 2061 2077 margin-bottom: 5px; … … 2067 2083 } 2068 2084 2069 .image-details .embed-media-settings .setting { 2085 .image-details .embed-media-settings .setting, 2086 .image-details .embed-media-settings .setting-group { 2070 2087 float: none; 2071 2088 width: auto; … … 2081 2098 2082 2099 .media-embed .setting input[type="text"], 2083 .media-embed .setting textarea { 2100 .media-embed .setting textarea, 2101 .media-embed fieldset { 2084 2102 display: block; 2085 2103 width: 100%; 2086 2104 max-width: 400px; 2087 margin: 1px 0;2088 2105 } 2089 2106 … … 2097 2114 .image-details .embed-media-settings .link-target, 2098 2115 .image-details .embed-media-settings .custom-size, 2116 .image-details .embed-media-settings .setting-group, 2099 2117 .image-details .description { 2100 2118 margin-left: 27%; … … 2108 2126 2109 2127 .image-details .embed-media-settings .link-target { 2110 margin-top: 24px; 2128 margin-top: 16px; 2129 } 2130 2131 .image-details .checkbox-label, 2132 .audio-details .checkbox-label, 2133 .video-details .checkbox-label { 2134 vertical-align: baseline; 2111 2135 } 2112 2136 … … 2116 2140 } 2117 2141 2118 .media-embed .setting span { 2119 display: block; 2120 width: 200px; 2142 .media-embed .setting span, /* Back-compat for pre-5.3 */ 2143 .media-embed .setting .name, 2144 .media-embed .setting-group .name { 2145 display: inline-block; 2121 2146 font-size: 13px; 2122 2147 line-height: 1.84615384; … … 2124 2149 } 2125 2150 2126 .image-details .embed-media-settings .setting span { 2151 .media-embed .setting span { 2152 display: block; /* Back-compat for pre-5.3 */ 2153 width: 200px; /* Back-compat for pre-5.3 */ 2154 } 2155 2156 .image-details .embed-media-settings .setting span, /* Back-compat for pre-5.3 */ 2157 .image-details .embed-media-settings .setting .name { 2127 2158 float: left; 2128 2159 width: 25%; … … 2132 2163 } 2133 2164 2134 .media-embed .setting .button-group {2135 margin: 2px 0;2136 }2137 2138 2165 .media-embed-sidebar { 2139 2166 position: absolute; … … 2147 2174 } 2148 2175 2149 /* Drag & drop on the editor upload */2150 .wp-editor-wrap .uploader-editor {2151 background: rgba(150, 150, 150, 0.9);2152 position: absolute;2153 top: 0;2154 left: 0;2155 width: 100%;2156 height: 100%;2157 z-index: 99998; /* under the toolbar */2158 display: none;2159 text-align: center;2160 }2161 2162 .wp-editor-wrap .uploader-editor-content {2163 border: 1px dashed #fff;2164 position: absolute;2165 top: 10px;2166 left: 10px;2167 right: 10px;2168 bottom: 10px;2169 }2170 2171 .wp-editor-wrap .uploader-editor .uploader-editor-title {2172 position: absolute;2173 top: 50%;2174 left: 0;2175 right: 0;2176 transform: translateY( -50% );2177 font-size: 3em;2178 line-height: 1.3;2179 font-weight: 600;2180 color: #fff;2181 padding: 0;2182 margin: 0;2183 display: none;2184 }2185 2186 .wp-editor-wrap .uploader-editor.droppable {2187 background: rgba(0, 86, 132, 0.9);2188 }2189 2190 .wp-editor-wrap .uploader-editor.droppable .uploader-editor-title {2191 display: block;2192 }2193 2194 2176 /** 2195 * IE7 Fixes2177 * Button groups fix: can be removed together with the Back-compat for pre-5.3 2196 2178 */ 2197 .ie7 .media-frame .attachments-browser { 2198 position: static; 2199 } 2200 2201 .ie7 .media-frame .embed-url input { 2202 margin-top: 4px; 2203 width: 90%; 2204 } 2205 2206 .ie7 .compat-item { 2207 width: 99%; 2208 } 2209 2210 .ie7 .attachment-display-settings { 2211 width: auto; 2212 } 2213 2214 .ie7 .attachment-preview, 2215 .ie7 .attachment-preview .thumbnail { 2216 width: 120px; 2217 height: 120px; 2218 } 2219 2220 .ie7 .media-frame .attachment .describe { 2221 width: 102px; 2222 } 2223 2224 .ie7 .media-sidebar .setting select { 2225 max-width: 55%; 2226 } 2227 2228 .ie7 .media-sidebar .setting input[type="text"], 2229 .ie7 .media-sidebar .setting input[type="password"], 2230 .ie7 .media-sidebar .setting input[type="email"], 2231 .ie7 .media-sidebar .setting input[type="number"], 2232 .ie7 .media-sidebar .setting input[type="search"], 2233 .ie7 .media-sidebar .setting input[type="tel"], 2234 .ie7 .media-sidebar .setting input[type="url"], 2235 .ie7 .media-sidebar .setting textarea { 2236 width: 55%; 2237 } 2238 2239 .ie7 .media-sidebar .setting .link-to-custom { 2240 float: left; 2241 } 2179 .media-frame .setting .button-group { 2180 display: flex; 2181 margin: 0 !important; 2182 max-width: none !important; 2183 } 2242 2184 2243 2185 /** … … 2356 2298 .media-sidebar .setting input, 2357 2299 .media-sidebar .setting textarea, 2358 .media-sidebar .setting span,2300 .media-sidebar .setting .name, 2359 2301 .attachment-details .setting input, 2360 2302 .attachment-details .setting textarea, 2361 .attachment-details .setting span,2303 .attachment-details .setting .name, 2362 2304 .compat-item label span { 2363 2305 float: none; 2364 } 2365 2366 .media-sidebar .setting span, 2367 .attachment-details .setting span, 2306 display: inline-block; 2307 } 2308 2309 .media-sidebar .setting span, /* Back-compat for pre-5.3 */ 2310 .attachment-details .setting span, /* Back-compat for pre-5.3 */ 2311 .media-sidebar .checkbox-label-inline { 2312 float: none; 2313 } 2314 2315 .media-sidebar .setting .select-label-inline { 2316 display: inline; 2317 } 2318 2319 .media-sidebar .setting .name, 2320 .media-sidebar .checkbox-label-inline, 2321 .attachment-details .setting .name, 2368 2322 .compat-item label span { 2369 2323 text-align: inherit; 2370 2324 min-height: 16px; 2371 2325 margin: 0; 2372 padding: 8px 2px 0;2326 padding: 8px 2px 2px; 2373 2327 } 2374 2328 … … 2429 2383 } 2430 2384 2431 .image-details .embed-media-settings .setting { 2385 .image-details .embed-media-settings .setting, 2386 .image-details .embed-media-settings .setting-group { 2432 2387 margin: 20px; 2433 2388 } 2434 2389 2435 .image-details .embed-media-settings .setting span { 2390 .image-details .embed-media-settings .setting span, /* Back-compat for pre-5.3 */ 2391 .image-details .embed-media-settings .setting .name { 2436 2392 float: none; 2437 2393 text-align: left; 2438 2394 width: 100%; 2439 2395 margin-bottom: 4px; 2396 margin-left: 0; 2397 } 2398 2399 .media-modal .legend-inline { 2400 position: static; 2401 transform: none; 2402 margin-left: 0; 2403 margin-bottom: 6px; 2404 } 2405 2406 .image-details .embed-media-settings .setting-group .setting { 2407 margin-bottom: 0; 2440 2408 } 2441 2409 … … 2461 2429 2462 2430 .collection-settings .setting input[type="checkbox"] { 2431 float: none; 2463 2432 margin-top: 0; 2464 2433 } -
trunk/src/wp-includes/media-template.php
r45381 r45499 175 175 ); 176 176 ?> 177 <!--[if lte IE 8]> 178 <style> 179 .attachment:focus { 180 outline: #1e8cbe solid; 181 } 182 .selected.attachment { 183 outline: #1e8cbe solid; 184 } 185 </style> 186 <![endif]--> 177 178 <?php // Template for the media frame: used both in the media grid and in the media modal. ?> 187 179 <script type="text/html" id="tmpl-media-frame"> 188 180 <div class="media-frame-menu"></div> … … 194 186 </script> 195 187 188 <?php // Template for the media modal. ?> 196 189 <script type="text/html" id="tmpl-media-modal"> 197 190 <div tabindex="0" class="<?php echo $class; ?>"> … … 202 195 </script> 203 196 197 <?php // Template for the window uploader, used for example in the media grid. ?> 204 198 <script type="text/html" id="tmpl-uploader-window"> 205 199 <div class="uploader-window-content"> 206 <h1><?php _e( 'Drop files to upload' ); ?></h1> 207 </div> 208 </script> 209 200 <div class="uploader-editor-title"><?php _e( 'Drop files to upload' ); ?></div> 201 </div> 202 </script> 203 204 <?php // Template for the editor uploader. ?> 210 205 <script type="text/html" id="tmpl-uploader-editor"> 211 206 <div class="uploader-editor-content"> … … 214 209 </script> 215 210 211 <?php // Template for the inline uploader, used for example in the Media Library admin page - Add New. ?> 216 212 <script type="text/html" id="tmpl-uploader-inline"> 217 213 <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #> … … 224 220 <# } #> 225 221 <?php if ( ! _device_can_upload() ) : ?> 226 <h2 class="upload-instructions"><?php printf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ), 'https://apps.wordpress.org/' ); ?></h2> 222 <div class="upload-ui"> 223 <h2 class="upload-instructions"><?php _e( 'Your browseer cannot upload files' ); ?></h2> 224 <p><?php printf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ), 'https://apps.wordpress.org/' ); ?></p> 225 </div> 227 226 <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?> 228 <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2> 229 <?php 230 /** This action is documented in wp-admin/includes/media.php */ 231 do_action( 'upload_ui_over_quota' ); 232 ?> 233 227 <div class="upload-ui"> 228 <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2> 229 <?php 230 /** This action is documented in wp-admin/includes/media.php */ 231 do_action( 'upload_ui_over_quota' ); 232 ?> 233 </div> 234 234 <?php else : ?> 235 235 <div class="upload-ui"> 236 <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhereto upload' ); ?></h2>236 <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files to upload' ); ?></h2> 237 237 <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p> 238 238 <button type="button" class="browser button button-hero"><?php _e( 'Select Files' ); ?></button> … … 287 287 </script> 288 288 289 <?php // Template for the view switchers, used for example in the Media Grid. ?> 289 290 <script type="text/html" id="tmpl-media-library-view-switcher"> 290 291 <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ); ?>" class="view-list"> … … 296 297 </script> 297 298 299 <?php // Template for the uploading status UI. ?> 298 300 <script type="text/html" id="tmpl-uploader-status"> 299 301 <h2><?php _e( 'Uploading' ); ?></h2> … … 311 313 </script> 312 314 315 <?php // Template for the uploading status errors. ?> 313 316 <script type="text/html" id="tmpl-uploader-status-error"> 314 317 <span class="upload-error-filename">{{{ data.filename }}}</span> … … 316 319 </script> 317 320 321 <?php // Template for the Attachment Details layout in the media browser. ?> 318 322 <script type="text/html" id="tmpl-edit-attachment-frame"> 319 323 <div class="edit-media-header"> 320 <button class="left dashicons <# if ( ! data.hasPrevious ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( ' Edit previous media item' ); ?></span></button>321 <button class="right dashicons <# if ( ! data.hasNext ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( ' Edit next media item' ); ?></span></button>324 <button class="left dashicons <# if ( ! data.hasPrevious ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( 'Previous' ); ?></span></button> 325 <button class="right dashicons <# if ( ! data.hasNext ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( 'Next' ); ?></span></button> 322 326 </div> 323 327 <div class="media-frame-title"></div> … … 325 329 </script> 326 330 331 <?php // Template for the Attachment Details two columns layout. ?> 327 332 <script type="text/html" id="tmpl-attachment-details-two-column"> 328 333 <div class="attachment-media-view {{ data.orientation }}"> 334 <h2 class="screen-reader-text"><?php _e( 'Attachment Preview' ); ?></h2> 329 335 <div class="thumbnail thumbnail-{{ data.type }}"> 330 336 <# if ( data.uploading ) { #> … … 366 372 <button type="button" class="button edit-attachment"><?php _e( 'Edit Image' ); ?></button> 367 373 <# } else if ( 'pdf' === data.subtype && data.sizes ) { #> 368 < ?php _e( 'Document Preview' ); ?>374 <p><?php _e( 'Document Preview' ); ?></p> 369 375 <# } #> 370 376 </div> … … 372 378 </div> 373 379 <div class="attachment-info"> 374 <span class="settings-save-status" >380 <span class="settings-save-status" role="status"> 375 381 <span class="spinner"></span> 376 382 <span class="saved"><?php esc_html_e( 'Saved.' ); ?></span> 377 383 </span> 378 384 <div class="details"> 385 <h2 class="screen-reader-text"><?php _e( 'Details' ); ?></h2> 379 386 <div class="filename"><strong><?php _e( 'File name:' ); ?></strong> {{ data.filename }}</div> 380 387 <div class="filename"><strong><?php _e( 'File type:' ); ?></strong> {{ data.mime }}</div> … … 419 426 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 420 427 <# if ( 'image' === data.type ) { #> 421 < label class="setting" data-setting="alt">422 < span class="name"><?php _e( 'Alternative Text' ); ?></span>423 <input type="text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />424 </ label>428 <span class="setting has-description" data-setting="alt"> 429 <label for="attachment-details-two-column-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 430 <input type="text" id="attachment-details-two-column-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} /> 431 </span> 425 432 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 426 433 <# } #> 427 434 <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> 428 < labelclass="setting" data-setting="title">429 < span class="name"><?php _e( 'Title' ); ?></span>430 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />431 </ label>435 <span class="setting" data-setting="title"> 436 <label for="attachment-details-two-column-title" class="name"><?php _e( 'Title' ); ?></label> 437 <input type="text" id="attachment-details-two-column-title" value="{{ data.title }}" {{ maybeReadOnly }} /> 438 </span> 432 439 <?php endif; ?> 433 440 <# if ( 'audio' === data.type ) { #> … … 438 445 ) as $key => $label ) : 439 446 ?> 440 < labelclass="setting" data-setting="<?php echo esc_attr( $key ); ?>">441 < span class="name"><?php echo $label; ?></span>442 <input type="text" value="{{ data.<?php echo $key; ?> || data.meta.<?php echo $key; ?> || '' }}" />443 </ label>447 <span class="setting" data-setting="<?php echo esc_attr( $key ); ?>"> 448 <label for="attachment-details-two-column-<?php echo esc_attr( $key ); ?>" class="name"><?php echo $label; ?></label> 449 <input type="text" id="attachment-details-two-column-<?php echo esc_attr( $key ); ?>" value="{{ data.<?php echo $key; ?> || data.meta.<?php echo $key; ?> || '' }}" /> 450 </span> 444 451 <?php endforeach; ?> 445 452 <# } #> 446 < labelclass="setting" data-setting="caption">447 < span class="name"><?php _e( 'Caption' ); ?></span>448 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea>449 </ label>450 < labelclass="setting" data-setting="description">451 < span class="name"><?php _e( 'Description' ); ?></span>452 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea>453 </ label>454 < divclass="setting">453 <span class="setting" data-setting="caption"> 454 <label for="attachment-details-two-column-caption" class="name"><?php _e( 'Caption' ); ?></label> 455 <textarea id="attachment-details-two-column-caption" {{ maybeReadOnly }}>{{ data.caption }}</textarea> 456 </span> 457 <span class="setting" data-setting="description"> 458 <label for="attachment-details-two-column-description" class="name"><?php _e( 'Description' ); ?></label> 459 <textarea id="attachment-details-two-column-description" {{ maybeReadOnly }}>{{ data.description }}</textarea> 460 </span> 461 <span class="setting"> 455 462 <span class="name"><?php _e( 'Uploaded By' ); ?></span> 456 463 <span class="value">{{ data.authorName }}</span> 457 </ div>464 </span> 458 465 <# if ( data.uploadedToTitle ) { #> 459 < divclass="setting">466 <span class="setting"> 460 467 <span class="name"><?php _e( 'Uploaded To' ); ?></span> 461 468 <# if ( data.uploadedToLink ) { #> … … 464 471 <span class="value">{{ data.uploadedToTitle }}</span> 465 472 <# } #> 466 </ div>467 <# } #> 468 < labelclass="setting" data-setting="url">469 < span class="name"><?php _e( 'Copy Link' ); ?></span>470 <input type="text" value="{{ data.url }}" readonly />471 </ label>473 </span> 474 <# } #> 475 <span class="setting" data-setting="url"> 476 <label for="attachment-details-two-column-copy-link" class="name"><?php _e( 'Copy Link' ); ?></label> 477 <input type="text" id="attachment-details-two-column-copy-link" value="{{ data.url }}" readonly /> 478 </span> 472 479 <div class="attachment-compat"></div> 473 480 </div> … … 490 497 <# } #> 491 498 </div> 492 493 </div>494 </script> 495 499 </div> 500 </script> 501 502 <?php // Template for the Attachment "thumbnails" in the Media Grid. ?> 496 503 <script type="text/html" id="tmpl-attachment"> 497 504 <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}"> … … 530 537 if ( 'image' === data.type ) { #> 531 538 <input type="text" value="{{ data.caption }}" class="describe" data-setting="caption" 532 placeholder="<?php esc_attr_e( 'Caption this image…' ); ?>" {{ maybeReadOnly }} /> 539 aria-label="<?php esc_attr_e( 'Caption' ); ?>" 540 placeholder="<?php esc_attr_e( 'Caption…' ); ?>" {{ maybeReadOnly }} /> 533 541 <# } else { #> 534 542 <input type="text" value="{{ data.title }}" class="describe" data-setting="title" 535 543 <# if ( 'video' === data.type ) { #> 536 placeholder="<?php esc_attr_e( 'Describe this video…' ); ?>" 544 aria-label="<?php esc_attr_e( 'Video title' ); ?>" 545 placeholder="<?php esc_attr_e( 'Video title…' ); ?>" 537 546 <# } else if ( 'audio' === data.type ) { #> 538 placeholder="<?php esc_attr_e( 'Describe this audio file…' ); ?>" 547 aria-label="<?php esc_attr_e( 'Audio title' ); ?>" 548 placeholder="<?php esc_attr_e( 'Audio title…' ); ?>" 539 549 <# } else { #> 540 placeholder="<?php esc_attr_e( 'Describe this media file…' ); ?>" 550 aria-label="<?php esc_attr_e( 'Media title' ); ?>" 551 placeholder="<?php esc_attr_e( 'Media title…' ); ?>" 541 552 <# } #> {{ maybeReadOnly }} /> 542 553 <# } … … 544 555 </script> 545 556 557 <?php // Template for the Attachment details, used for example in the sidebar. ?> 546 558 <script type="text/html" id="tmpl-attachment-details"> 547 559 <h2> 548 560 <?php _e( 'Attachment Details' ); ?> 549 <span class="settings-save-status" >561 <span class="settings-save-status" role="status"> 550 562 <span class="spinner"></span> 551 563 <span class="saved"><?php esc_html_e( 'Saved.' ); ?></span> … … 608 620 </div> 609 621 </div> 610 611 622 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 612 623 <# if ( 'image' === data.type ) { #> 613 < label class="setting" data-setting="alt">614 < span class="name"><?php _e( 'Alt Text' ); ?></span>615 <input type="text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />616 </ label>624 <span class="setting has-description" data-setting="alt"> 625 <label for="attachment-details-alt-text" class="name"><?php _e( 'Alt Text' ); ?></label> 626 <input type="text" id="attachment-details-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} /> 627 </span> 617 628 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 618 629 <# } #> 619 630 <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> 620 < labelclass="setting" data-setting="title">621 < span class="name"><?php _e( 'Title' ); ?></span>622 <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} />623 </ label>631 <span class="setting" data-setting="title"> 632 <label for="attachment-details-title" class="name"><?php _e( 'Title' ); ?></label> 633 <input type="text" id="attachment-details-title" value="{{ data.title }}" {{ maybeReadOnly }} /> 634 </span> 624 635 <?php endif; ?> 625 636 <# if ( 'audio' === data.type ) { #> … … 630 641 ) as $key => $label ) : 631 642 ?> 632 < labelclass="setting" data-setting="<?php echo esc_attr( $key ); ?>">633 < span class="name"><?php echo $label; ?></span>634 <input type="text" value="{{ data.<?php echo $key; ?> || data.meta.<?php echo $key; ?> || '' }}" />635 </ label>643 <span class="setting" data-setting="<?php echo esc_attr( $key ); ?>"> 644 <label for="attachment-details-<?php echo esc_attr( $key ); ?>" class="name"><?php echo $label; ?></label> 645 <input type="text" id="attachment-details-<?php echo esc_attr( $key ); ?>" value="{{ data.<?php echo $key; ?> || data.meta.<?php echo $key; ?> || '' }}" /> 646 </span> 636 647 <?php endforeach; ?> 637 648 <# } #> 638 <label class="setting" data-setting="caption"> 639 <span class="name"><?php _e( 'Caption' ); ?></span> 640 <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> 641 </label> 642 <label class="setting" data-setting="description"> 643 <span class="name"><?php _e( 'Description' ); ?></span> 644 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 645 </label> 646 <label class="setting" data-setting="url"> 647 <span class="name"><?php _e( 'Copy Link' ); ?></span> 648 <input type="text" value="{{ data.url }}" readonly /> 649 </label> 650 </script> 651 649 <span class="setting" data-setting="caption"> 650 <label for="attachment-details-caption" class="name"><?php _e( 'Caption' ); ?></label> 651 <textarea id="attachment-details-caption" {{ maybeReadOnly }}>{{ data.caption }}</textarea> 652 </span> 653 <span class="setting" data-setting="description"> 654 <label for="attachment-details-description" class="name"><?php _e( 'Description' ); ?></label> 655 <textarea id="attachment-details-description" {{ maybeReadOnly }}>{{ data.description }}</textarea> 656 </span> 657 <span class="setting" data-setting="url"> 658 <label for="attachment-details-copy-link" class="name"><?php _e( 'Copy Link' ); ?></label> 659 <input type="text" id="attachment-details-copy-link" value="{{ data.url }}" readonly /> 660 </span> 661 </script> 662 663 <?php // Template for the Selection status bar. ?> 652 664 <script type="text/html" id="tmpl-media-selection"> 653 665 <div class="selection-info"> … … 663 675 </script> 664 676 677 <?php // Template for the Attachment display settings, used for example in the sidebar. ?> 665 678 <script type="text/html" id="tmpl-attachment-display-settings"> 666 679 <h2><?php _e( 'Attachment Display Settings' ); ?></h2> 667 680 668 681 <# if ( 'image' === data.type ) { #> 669 < labelclass="setting align">670 < span><?php _e( 'Alignment' ); ?></span>671 <select class="alignment"682 <span class="setting align"> 683 <label for="attachment-display-settings-alignment" class="name"><?php _e( 'Alignment' ); ?></label> 684 <select id="attachment-display-settings-alignment" class="alignment" 672 685 data-setting="align" 673 686 <# if ( data.userSettings ) { #> … … 688 701 </option> 689 702 </select> 703 </span> 704 <# } #> 705 706 <span class="setting"> 707 <label for="attachment-display-settings-link-to" class="name"> 708 <# if ( data.model.canEmbed ) { #> 709 <?php _e( 'Embed or Link' ); ?> 710 <# } else { #> 711 <?php _e( 'Link To' ); ?> 712 <# } #> 690 713 </label> 691 <# } #> 692 693 <div class="setting"> 694 <label> 714 <select id="attachment-display-settings-link-to" class="link-to" 715 data-setting="link" 716 <# if ( data.userSettings && ! data.model.canEmbed ) { #> 717 data-user-setting="urlbutton" 718 <# } #>> 719 720 <# if ( data.model.canEmbed ) { #> 721 <option value="embed" selected> 722 <?php esc_html_e( 'Embed Media Player' ); ?> 723 </option> 724 <option value="file"> 725 <# } else { #> 726 <option value="none" selected> 727 <?php esc_html_e( 'None' ); ?> 728 </option> 729 <option value="file"> 730 <# } #> 695 731 <# if ( data.model.canEmbed ) { #> 696 < span><?php _e( 'Embed or Link' ); ?></span>732 <?php esc_html_e( 'Link to Media File' ); ?> 697 733 <# } else { #> 698 <span><?php _e( 'Link To' ); ?></span> 699 <# } #> 700 701 <select class="link-to" 702 data-setting="link" 703 <# if ( data.userSettings && ! data.model.canEmbed ) { #> 704 data-user-setting="urlbutton" 705 <# } #>> 706 734 <?php esc_html_e( 'Media File' ); ?> 735 <# } #> 736 </option> 737 <option value="post"> 707 738 <# if ( data.model.canEmbed ) { #> 708 <option value="embed" selected> 709 <?php esc_html_e( 'Embed Media Player' ); ?> 710 </option> 711 <option value="file"> 739 <?php esc_html_e( 'Link to Attachment Page' ); ?> 712 740 <# } else { #> 713 <option value="none" selected> 714 <?php esc_html_e( 'None' ); ?> 715 </option> 716 <option value="file"> 717 <# } #> 718 <# if ( data.model.canEmbed ) { #> 719 <?php esc_html_e( 'Link to Media File' ); ?> 720 <# } else { #> 721 <?php esc_html_e( 'Media File' ); ?> 722 <# } #> 723 </option> 724 <option value="post"> 725 <# if ( data.model.canEmbed ) { #> 726 <?php esc_html_e( 'Link to Attachment Page' ); ?> 727 <# } else { #> 728 <?php esc_html_e( 'Attachment Page' ); ?> 729 <# } #> 730 </option> 731 <# if ( 'image' === data.type ) { #> 732 <option value="custom"> 733 <?php esc_html_e( 'Custom URL' ); ?> 734 </option> 735 <# } #> 736 </select> 737 </label> 738 <input type="text" class="link-to-custom" data-setting="linkUrl" /> 739 </div> 741 <?php esc_html_e( 'Attachment Page' ); ?> 742 <# } #> 743 </option> 744 <# if ( 'image' === data.type ) { #> 745 <option value="custom"> 746 <?php esc_html_e( 'Custom URL' ); ?> 747 </option> 748 <# } #> 749 </select> 750 </span> 751 <span class="setting"> 752 <label for="attachment-display-settings-link-to-custom" class="name"><?php _e( 'URL' ); ?></label> 753 <input type="text" id="attachment-display-settings-link-to-custom" class="link-to-custom" data-setting="linkUrl" /> 754 </span> 740 755 741 756 <# if ( 'undefined' !== typeof data.sizes ) { #> 742 < labelclass="setting">743 < span><?php _e( 'Size' ); ?></span>744 <select class="size" name="size"757 <span class="setting"> 758 <label for="attachment-display-settings-size" class="name"><?php _e( 'Size' ); ?></label> 759 <select id="attachment-display-settings-size" class="size" name="size" 745 760 data-setting="size" 746 761 <# if ( data.userSettings ) { #> … … 770 785 <?php endforeach; ?> 771 786 </select> 772 </ label>787 </span> 773 788 <# } #> 774 789 </script> 775 790 791 <?php // Template for the Gallery settings, used for example in the sidebar. ?> 776 792 <script type="text/html" id="tmpl-gallery-settings"> 777 793 <h2><?php _e( 'Gallery Settings' ); ?></h2> 778 794 779 < labelclass="setting">780 < span><?php _e( 'Link To' ); ?></span>781 <select class="link-to"795 <span class="setting"> 796 <label for="gallery-settings-link-to" class="name"><?php _e( 'Link To' ); ?></label> 797 <select id="gallery-settings-link-to" class="link-to" 782 798 data-setting="link" 783 799 <# if ( data.userSettings ) { #> … … 797 813 </option> 798 814 </select> 799 </ label>800 801 < labelclass="setting">802 < span><?php _e( 'Columns' ); ?></span>803 <select class="columns" name="columns"815 </span> 816 817 <span class="setting"> 818 <label for="gallery-settings-columns" class="name select-label-inline"><?php _e( 'Columns' ); ?></label> 819 <select id="gallery-settings-columns" class="columns" name="columns" 804 820 data-setting="columns"> 805 821 <?php for ( $i = 1; $i <= 9; $i++ ) : ?> … … 811 827 <?php endfor; ?> 812 828 </select> 813 </ label>814 815 < labelclass="setting">816 < span><?php _e( 'Random Order' ); ?></span>817 < input type="checkbox" data-setting="_orderbyRandom" />818 </ label>819 820 < labelclass="setting size">821 < span><?php _e( 'Size' ); ?></span>822 <select class="size" name="size"829 </span> 830 831 <span class="setting"> 832 <input type="checkbox" id="gallery-settings-random-order" data-setting="_orderbyRandom" /> 833 <label for="gallery-settings-random-order" class="checkbox-label-inline"><?php _e( 'Random Order' ); ?></label> 834 </span> 835 836 <span class="setting size"> 837 <label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label> 838 <select id="gallery-settings-size" class="size" name="size" 823 839 data-setting="size" 824 840 <# if ( data.userSettings ) { #> … … 845 861 <?php endforeach; ?> 846 862 </select> 847 </label> 848 </script> 849 863 </span> 864 </script> 865 866 <?php // Template for the Playlists settings, used for example in the sidebar. ?> 850 867 <script type="text/html" id="tmpl-playlist-settings"> 851 868 <h2><?php _e( 'Playlist Settings' ); ?></h2> … … 854 871 isVideo = 'video' === data.controller.get('library').props.get('type'); #> 855 872 856 < labelclass="setting">857 <input type="checkbox" data-setting="tracklist" <# if ( emptyModel ) { #>873 <span class="setting"> 874 <input type="checkbox" id="playlist-settings-show-list" data-setting="tracklist" <# if ( emptyModel ) { #> 858 875 checked="checked" 859 876 <# } #> /> 860 <# if ( isVideo ) { #> 861 <span><?php _e( 'Show Video List' ); ?></span> 862 <# } else { #> 863 <span><?php _e( 'Show Tracklist' ); ?></span> 864 <# } #> 865 </label> 877 <label for="playlist-settings-show-list" class="checkbox-label-inline"> 878 <# if ( isVideo ) { #> 879 <?php _e( 'Show Video List' ); ?> 880 <# } else { #> 881 <?php _e( 'Show Tracklist' ); ?> 882 <# } #> 883 </label> 884 </span> 866 885 867 886 <# if ( ! isVideo ) { #> 868 < labelclass="setting">869 <input type="checkbox" data-setting="artists" <# if ( emptyModel ) { #>887 <span class="setting"> 888 <input type="checkbox" id="playlist-settings-show-artist" data-setting="artists" <# if ( emptyModel ) { #> 870 889 checked="checked" 871 890 <# } #> /> 872 <span><?php _e( 'Show Artist Name in Tracklist' ); ?></span> 873 </label> 891 <label for="playlist-settings-show-artist" class="checkbox-label-inline"> 892 <?php _e( 'Show Artist Name in Tracklist' ); ?> 893 </label> 894 </span> 874 895 <# } #> 875 896 876 < labelclass="setting">877 <input type="checkbox" data-setting="images" <# if ( emptyModel ) { #>897 <span class="setting"> 898 <input type="checkbox" id="playlist-settings-show-images" data-setting="images" <# if ( emptyModel ) { #> 878 899 checked="checked" 879 900 <# } #> /> 880 <span><?php _e( 'Show Images' ); ?></span> 881 </label> 882 </script> 883 901 <label for="playlist-settings-show-images" class="checkbox-label-inline"> 902 <?php _e( 'Show Images' ); ?> 903 </label> 904 </span> 905 </script> 906 907 <?php // Template for the "Insert from URL" layout. ?> 884 908 <script type="text/html" id="tmpl-embed-link-settings"> 885 < labelclass="setting link-text">886 < span><?php _e( 'Link Text' ); ?></span>887 <input type="text" class="alignment" data-setting="linkText" />888 </ label>909 <span class="setting link-text"> 910 <label for="embed-link-settings-link-text" class="name"><?php _e( 'Link Text' ); ?></label> 911 <input type="text" id="embed-link-settings-link-text" class="alignment" data-setting="linkText" /> 912 </span> 889 913 <div class="embed-container" style="display: none;"> 890 914 <div class="embed-preview"></div> … … 892 916 </script> 893 917 918 <?php // Template for the "Insert from URL" image preview and details. ?> 894 919 <script type="text/html" id="tmpl-embed-image-settings"> 895 <div class="thumbnail"> 896 <img src="{{ data.model.url }}" draggable="false" alt="" /> 897 </div> 898 899 <label class="setting alt-text has-description"> 900 <span><?php _e( 'Alternative Text' ); ?></span> 901 <input type="text" data-setting="alt" aria-describedby="alt-text-description" /> 902 </label> 920 <div class="wp-clearfix"> 921 <div class="thumbnail"> 922 <img src="{{ data.model.url }}" draggable="false" alt="" /> 923 </div> 924 </div> 925 926 <span class="setting alt-text has-description"> 927 <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 928 <input type="text" id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description" /> 929 </span> 903 930 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 904 931 … … 907 934 if ( ! apply_filters( 'disable_captions', '' ) ) : 908 935 ?> 909 < labelclass="setting caption">910 < span><?php _e( 'Caption' ); ?></span>911 <textarea data-setting="caption" />912 </ label>936 <span class="setting caption"> 937 <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label> 938 <textarea id="embed-image-settings-caption" data-setting="caption" /> 939 </span> 913 940 <?php endif; ?> 914 941 915 <div class="setting align"> 916 <span><?php _e( 'Align' ); ?></span> 917 <div class="button-group button-large" data-setting="align"> 918 <button class="button" value="left"> 919 <?php esc_html_e( 'Left' ); ?> 920 </button> 921 <button class="button" value="center"> 922 <?php esc_html_e( 'Center' ); ?> 923 </button> 924 <button class="button" value="right"> 925 <?php esc_html_e( 'Right' ); ?> 926 </button> 927 <button class="button active" value="none"> 928 <?php esc_html_e( 'None' ); ?> 929 </button> 930 </div> 931 </div> 932 933 <div class="setting link-to"> 934 <span><?php _e( 'Link To' ); ?></span> 935 <div class="button-group button-large" data-setting="link"> 936 <button class="button" value="file"> 937 <?php esc_html_e( 'Image URL' ); ?> 938 </button> 939 <button class="button" value="custom"> 940 <?php esc_html_e( 'Custom URL' ); ?> 941 </button> 942 <button class="button active" value="none"> 943 <?php esc_html_e( 'None' ); ?> 944 </button> 945 </div> 946 <input type="text" class="link-to-custom" data-setting="linkUrl" /> 947 </div> 948 </script> 949 942 <fieldset class="setting-group"> 943 <legend class="name"><?php _e( 'Align' ); ?></legend> 944 <span class="setting align"> 945 <span class="button-group button-large" data-setting="align"> 946 <button class="button" value="left"> 947 <?php esc_html_e( 'Left' ); ?> 948 </button> 949 <button class="button" value="center"> 950 <?php esc_html_e( 'Center' ); ?> 951 </button> 952 <button class="button" value="right"> 953 <?php esc_html_e( 'Right' ); ?> 954 </button> 955 <button class="button active" value="none"> 956 <?php esc_html_e( 'None' ); ?> 957 </button> 958 </span> 959 </span> 960 </fieldset> 961 962 <fieldset class="setting-group"> 963 <legend class="name"><?php _e( 'Link To' ); ?></legend> 964 <span class="setting link-to"> 965 <span class="button-group button-large" data-setting="link"> 966 <button class="button" value="file"> 967 <?php esc_html_e( 'Image URL' ); ?> 968 </button> 969 <button class="button" value="custom"> 970 <?php esc_html_e( 'Custom URL' ); ?> 971 </button> 972 <button class="button active" value="none"> 973 <?php esc_html_e( 'None' ); ?> 974 </button> 975 </span> 976 </span> 977 <span class="setting"> 978 <label for="embed-image-settings-link-to-custom" class="name"><?php _e( 'URL' ); ?></label> 979 <input type="text" id="embed-image-settings-link-to-custom" class="link-to-custom" data-setting="linkUrl" /> 980 </span> 981 </fieldset> 982 </script> 983 984 <?php // Template for the Image details, used for example in the editor. ?> 950 985 <script type="text/html" id="tmpl-image-details"> 951 986 <div class="media-embed"> 952 987 <div class="embed-media-settings"> 953 <div class="column-image">954 <div class="image">955 <img src="{{ data.model.url }}" draggable="false" alt="" />956 957 <# if ( data.attachment && window.imageEdit ) { #>958 <div class="actions">959 <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" />960 <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" />961 </div>962 <# } #>963 </div>964 </div>965 988 <div class="column-settings"> 966 < labelclass="setting alt-text has-description">967 < span><?php _e( 'Alternative Text' ); ?></span>968 <input type="text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" />969 </ label>989 <span class="setting alt-text has-description"> 990 <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 991 <input type="text" id="image-details-alt-text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" /> 992 </span> 970 993 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 971 994 … … 974 997 if ( ! apply_filters( 'disable_captions', '' ) ) : 975 998 ?> 976 < labelclass="setting caption">977 < span><?php _e( 'Caption' ); ?></span>978 <textarea data-setting="caption">{{ data.model.caption }}</textarea>979 </ label>999 <span class="setting caption"> 1000 <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label> 1001 <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea> 1002 </span> 980 1003 <?php endif; ?> 981 1004 982 1005 <h2><?php _e( 'Display Settings' ); ?></h2> 983 <div class="setting align"> 984 <span><?php _e( 'Align' ); ?></span> 985 <div class="button-group button-large" data-setting="align"> 986 <button class="button" value="left"> 987 <?php esc_html_e( 'Left' ); ?> 988 </button> 989 <button class="button" value="center"> 990 <?php esc_html_e( 'Center' ); ?> 991 </button> 992 <button class="button" value="right"> 993 <?php esc_html_e( 'Right' ); ?> 994 </button> 995 <button class="button active" value="none"> 996 <?php esc_html_e( 'None' ); ?> 997 </button> 998 </div> 999 </div> 1006 <fieldset class="setting-group"> 1007 <legend class="legend-inline"><?php _e( 'Align' ); ?></legend> 1008 <span class="setting align"> 1009 <span class="button-group button-large" data-setting="align"> 1010 <button class="button" value="left"> 1011 <?php esc_html_e( 'Left' ); ?> 1012 </button> 1013 <button class="button" value="center"> 1014 <?php esc_html_e( 'Center' ); ?> 1015 </button> 1016 <button class="button" value="right"> 1017 <?php esc_html_e( 'Right' ); ?> 1018 </button> 1019 <button class="button active" value="none"> 1020 <?php esc_html_e( 'None' ); ?> 1021 </button> 1022 </span> 1023 </span> 1024 </fieldset> 1000 1025 1001 1026 <# if ( data.attachment ) { #> 1002 1027 <# if ( 'undefined' !== typeof data.attachment.sizes ) { #> 1003 < labelclass="setting size">1004 < span><?php _e( 'Size' ); ?></span>1005 <select class="size" name="size"1028 <span class="setting size"> 1029 <label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label> 1030 <select id="image-details-size" class="size" name="size" 1006 1031 data-setting="size" 1007 1032 <# if ( data.userSettings ) { #> … … 1034 1059 </option> 1035 1060 </select> 1036 </ label>1061 </span> 1037 1062 <# } #> 1038 <div class="custom-size<# if ( data.model.size !== 'custom' ) { #> hidden<# } #>"> 1039 <label><span><?php _e( 'Width' ); ?> <small>(px)</small></span> <input data-setting="customWidth" type="number" step="1" value="{{ data.model.customWidth }}" /></label><span class="sep">×</span><label><span><?php _e( 'Height' ); ?> <small>(px)</small></span><input data-setting="customHeight" type="number" step="1" value="{{ data.model.customHeight }}" /></label> 1063 <div class="custom-size wp-clearfix<# if ( data.model.size !== 'custom' ) { #> hidden<# } #>"> 1064 <span class="custom-size-setting"> 1065 <label for="image-details-size-width"><?php _e( 'Width' ); ?></label> 1066 <input type="number" id="image-details-size-width" aria-describedby="image-size-desc" data-setting="customWidth" step="1" value="{{ data.model.customWidth }}" /> 1067 </span> 1068 <span class="sep" aria-hidden="true">×</span> 1069 <span class="custom-size-setting"> 1070 <label for="image-details-size-height"><?php _e( 'Height' ); ?></label> 1071 <input type="number" id="image-details-size-height" aria-describedby="image-size-desc" data-setting="customHeight" step="1" value="{{ data.model.customHeight }}" /> 1072 </span> 1073 <p id="image-size-desc" class="description"><?php _e( 'Image size in pixels' ); ?></p> 1040 1074 </div> 1041 1075 <# } #> 1042 1076 1043 < divclass="setting link-to">1044 < span><?php _e( 'Link To' ); ?></span>1045 <select data-setting="link">1077 <span class="setting link-to"> 1078 <label for="image-details-link-to" class="name"><?php _e( 'Link To' ); ?></label> 1079 <select id="image-details-link-to" data-setting="link"> 1046 1080 <# if ( data.attachment ) { #> 1047 1081 <option value="file"> … … 1063 1097 </option> 1064 1098 </select> 1065 <input type="text" class="link-to-custom" data-setting="linkUrl" /> 1066 </div> 1099 </span> 1100 <span class="setting"> 1101 <label for="image-details-link-to-custom" class="name"><?php _e( 'URL' ); ?></label> 1102 <input type="text" id="image-details-link-to-custom" class="link-to-custom" data-setting="linkUrl" /> 1103 </span> 1104 1067 1105 <div class="advanced-section"> 1068 1106 <h2><button type="button" class="button-link advanced-toggle"><?php _e( 'Advanced Options' ); ?></button></h2> 1069 1107 <div class="advanced-settings hidden"> 1070 1108 <div class="advanced-image"> 1071 < labelclass="setting title-text">1072 < span><?php _e( 'Image Title Attribute' ); ?></span>1073 <input type="text" data-setting="title" value="{{ data.model.title }}" />1074 </ label>1075 < labelclass="setting extra-classes">1076 < span><?php _e( 'Image CSS Class' ); ?></span>1077 <input type="text" data-setting="extraClasses" value="{{ data.model.extraClasses }}" />1078 </ label>1109 <span class="setting title-text"> 1110 <label for="image-details-title-attribute" class="name"><?php _e( 'Image Title Attribute' ); ?></label> 1111 <input type="text" id="image-details-title-attribute" data-setting="title" value="{{ data.model.title }}" /> 1112 </span> 1113 <span class="setting extra-classes"> 1114 <label for="image-details-css-class" class="name"><?php _e( 'Image CSS Class' ); ?></label> 1115 <input type="text" id="image-details-css-class" data-setting="extraClasses" value="{{ data.model.extraClasses }}" /> 1116 </span> 1079 1117 </div> 1080 1118 <div class="advanced-link"> 1081 <div class="setting link-target"> 1082 <label><input type="checkbox" data-setting="linkTargetBlank" value="_blank" <# if ( data.model.linkTargetBlank ) { #>checked="checked"<# } #>><?php _e( 'Open link in a new tab' ); ?></label> 1083 </div> 1084 <label class="setting link-rel"> 1085 <span><?php _e( 'Link Rel' ); ?></span> 1086 <input type="text" data-setting="linkRel" value="{{ data.model.linkRel }}" /> 1087 </label> 1088 <label class="setting link-class-name"> 1089 <span><?php _e( 'Link CSS Class' ); ?></span> 1090 <input type="text" data-setting="linkClassName" value="{{ data.model.linkClassName }}" /> 1091 </label> 1119 <span class="setting link-target"> 1120 <input type="checkbox" id="image-details-link-target" data-setting="linkTargetBlank" value="_blank" <# if ( data.model.linkTargetBlank ) { #>checked="checked"<# } #>> 1121 <label for="image-details-link-target" class="checkbox-label"><?php _e( 'Open link in a new tab' ); ?></label> 1122 </span> 1123 <span class="setting link-rel"> 1124 <label for="image-details-link-rel" class="name"><?php _e( 'Link Rel' ); ?></label> 1125 <input type="text" id="image-details-link-rel" data-setting="linkRel" value="{{ data.model.linkRel }}" /> 1126 </span> 1127 <span class="setting link-class-name"> 1128 <label for="image-details-link-css-class" class="name"><?php _e( 'Link CSS Class' ); ?></label> 1129 <input type="text" id="image-details-link-css-class" data-setting="linkClassName" value="{{ data.model.linkClassName }}" /> 1130 </span> 1092 1131 </div> 1093 1132 </div> 1094 1133 </div> 1095 1134 </div> 1096 </div> 1097 </div> 1098 </script> 1099 1135 <div class="column-image"> 1136 <div class="image"> 1137 <img src="{{ data.model.url }}" draggable="false" alt="" /> 1138 <# if ( data.attachment && window.imageEdit ) { #> 1139 <div class="actions"> 1140 <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" /> 1141 <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" /> 1142 </div> 1143 <# } #> 1144 </div> 1145 </div> 1146 </div> 1147 </div> 1148 </script> 1149 1150 <?php // Template for the Image Editor layout. ?> 1100 1151 <script type="text/html" id="tmpl-image-editor"> 1101 1152 <div id="media-head-{{ data.id }}"></div> … … 1103 1154 </script> 1104 1155 1156 <?php // Template for an embedded Audio details. ?> 1105 1157 <script type="text/html" id="tmpl-audio-details"> 1106 1158 <# var ext, html5types = { … … 1120 1172 } 1121 1173 #> 1122 < divclass="setting">1123 <label for="audio- source"><?php _e( 'URL' ); ?></label>1124 <input type="text" id="audio- source" readonly data-setting="src" value="{{ data.model.src }}" />1174 <span class="setting"> 1175 <label for="audio-details-source" class="name"><?php _e( 'caca URL' ); ?></label> 1176 <input type="text" id="audio-details-source" readonly data-setting="src" value="{{ data.model.src }}" /> 1125 1177 <button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button> 1126 </ div>1178 </span> 1127 1179 <# } #> 1128 1180 <?php … … 1135 1187 } 1136 1188 #> 1137 < divclass="setting">1138 <label for=" <?php echo $type . '-source'; ?>"><?php echo strtoupper( $type ); ?></label>1139 <input type="text" id=" <?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />1189 <span class="setting"> 1190 <label for="audio-details-<?php echo $type . '-source'; ?>" class="name"><?php echo strtoupper( $type ); ?></label> 1191 <input type="text" id="audio-details-<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" /> 1140 1192 <button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button> 1141 </ div>1193 </span> 1142 1194 <# } #> 1143 1195 <?php endforeach ?> 1144 1196 1145 1197 <# if ( ! _.isEmpty( html5types ) ) { #> 1146 <div class="setting"> 1147 <span><?php _e( 'Add alternate sources for maximum HTML5 playback:' ); ?></span> 1148 <div class="button-large"> 1149 <# _.each( html5types, function (mime, type) { #> 1150 <button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button> 1151 <# } ) #> 1152 </div> 1153 </div> 1154 <# } #> 1155 1156 <div class="setting preload"> 1157 <span><?php _e( 'Preload' ); ?></span> 1158 <div class="button-group button-large" data-setting="preload"> 1159 <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button> 1160 <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button> 1161 <button class="button active" value="none"><?php _e( 'None' ); ?></button> 1162 </div> 1163 </div> 1164 1165 <label class="setting checkbox-setting autoplay"> 1166 <input type="checkbox" data-setting="autoplay" /> 1167 <span><?php _e( 'Autoplay' ); ?></span> 1168 </label> 1169 1170 <label class="setting checkbox-setting"> 1171 <input type="checkbox" data-setting="loop" /> 1172 <span><?php _e( 'Loop' ); ?></span> 1173 </label> 1174 </div> 1175 </div> 1176 </script> 1177 1198 <fieldset class="setting-group"> 1199 <legend class="name"><?php _e( 'Add alternate sources for maximum HTML5 playback' ); ?></legend> 1200 <span class="setting"> 1201 <span class="button-large"> 1202 <# _.each( html5types, function (mime, type) { #> 1203 <button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button> 1204 <# } ) #> 1205 </span> 1206 </span> 1207 </fieldset> 1208 <# } #> 1209 1210 <fieldset class="setting-group"> 1211 <legend class="name"><?php _e( 'Preload' ); ?></legend> 1212 <span class="setting preload"> 1213 <span class="button-group button-large" data-setting="preload"> 1214 <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button> 1215 <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button> 1216 <button class="button active" value="none"><?php _e( 'None' ); ?></button> 1217 </span> 1218 </span> 1219 </fieldset> 1220 1221 <span class="setting-group"> 1222 <span class="setting checkbox-setting autoplay"> 1223 <input type="checkbox" id="audio-details-autoplay" data-setting="autoplay" /> 1224 <label for="audio-details-autoplay" class="checkbox-label"><?php _e( 'Autoplay' ); ?></label> 1225 </span> 1226 1227 <span class="setting checkbox-setting"> 1228 <input type="checkbox" id="audio-details-loop" data-setting="loop" /> 1229 <label for="audio-details-loop" class="checkbox-label"><?php _e( 'Loop' ); ?></label> 1230 </span> 1231 </span> 1232 </div> 1233 </div> 1234 </script> 1235 1236 <?php // Template for an embedded Video details. ?> 1178 1237 <script type="text/html" id="tmpl-video-details"> 1179 1238 <# var ext, html5types = { … … 1204 1263 } 1205 1264 #> 1206 < divclass="setting">1207 <label for="video- source"><?php _e( 'URL' ); ?></label>1208 <input type="text" id="video- source" readonly data-setting="src" value="{{ data.model.src }}" />1265 <span class="setting"> 1266 <label for="video-details-source" class="name"><?php _e( 'URL' ); ?></label> 1267 <input type="text" id="video-details-source" readonly data-setting="src" value="{{ data.model.src }}" /> 1209 1268 <button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button> 1210 </ div>1269 </span> 1211 1270 <# } #> 1212 1271 <?php … … 1218 1277 } 1219 1278 #> 1220 < divclass="setting">1221 <label for=" <?php echo $type . '-source'; ?>"><?php echo strtoupper( $type ); ?></label>1222 <input type="text" id=" <?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />1279 <span class="setting"> 1280 <label for="video-details-<?php echo $type . '-source'; ?>" class="name"><?php echo strtoupper( $type ); ?></label> 1281 <input type="text" id="video-details-<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" /> 1223 1282 <button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button> 1224 </ div>1283 </span> 1225 1284 <# } #> 1226 1285 <?php endforeach ?> … … 1228 1287 1229 1288 <# if ( ! _.isEmpty( html5types ) ) { #> 1230 <div class="setting"> 1231 <span><?php _e( 'Add alternate sources for maximum HTML5 playback:' ); ?></span> 1232 <div class="button-large"> 1233 <# _.each( html5types, function (mime, type) { #> 1234 <button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button> 1235 <# } ) #> 1236 </div> 1237 </div> 1289 <fieldset class="setting-group"> 1290 <legend class="name"><?php _e( 'Add alternate sources for maximum HTML5 playback' ); ?></legend> 1291 <span class="setting"> 1292 <span class="button-large"> 1293 <# _.each( html5types, function (mime, type) { #> 1294 <button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button> 1295 <# } ) #> 1296 </span> 1297 </span> 1298 </fieldset> 1238 1299 <# } #> 1239 1300 1240 1301 <# if ( ! _.isEmpty( data.model.poster ) ) { #> 1241 < divclass="setting">1242 <label for=" poster-image"><?php _e( 'Poster Image' ); ?></label>1243 <input type="text" id=" poster-image" readonly data-setting="poster" value="{{ data.model.poster }}" />1302 <span class="setting"> 1303 <label for="video-details-poster-image" class="name"><?php _e( 'Poster Image' ); ?></label> 1304 <input type="text" id="video-details-poster-image" readonly data-setting="poster" value="{{ data.model.poster }}" /> 1244 1305 <button type="button" class="button-link remove-setting"><?php _e( 'Remove poster image' ); ?></button> 1245 </div> 1246 <# } #> 1247 <div class="setting preload"> 1248 <span><?php _e( 'Preload' ); ?></span> 1249 <div class="button-group button-large" data-setting="preload"> 1250 <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button> 1251 <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button> 1252 <button class="button active" value="none"><?php _e( 'None' ); ?></button> 1253 </div> 1254 </div> 1255 1256 <label class="setting checkbox-setting autoplay"> 1257 <input type="checkbox" data-setting="autoplay" /> 1258 <span><?php _e( 'Autoplay' ); ?></span> 1259 </label> 1260 1261 <label class="setting checkbox-setting"> 1262 <input type="checkbox" data-setting="loop" /> 1263 <span><?php _e( 'Loop' ); ?></span> 1264 </label> 1265 1266 <div class="setting" data-setting="content"> 1306 </span> 1307 <# } #> 1308 1309 <fieldset class="setting-group"> 1310 <legend class="name"><?php _e( 'Preload' ); ?></legend> 1311 <span class="setting preload"> 1312 <span class="button-group button-large" data-setting="preload"> 1313 <button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button> 1314 <button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button> 1315 <button class="button active" value="none"><?php _e( 'None' ); ?></button> 1316 </span> 1317 </span> 1318 </fieldset> 1319 1320 <span class="setting-group"> 1321 <span class="setting checkbox-setting autoplay"> 1322 <input type="checkbox" id="video-details-autoplay" data-setting="autoplay" /> 1323 <label for="video-details-autoplay" class="checkbox-label"><?php _e( 'Autoplay' ); ?></label> 1324 </span> 1325 1326 <span class="setting checkbox-setting"> 1327 <input type="checkbox" id="video-details-loop" data-setting="loop" /> 1328 <label for="video-details-loop" class="checkbox-label"><?php _e( 'Loop' ); ?></label> 1329 </span> 1330 </span> 1331 1332 <span class="setting" data-setting="content"> 1267 1333 <# 1268 1334 var content = ''; … … 1271 1337 _.each( tracks.toArray(), function (track) { 1272 1338 content += track.outerHTML; #> 1273 <label for="video- track"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></label>1274 <input class="content-track" type="text" id="video- track" readonly value="{{ track.outerHTML }}" />1339 <label for="video-details-track" class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></label> 1340 <input class="content-track" type="text" id="video-details-track" readonly value="{{ track.outerHTML }}" /> 1275 1341 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button> 1276 1342 <# } ); #> 1277 1343 <# } else { #> 1278 <span ><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span>1344 <span class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span><br /> 1279 1345 <em><?php _e( 'There are no associated subtitles.' ); ?></em> 1280 1346 <# } #> 1281 1347 <textarea class="hidden content-setting">{{ content }}</textarea> 1282 </div> 1283 </div> 1284 </div> 1285 </script> 1286 1348 </span> 1349 </div> 1350 </div> 1351 </script> 1352 1353 <?php // Template for a Gallery within the editor. ?> 1287 1354 <script type="text/html" id="tmpl-editor-gallery"> 1288 1355 <# if ( data.attachments.length ) { #> … … 1315 1382 </script> 1316 1383 1384 <?php // Template for the Crop area layout, used for example in the Customizer. ?> 1317 1385 <script type="text/html" id="tmpl-crop-content"> 1318 1386 <img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>"> … … 1320 1388 </script> 1321 1389 1390 <?php // Template for the Site Icon preview, used for example in the Customizer. ?> 1322 1391 <script type="text/html" id="tmpl-site-icon-preview"> 1323 1392 <h2><?php _e( 'Preview' ); ?></h2>
Note: See TracChangeset
for help on using the changeset viewer.