Changeset 43829
- Timestamp:
- 10/26/2018 07:13:25 AM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-includes/media-template.php
r43718 r43829 70 70 } else { 71 71 h = data.model.height; 72 72 } 73 73 74 74 if ( w ) { … … 104 104 ?><# 105 105 <?php foreach ( array( 'autoplay', 'loop' ) as $attr ): 106 ?> if ( ! _.isUndefined( data.model.<?php echo $attr ?> ) && data.model.<?php echo $attr?> ) {107 #> <?php echo $attr ?><#106 ?> if ( ! _.isUndefined( data.model.<?php echo $attr; ?> ) && data.model.<?php echo $attr; ?> ) { 107 #> <?php echo $attr; ?><# 108 108 } 109 109 <?php endforeach ?>#> … … 409 409 <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> 410 410 </label> 411 < labelclass="setting">411 <div class="setting"> 412 412 <span class="name"><?php _e( 'Uploaded By' ); ?></span> 413 413 <span class="value">{{ data.authorName }}</span> 414 </ label>414 </div> 415 415 <# if ( data.uploadedToTitle ) { #> 416 < labelclass="setting">416 <div class="setting"> 417 417 <span class="name"><?php _e( 'Uploaded To' ); ?></span> 418 418 <# if ( data.uploadedToLink ) { #> … … 421 421 <span class="value">{{ data.uploadedToTitle }}</span> 422 422 <# } #> 423 </ label>423 </div> 424 424 <# } #> 425 425 <div class="attachment-compat"></div> … … 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 … … 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 ?> … … 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 ): … … 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 ?> … … 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"> … … 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 = ''; … … 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>
Note: See TracChangeset
for help on using the changeset viewer.