Ticket #38759: 38759.diff
File 38759.diff, 5.9 KB (added by , 7 years ago) |
---|
-
src/wp-includes/media-template.php
408 408 <span class="name"><?php _e('Description'); ?></span> 409 409 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 410 410 </label> 411 < labelclass="setting">411 <p class="setting"> 412 412 <span class="name"><?php _e( 'Uploaded By' ); ?></span> 413 413 <span class="value">{{ data.authorName }}</span> 414 </ label>414 </p> 415 415 <# if ( data.uploadedToTitle ) { #> 416 < labelclass="setting">416 <p class="setting"> 417 417 <span class="name"><?php _e( 'Uploaded To' ); ?></span> 418 418 <# if ( data.uploadedToLink ) { #> 419 419 <span class="value"><a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a></span> … … 420 420 <# } else { #> 421 421 <span class="value">{{ data.uploadedToTitle }}</span> 422 422 <# } #> 423 </ label>423 </p> 424 424 <# } #> 425 425 <div class="attachment-compat"></div> 426 426 </div> … … 1045 1045 delete html5types[ ext ]; 1046 1046 } 1047 1047 #> 1048 < labelclass="setting">1049 < span>SRC</span>1050 <input type="text" disabled="disabled"data-setting="src" value="{{ data.model.src }}" />1048 <div class="setting"> 1049 <label for="audio-source"><?php _e( 'URL' ); ?></label> 1050 <input type="text" id="audio-source" readonly data-setting="src" value="{{ data.model.src }}" /> 1051 1051 <button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button> 1052 </ label>1052 </div> 1053 1053 <# } #> 1054 1054 <?php 1055 1055 … … 1059 1059 delete html5types.<?php echo $type ?>; 1060 1060 } 1061 1061 #> 1062 < labelclass="setting">1063 < span><?php echo strtoupper( $type ) ?></span>1064 <input type="text" disabled="disabled"data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" />1062 <div class="setting"> 1063 <label for="<?php echo $type . '-source' ?>"><?php echo strtoupper( $type ) ?></span> 1064 <input type="text" id="<?php echo $type . '-source' ?>" readonly data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" /> 1065 1065 <button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button> 1066 </ label>1066 </div> 1067 1067 <# } #> 1068 1068 <?php endforeach ?> 1069 1069 … … 1128 1128 delete html5types[ ext ]; 1129 1129 } 1130 1130 #> 1131 < labelclass="setting">1132 < span>SRC</span>1133 <input type="text" disabled="disabled"data-setting="src" value="{{ data.model.src }}" />1131 <div class="setting"> 1132 <label for="video-source"><?php _e( 'URL' ); ?></label> 1133 <input type="text" id="video-source" readonly data-setting="src" value="{{ data.model.src }}" /> 1134 1134 <button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button> 1135 </ label>1135 </div> 1136 1136 <# } #> 1137 1137 <?php foreach ( $video_types as $type ): 1138 1138 ?><# if ( ! _.isEmpty( data.model.<?php echo $type ?> ) ) { … … 1140 1140 delete html5types.<?php echo $type ?>; 1141 1141 } 1142 1142 #> 1143 < labelclass="setting">1144 < span><?php echo strtoupper( $type ) ?></span>1145 <input type="text" disabled="disabled"data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" />1143 <div class="setting"> 1144 <label for="<?php echo $type . '-source' ?>"><?php echo strtoupper( $type ) ?></label> 1145 <input type="text" id="<?php echo $type . '-source' ?>" readonly data-setting="<?php echo $type ?>" value="{{ data.model.<?php echo $type ?> }}" /> 1146 1146 <button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button> 1147 </ label>1147 </div> 1148 1148 <# } #> 1149 1149 <?php endforeach ?> 1150 1150 </div> … … 1161 1161 <# } #> 1162 1162 1163 1163 <# if ( ! _.isEmpty( data.model.poster ) ) { #> 1164 < labelclass="setting">1165 < span><?php _e( 'Poster Image' ); ?></span>1166 <input type="text" disabled="disabled"data-setting="poster" value="{{ data.model.poster }}" />1164 <div class="setting"> 1165 <label for="poster-image"><?php _e( 'Poster Image' ); ?></label> 1166 <input type="text" id="poster-image" readonly data-setting="poster" value="{{ data.model.poster }}" /> 1167 1167 <button type="button" class="button-link remove-setting"><?php _e( 'Remove poster image' ); ?></button> 1168 </ label>1168 </div> 1169 1169 <# } #> 1170 1170 <div class="setting preload"> 1171 1171 <span><?php _e( 'Preload' ); ?></span> … … 1186 1186 <span><?php _e( 'Loop' ); ?></span> 1187 1187 </label> 1188 1188 1189 <label class="setting" data-setting="content"> 1190 <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 1189 <div class="setting" data-setting="content"> 1191 1190 <# 1192 1191 var content = ''; 1193 1192 if ( ! _.isEmpty( data.model.content ) ) { … … 1194 1193 var tracks = jQuery( data.model.content ).filter( 'track' ); 1195 1194 _.each( tracks.toArray(), function (track) { 1196 1195 content += track.outerHTML; #> 1197 <p> 1198 <input class="content-track" type="text" value="{{ track.outerHTML }}" /> 1199 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button> 1200 </p> 1196 <label for="video-track"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 1197 <input class="content-track" type="text" id="video-track" readonly value="{{ track.outerHTML }}" /> 1198 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button> 1201 1199 <# } ); #> 1202 1200 <# } else { #> 1201 <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 1203 1202 <em><?php _e( 'There are no associated subtitles.' ); ?></em> 1204 1203 <# } #> 1205 1204 <textarea class="hidden content-setting">{{ content }}</textarea> 1206 </ label>1205 </div> 1207 1206 </div> 1208 1207 </div> 1209 1208 </script>