Changeset 42444 for trunk/src/wp-includes/media-template.php
- Timestamp:
- 01/14/2018 04:38:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r42343 r42444 76 76 } else { 77 77 h = data.model.height; 78 78 } 79 79 80 80 if ( w ) { … … 121 121 foreach ( array( 'autoplay', 'loop' ) as $attr ) : 122 122 ?> 123 123 if ( ! _.isUndefined( data.model.<?php echo $attr; ?> ) && data.model.<?php echo $attr; ?> ) { 124 124 #> <?php echo $attr; ?><# 125 125 } … … 435 435 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 436 436 </label> 437 < labelclass="setting">437 <div class="setting"> 438 438 <span class="name"><?php _e( 'Uploaded By' ); ?></span> 439 439 <span class="value">{{ data.authorName }}</span> 440 </ label>440 </div> 441 441 <# if ( data.uploadedToTitle ) { #> 442 < labelclass="setting">442 <div class="setting"> 443 443 <span class="name"><?php _e( 'Uploaded To' ); ?></span> 444 444 <# if ( data.uploadedToLink ) { #> … … 447 447 <span class="value">{{ data.uploadedToTitle }}</span> 448 448 <# } #> 449 </ label>449 </div> 450 450 <# } #> 451 451 <div class="attachment-compat"></div> … … 1085 1085 } 1086 1086 #> 1087 < labelclass="setting">1088 < span>SRC</span>1089 <input type="text" disabled="disabled"data-setting="src" value="{{ data.model.src }}" />1087 <div class="setting"> 1088 <label for="audio-source"><?php _e( 'URL' ); ?></label> 1089 <input type="text" id="audio-source" readonly data-setting="src" value="{{ data.model.src }}" /> 1090 1090 <button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button> 1091 </ label>1091 </div> 1092 1092 <# } #> 1093 1093 <?php … … 1100 1100 } 1101 1101 #> 1102 < labelclass="setting">1103 < span><?php echo strtoupper( $type ); ?></span>1104 <input type="text" disabled="disabled"data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />1102 <div class="setting"> 1103 <label for="<?php echo $type . '-source'; ?>"><?php echo strtoupper( $type ); ?></span> 1104 <input type="text" id="<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" /> 1105 1105 <button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button> 1106 </ label>1106 </div> 1107 1107 <# } #> 1108 1108 <?php endforeach ?> … … 1169 1169 } 1170 1170 #> 1171 < labelclass="setting">1172 < span>SRC</span>1173 <input type="text" disabled="disabled"data-setting="src" value="{{ data.model.src }}" />1171 <div class="setting"> 1172 <label for="video-source"><?php _e( 'URL' ); ?></label> 1173 <input type="text" id="video-source" readonly data-setting="src" value="{{ data.model.src }}" /> 1174 1174 <button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button> 1175 </ label>1175 </div> 1176 1176 <# } #> 1177 1177 <?php … … 1183 1183 } 1184 1184 #> 1185 < labelclass="setting">1186 < span><?php echo strtoupper( $type ); ?></span>1187 <input type="text" disabled="disabled"data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />1185 <div class="setting"> 1186 <label for="<?php echo $type . '-source'; ?>"><?php echo strtoupper( $type ); ?></label> 1187 <input type="text" id="<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" /> 1188 1188 <button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button> 1189 </ label>1189 </div> 1190 1190 <# } #> 1191 1191 <?php endforeach ?> … … 1204 1204 1205 1205 <# if ( ! _.isEmpty( data.model.poster ) ) { #> 1206 < labelclass="setting">1207 < span><?php _e( 'Poster Image' ); ?></span>1208 <input type="text" disabled="disabled"data-setting="poster" value="{{ data.model.poster }}" />1206 <div class="setting"> 1207 <label for="poster-image"><?php _e( 'Poster Image' ); ?></label> 1208 <input type="text" id="poster-image" readonly data-setting="poster" value="{{ data.model.poster }}" /> 1209 1209 <button type="button" class="button-link remove-setting"><?php _e( 'Remove poster image' ); ?></button> 1210 </ label>1210 </div> 1211 1211 <# } #> 1212 1212 <div class="setting preload"> … … 1229 1229 </label> 1230 1230 1231 <label class="setting" data-setting="content"> 1232 <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 1231 <div class="setting" data-setting="content"> 1233 1232 <# 1234 1233 var content = ''; … … 1237 1236 _.each( tracks.toArray(), function (track) { 1238 1237 content += track.outerHTML; #> 1239 <p> 1240 <input class="content-track" type="text" value="{{ track.outerHTML }}" /> 1241 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button> 1242 </p> 1238 <label for="video-track"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 1239 <input class="content-track" type="text" id="video-track" readonly value="{{ track.outerHTML }}" /> 1240 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button> 1243 1241 <# } ); #> 1244 1242 <# } else { #> 1243 <span><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span> 1245 1244 <em><?php _e( 'There are no associated subtitles.' ); ?></em> 1246 1245 <# } #> 1247 1246 <textarea class="hidden content-setting">{{ content }}</textarea> 1248 </ label>1247 </div> 1249 1248 </div> 1250 1249 </div>
Note: See TracChangeset
for help on using the changeset viewer.