Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu...
File: media-template.php
<option value="<?php echo esc_attr( $size ); ?>">
[1000] Fix | Delete
<?php echo esc_html( $label ); ?>
[1001] Fix | Delete
</option>
[1002] Fix | Delete
<?php endforeach; ?>
[1003] Fix | Delete
</select>
[1004] Fix | Delete
</span>
[1005] Fix | Delete
</script>
[1006] Fix | Delete
[1007] Fix | Delete
<?php // Template for the Playlists settings, used for example in the sidebar. ?>
[1008] Fix | Delete
<script type="text/html" id="tmpl-playlist-settings">
[1009] Fix | Delete
<h2><?php _e( 'Playlist Settings' ); ?></h2>
[1010] Fix | Delete
[1011] Fix | Delete
<# var emptyModel = _.isEmpty( data.model ),
[1012] Fix | Delete
isVideo = 'video' === data.controller.get('library').props.get('type'); #>
[1013] Fix | Delete
[1014] Fix | Delete
<span class="setting">
[1015] Fix | Delete
<input type="checkbox" id="playlist-settings-show-list" data-setting="tracklist" <# if ( emptyModel ) { #>
[1016] Fix | Delete
checked="checked"
[1017] Fix | Delete
<# } #> />
[1018] Fix | Delete
<label for="playlist-settings-show-list" class="checkbox-label-inline">
[1019] Fix | Delete
<# if ( isVideo ) { #>
[1020] Fix | Delete
<?php _e( 'Show Video List' ); ?>
[1021] Fix | Delete
<# } else { #>
[1022] Fix | Delete
<?php _e( 'Show Tracklist' ); ?>
[1023] Fix | Delete
<# } #>
[1024] Fix | Delete
</label>
[1025] Fix | Delete
</span>
[1026] Fix | Delete
[1027] Fix | Delete
<# if ( ! isVideo ) { #>
[1028] Fix | Delete
<span class="setting">
[1029] Fix | Delete
<input type="checkbox" id="playlist-settings-show-artist" data-setting="artists" <# if ( emptyModel ) { #>
[1030] Fix | Delete
checked="checked"
[1031] Fix | Delete
<# } #> />
[1032] Fix | Delete
<label for="playlist-settings-show-artist" class="checkbox-label-inline">
[1033] Fix | Delete
<?php _e( 'Show Artist Name in Tracklist' ); ?>
[1034] Fix | Delete
</label>
[1035] Fix | Delete
</span>
[1036] Fix | Delete
<# } #>
[1037] Fix | Delete
[1038] Fix | Delete
<span class="setting">
[1039] Fix | Delete
<input type="checkbox" id="playlist-settings-show-images" data-setting="images" <# if ( emptyModel ) { #>
[1040] Fix | Delete
checked="checked"
[1041] Fix | Delete
<# } #> />
[1042] Fix | Delete
<label for="playlist-settings-show-images" class="checkbox-label-inline">
[1043] Fix | Delete
<?php _e( 'Show Images' ); ?>
[1044] Fix | Delete
</label>
[1045] Fix | Delete
</span>
[1046] Fix | Delete
</script>
[1047] Fix | Delete
[1048] Fix | Delete
<?php // Template for the "Insert from URL" layout. ?>
[1049] Fix | Delete
<script type="text/html" id="tmpl-embed-link-settings">
[1050] Fix | Delete
<span class="setting link-text">
[1051] Fix | Delete
<label for="embed-link-settings-link-text" class="name"><?php _e( 'Link Text' ); ?></label>
[1052] Fix | Delete
<input type="text" id="embed-link-settings-link-text" class="alignment" data-setting="linkText" />
[1053] Fix | Delete
</span>
[1054] Fix | Delete
<div class="embed-container" style="display: none;">
[1055] Fix | Delete
<div class="embed-preview"></div>
[1056] Fix | Delete
</div>
[1057] Fix | Delete
</script>
[1058] Fix | Delete
[1059] Fix | Delete
<?php // Template for the "Insert from URL" image preview and details. ?>
[1060] Fix | Delete
<script type="text/html" id="tmpl-embed-image-settings">
[1061] Fix | Delete
<div class="wp-clearfix">
[1062] Fix | Delete
<div class="thumbnail">
[1063] Fix | Delete
<img src="{{ data.model.url }}" draggable="false" alt="" />
[1064] Fix | Delete
</div>
[1065] Fix | Delete
</div>
[1066] Fix | Delete
[1067] Fix | Delete
<span class="setting alt-text has-description">
[1068] Fix | Delete
<label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
[1069] Fix | Delete
<textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea>
[1070] Fix | Delete
</span>
[1071] Fix | Delete
<p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
[1072] Fix | Delete
[1073] Fix | Delete
<?php
[1074] Fix | Delete
/** This filter is documented in wp-admin/includes/media.php */
[1075] Fix | Delete
if ( ! apply_filters( 'disable_captions', '' ) ) :
[1076] Fix | Delete
?>
[1077] Fix | Delete
<span class="setting caption">
[1078] Fix | Delete
<label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label>
[1079] Fix | Delete
<textarea id="embed-image-settings-caption" data-setting="caption"></textarea>
[1080] Fix | Delete
</span>
[1081] Fix | Delete
<?php endif; ?>
[1082] Fix | Delete
[1083] Fix | Delete
<fieldset class="setting-group">
[1084] Fix | Delete
<legend class="name"><?php _e( 'Align' ); ?></legend>
[1085] Fix | Delete
<span class="setting align">
[1086] Fix | Delete
<span class="button-group button-large" data-setting="align">
[1087] Fix | Delete
<button class="button" value="left">
[1088] Fix | Delete
<?php esc_html_e( 'Left' ); ?>
[1089] Fix | Delete
</button>
[1090] Fix | Delete
<button class="button" value="center">
[1091] Fix | Delete
<?php esc_html_e( 'Center' ); ?>
[1092] Fix | Delete
</button>
[1093] Fix | Delete
<button class="button" value="right">
[1094] Fix | Delete
<?php esc_html_e( 'Right' ); ?>
[1095] Fix | Delete
</button>
[1096] Fix | Delete
<button class="button active" value="none">
[1097] Fix | Delete
<?php echo esc_html_x( 'None', 'Alignment option' ); ?>
[1098] Fix | Delete
</button>
[1099] Fix | Delete
</span>
[1100] Fix | Delete
</span>
[1101] Fix | Delete
</fieldset>
[1102] Fix | Delete
[1103] Fix | Delete
<fieldset class="setting-group">
[1104] Fix | Delete
<legend class="name"><?php _e( 'Link To' ); ?></legend>
[1105] Fix | Delete
<span class="setting link-to">
[1106] Fix | Delete
<span class="button-group button-large" data-setting="link">
[1107] Fix | Delete
<button class="button" value="file">
[1108] Fix | Delete
<?php esc_html_e( 'Image URL' ); ?>
[1109] Fix | Delete
</button>
[1110] Fix | Delete
<button class="button" value="custom">
[1111] Fix | Delete
<?php esc_html_e( 'Custom URL' ); ?>
[1112] Fix | Delete
</button>
[1113] Fix | Delete
<button class="button active" value="none">
[1114] Fix | Delete
<?php echo esc_html_x( 'None', 'Media item link option' ); ?>
[1115] Fix | Delete
</button>
[1116] Fix | Delete
</span>
[1117] Fix | Delete
</span>
[1118] Fix | Delete
<span class="setting">
[1119] Fix | Delete
<label for="embed-image-settings-link-to-custom" class="name"><?php _e( 'URL' ); ?></label>
[1120] Fix | Delete
<input type="text" id="embed-image-settings-link-to-custom" class="link-to-custom" data-setting="linkUrl" />
[1121] Fix | Delete
</span>
[1122] Fix | Delete
</fieldset>
[1123] Fix | Delete
</script>
[1124] Fix | Delete
[1125] Fix | Delete
<?php // Template for the Image details, used for example in the editor. ?>
[1126] Fix | Delete
<script type="text/html" id="tmpl-image-details">
[1127] Fix | Delete
<div class="media-embed">
[1128] Fix | Delete
<div class="embed-media-settings">
[1129] Fix | Delete
<div class="column-settings">
[1130] Fix | Delete
<span class="setting alt-text has-description">
[1131] Fix | Delete
<label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
[1132] Fix | Delete
<textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea>
[1133] Fix | Delete
</span>
[1134] Fix | Delete
<p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
[1135] Fix | Delete
[1136] Fix | Delete
<?php
[1137] Fix | Delete
/** This filter is documented in wp-admin/includes/media.php */
[1138] Fix | Delete
if ( ! apply_filters( 'disable_captions', '' ) ) :
[1139] Fix | Delete
?>
[1140] Fix | Delete
<span class="setting caption">
[1141] Fix | Delete
<label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label>
[1142] Fix | Delete
<textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea>
[1143] Fix | Delete
</span>
[1144] Fix | Delete
<?php endif; ?>
[1145] Fix | Delete
[1146] Fix | Delete
<h2><?php _e( 'Display Settings' ); ?></h2>
[1147] Fix | Delete
<fieldset class="setting-group">
[1148] Fix | Delete
<legend class="legend-inline"><?php _e( 'Align' ); ?></legend>
[1149] Fix | Delete
<span class="setting align">
[1150] Fix | Delete
<span class="button-group button-large" data-setting="align">
[1151] Fix | Delete
<button class="button" value="left">
[1152] Fix | Delete
<?php esc_html_e( 'Left' ); ?>
[1153] Fix | Delete
</button>
[1154] Fix | Delete
<button class="button" value="center">
[1155] Fix | Delete
<?php esc_html_e( 'Center' ); ?>
[1156] Fix | Delete
</button>
[1157] Fix | Delete
<button class="button" value="right">
[1158] Fix | Delete
<?php esc_html_e( 'Right' ); ?>
[1159] Fix | Delete
</button>
[1160] Fix | Delete
<button class="button active" value="none">
[1161] Fix | Delete
<?php echo esc_html_x( 'None', 'Alignment option' ); ?>
[1162] Fix | Delete
</button>
[1163] Fix | Delete
</span>
[1164] Fix | Delete
</span>
[1165] Fix | Delete
</fieldset>
[1166] Fix | Delete
[1167] Fix | Delete
<# if ( data.attachment ) { #>
[1168] Fix | Delete
<# if ( 'undefined' !== typeof data.attachment.sizes ) { #>
[1169] Fix | Delete
<span class="setting size">
[1170] Fix | Delete
<label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label>
[1171] Fix | Delete
<select id="image-details-size" class="size" name="size"
[1172] Fix | Delete
data-setting="size"
[1173] Fix | Delete
<# if ( data.userSettings ) { #>
[1174] Fix | Delete
data-user-setting="imgsize"
[1175] Fix | Delete
<# } #>>
[1176] Fix | Delete
<?php
[1177] Fix | Delete
/** This filter is documented in wp-admin/includes/media.php */
[1178] Fix | Delete
$sizes = apply_filters(
[1179] Fix | Delete
'image_size_names_choose',
[1180] Fix | Delete
array(
[1181] Fix | Delete
'thumbnail' => __( 'Thumbnail' ),
[1182] Fix | Delete
'medium' => __( 'Medium' ),
[1183] Fix | Delete
'large' => __( 'Large' ),
[1184] Fix | Delete
'full' => __( 'Full Size' ),
[1185] Fix | Delete
)
[1186] Fix | Delete
);
[1187] Fix | Delete
[1188] Fix | Delete
foreach ( $sizes as $value => $name ) :
[1189] Fix | Delete
?>
[1190] Fix | Delete
<#
[1191] Fix | Delete
var size = data.sizes['<?php echo esc_js( $value ); ?>'];
[1192] Fix | Delete
if ( size ) { #>
[1193] Fix | Delete
<option value="<?php echo esc_attr( $value ); ?>">
[1194] Fix | Delete
<?php echo esc_html( $name ); ?> &ndash; {{ size.width }} &times; {{ size.height }}
[1195] Fix | Delete
</option>
[1196] Fix | Delete
<# } #>
[1197] Fix | Delete
<?php endforeach; ?>
[1198] Fix | Delete
<option value="<?php echo esc_attr( 'custom' ); ?>">
[1199] Fix | Delete
<?php _e( 'Custom Size' ); ?>
[1200] Fix | Delete
</option>
[1201] Fix | Delete
</select>
[1202] Fix | Delete
</span>
[1203] Fix | Delete
<# } #>
[1204] Fix | Delete
<div class="custom-size wp-clearfix<# if ( data.model.size !== 'custom' ) { #> hidden<# } #>">
[1205] Fix | Delete
<span class="custom-size-setting">
[1206] Fix | Delete
<label for="image-details-size-width"><?php _e( 'Width' ); ?></label>
[1207] Fix | Delete
<input type="number" id="image-details-size-width" aria-describedby="image-size-desc" data-setting="customWidth" step="1" value="{{ data.model.customWidth }}" />
[1208] Fix | Delete
</span>
[1209] Fix | Delete
<span class="sep" aria-hidden="true">&times;</span>
[1210] Fix | Delete
<span class="custom-size-setting">
[1211] Fix | Delete
<label for="image-details-size-height"><?php _e( 'Height' ); ?></label>
[1212] Fix | Delete
<input type="number" id="image-details-size-height" aria-describedby="image-size-desc" data-setting="customHeight" step="1" value="{{ data.model.customHeight }}" />
[1213] Fix | Delete
</span>
[1214] Fix | Delete
<p id="image-size-desc" class="description"><?php _e( 'Image size in pixels' ); ?></p>
[1215] Fix | Delete
</div>
[1216] Fix | Delete
<# } #>
[1217] Fix | Delete
[1218] Fix | Delete
<span class="setting link-to">
[1219] Fix | Delete
<label for="image-details-link-to" class="name"><?php _e( 'Link To' ); ?></label>
[1220] Fix | Delete
<select id="image-details-link-to" data-setting="link">
[1221] Fix | Delete
<# if ( data.attachment ) { #>
[1222] Fix | Delete
<option value="file">
[1223] Fix | Delete
<?php esc_html_e( 'Media File' ); ?>
[1224] Fix | Delete
</option>
[1225] Fix | Delete
<option value="post">
[1226] Fix | Delete
<?php esc_html_e( 'Attachment Page' ); ?>
[1227] Fix | Delete
</option>
[1228] Fix | Delete
<# } else { #>
[1229] Fix | Delete
<option value="file">
[1230] Fix | Delete
<?php esc_html_e( 'Image URL' ); ?>
[1231] Fix | Delete
</option>
[1232] Fix | Delete
<# } #>
[1233] Fix | Delete
<option value="custom">
[1234] Fix | Delete
<?php esc_html_e( 'Custom URL' ); ?>
[1235] Fix | Delete
</option>
[1236] Fix | Delete
<option value="none">
[1237] Fix | Delete
<?php echo esc_html_x( 'None', 'Media item link option' ); ?>
[1238] Fix | Delete
</option>
[1239] Fix | Delete
</select>
[1240] Fix | Delete
</span>
[1241] Fix | Delete
<span class="setting">
[1242] Fix | Delete
<label for="image-details-link-to-custom" class="name"><?php _e( 'URL' ); ?></label>
[1243] Fix | Delete
<input type="text" id="image-details-link-to-custom" class="link-to-custom" data-setting="linkUrl" />
[1244] Fix | Delete
</span>
[1245] Fix | Delete
[1246] Fix | Delete
<div class="advanced-section">
[1247] Fix | Delete
<h2><button type="button" class="button-link advanced-toggle"><?php _e( 'Advanced Options' ); ?></button></h2>
[1248] Fix | Delete
<div class="advanced-settings hidden">
[1249] Fix | Delete
<div class="advanced-image">
[1250] Fix | Delete
<span class="setting title-text">
[1251] Fix | Delete
<label for="image-details-title-attribute" class="name"><?php _e( 'Image Title Attribute' ); ?></label>
[1252] Fix | Delete
<input type="text" id="image-details-title-attribute" data-setting="title" value="{{ data.model.title }}" />
[1253] Fix | Delete
</span>
[1254] Fix | Delete
<span class="setting extra-classes">
[1255] Fix | Delete
<label for="image-details-css-class" class="name"><?php _e( 'Image CSS Class' ); ?></label>
[1256] Fix | Delete
<input type="text" id="image-details-css-class" data-setting="extraClasses" value="{{ data.model.extraClasses }}" />
[1257] Fix | Delete
</span>
[1258] Fix | Delete
</div>
[1259] Fix | Delete
<div class="advanced-link">
[1260] Fix | Delete
<span class="setting link-target">
[1261] Fix | Delete
<input type="checkbox" id="image-details-link-target" data-setting="linkTargetBlank" value="_blank" <# if ( data.model.linkTargetBlank ) { #>checked="checked"<# } #>>
[1262] Fix | Delete
<label for="image-details-link-target" class="checkbox-label"><?php _e( 'Open link in a new tab' ); ?></label>
[1263] Fix | Delete
</span>
[1264] Fix | Delete
<span class="setting link-rel">
[1265] Fix | Delete
<label for="image-details-link-rel" class="name"><?php _e( 'Link Rel' ); ?></label>
[1266] Fix | Delete
<input type="text" id="image-details-link-rel" data-setting="linkRel" value="{{ data.model.linkRel }}" />
[1267] Fix | Delete
</span>
[1268] Fix | Delete
<span class="setting link-class-name">
[1269] Fix | Delete
<label for="image-details-link-css-class" class="name"><?php _e( 'Link CSS Class' ); ?></label>
[1270] Fix | Delete
<input type="text" id="image-details-link-css-class" data-setting="linkClassName" value="{{ data.model.linkClassName }}" />
[1271] Fix | Delete
</span>
[1272] Fix | Delete
</div>
[1273] Fix | Delete
</div>
[1274] Fix | Delete
</div>
[1275] Fix | Delete
</div>
[1276] Fix | Delete
<div class="column-image">
[1277] Fix | Delete
<div class="image">
[1278] Fix | Delete
<img src="{{ data.model.url }}" draggable="false" alt="" />
[1279] Fix | Delete
<# if ( data.attachment && window.imageEdit ) { #>
[1280] Fix | Delete
<div class="actions">
[1281] Fix | Delete
<input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" />
[1282] Fix | Delete
<input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" />
[1283] Fix | Delete
</div>
[1284] Fix | Delete
<# } #>
[1285] Fix | Delete
</div>
[1286] Fix | Delete
</div>
[1287] Fix | Delete
</div>
[1288] Fix | Delete
</div>
[1289] Fix | Delete
</script>
[1290] Fix | Delete
[1291] Fix | Delete
<?php // Template for the Image Editor layout. ?>
[1292] Fix | Delete
<script type="text/html" id="tmpl-image-editor">
[1293] Fix | Delete
<div id="media-head-{{ data.id }}"></div>
[1294] Fix | Delete
<div id="image-editor-{{ data.id }}"></div>
[1295] Fix | Delete
</script>
[1296] Fix | Delete
[1297] Fix | Delete
<?php // Template for an embedded Audio details. ?>
[1298] Fix | Delete
<script type="text/html" id="tmpl-audio-details">
[1299] Fix | Delete
<# var ext, html5types = {
[1300] Fix | Delete
mp3: wp.media.view.settings.embedMimes.mp3,
[1301] Fix | Delete
ogg: wp.media.view.settings.embedMimes.ogg
[1302] Fix | Delete
}; #>
[1303] Fix | Delete
[1304] Fix | Delete
<?php $audio_types = wp_get_audio_extensions(); ?>
[1305] Fix | Delete
<div class="media-embed media-embed-details">
[1306] Fix | Delete
<div class="embed-media-settings embed-audio-settings">
[1307] Fix | Delete
<?php wp_underscore_audio_template(); ?>
[1308] Fix | Delete
[1309] Fix | Delete
<# if ( ! _.isEmpty( data.model.src ) ) {
[1310] Fix | Delete
ext = data.model.src.split('.').pop();
[1311] Fix | Delete
if ( html5types[ ext ] ) {
[1312] Fix | Delete
delete html5types[ ext ];
[1313] Fix | Delete
}
[1314] Fix | Delete
#>
[1315] Fix | Delete
<span class="setting">
[1316] Fix | Delete
<label for="audio-details-source" class="name"><?php _e( 'URL' ); ?></label>
[1317] Fix | Delete
<input type="text" id="audio-details-source" readonly data-setting="src" value="{{ data.model.src }}" />
[1318] Fix | Delete
<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
[1319] Fix | Delete
</span>
[1320] Fix | Delete
<# } #>
[1321] Fix | Delete
<?php
[1322] Fix | Delete
[1323] Fix | Delete
foreach ( $audio_types as $type ) :
[1324] Fix | Delete
?>
[1325] Fix | Delete
<# if ( ! _.isEmpty( data.model.<?php echo $type; ?> ) ) {
[1326] Fix | Delete
if ( ! _.isUndefined( html5types.<?php echo $type; ?> ) ) {
[1327] Fix | Delete
delete html5types.<?php echo $type; ?>;
[1328] Fix | Delete
}
[1329] Fix | Delete
#>
[1330] Fix | Delete
<span class="setting">
[1331] Fix | Delete
<label for="audio-details-<?php echo $type . '-source'; ?>" class="name"><?php echo strtoupper( $type ); ?></label>
[1332] Fix | Delete
<input type="text" id="audio-details-<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />
[1333] Fix | Delete
<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
[1334] Fix | Delete
</span>
[1335] Fix | Delete
<# } #>
[1336] Fix | Delete
<?php endforeach; ?>
[1337] Fix | Delete
[1338] Fix | Delete
<# if ( ! _.isEmpty( html5types ) ) { #>
[1339] Fix | Delete
<fieldset class="setting-group">
[1340] Fix | Delete
<legend class="name"><?php _e( 'Add alternate sources for maximum HTML5 playback' ); ?></legend>
[1341] Fix | Delete
<span class="setting">
[1342] Fix | Delete
<span class="button-large">
[1343] Fix | Delete
<# _.each( html5types, function (mime, type) { #>
[1344] Fix | Delete
<button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button>
[1345] Fix | Delete
<# } ) #>
[1346] Fix | Delete
</span>
[1347] Fix | Delete
</span>
[1348] Fix | Delete
</fieldset>
[1349] Fix | Delete
<# } #>
[1350] Fix | Delete
[1351] Fix | Delete
<fieldset class="setting-group">
[1352] Fix | Delete
<legend class="name"><?php _e( 'Preload' ); ?></legend>
[1353] Fix | Delete
<span class="setting preload">
[1354] Fix | Delete
<span class="button-group button-large" data-setting="preload">
[1355] Fix | Delete
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
[1356] Fix | Delete
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
[1357] Fix | Delete
<button class="button active" value="none"><?php _ex( 'None', 'Preload value' ); ?></button>
[1358] Fix | Delete
</span>
[1359] Fix | Delete
</span>
[1360] Fix | Delete
</fieldset>
[1361] Fix | Delete
[1362] Fix | Delete
<span class="setting-group">
[1363] Fix | Delete
<span class="setting checkbox-setting autoplay">
[1364] Fix | Delete
<input type="checkbox" id="audio-details-autoplay" data-setting="autoplay" />
[1365] Fix | Delete
<label for="audio-details-autoplay" class="checkbox-label"><?php _e( 'Autoplay' ); ?></label>
[1366] Fix | Delete
</span>
[1367] Fix | Delete
[1368] Fix | Delete
<span class="setting checkbox-setting">
[1369] Fix | Delete
<input type="checkbox" id="audio-details-loop" data-setting="loop" />
[1370] Fix | Delete
<label for="audio-details-loop" class="checkbox-label"><?php _e( 'Loop' ); ?></label>
[1371] Fix | Delete
</span>
[1372] Fix | Delete
</span>
[1373] Fix | Delete
</div>
[1374] Fix | Delete
</div>
[1375] Fix | Delete
</script>
[1376] Fix | Delete
[1377] Fix | Delete
<?php // Template for an embedded Video details. ?>
[1378] Fix | Delete
<script type="text/html" id="tmpl-video-details">
[1379] Fix | Delete
<# var ext, html5types = {
[1380] Fix | Delete
mp4: wp.media.view.settings.embedMimes.mp4,
[1381] Fix | Delete
ogv: wp.media.view.settings.embedMimes.ogv,
[1382] Fix | Delete
webm: wp.media.view.settings.embedMimes.webm
[1383] Fix | Delete
}; #>
[1384] Fix | Delete
[1385] Fix | Delete
<?php $video_types = wp_get_video_extensions(); ?>
[1386] Fix | Delete
<div class="media-embed media-embed-details">
[1387] Fix | Delete
<div class="embed-media-settings embed-video-settings">
[1388] Fix | Delete
<div class="wp-video-holder">
[1389] Fix | Delete
<#
[1390] Fix | Delete
var w = ! data.model.width || data.model.width > 640 ? 640 : data.model.width,
[1391] Fix | Delete
h = ! data.model.height ? 360 : data.model.height;
[1392] Fix | Delete
[1393] Fix | Delete
if ( data.model.width && w !== data.model.width ) {
[1394] Fix | Delete
h = Math.ceil( ( h * w ) / data.model.width );
[1395] Fix | Delete
}
[1396] Fix | Delete
#>
[1397] Fix | Delete
[1398] Fix | Delete
<?php wp_underscore_video_template(); ?>
[1399] Fix | Delete
[1400] Fix | Delete
<# if ( ! _.isEmpty( data.model.src ) ) {
[1401] Fix | Delete
ext = data.model.src.split('.').pop();
[1402] Fix | Delete
if ( html5types[ ext ] ) {
[1403] Fix | Delete
delete html5types[ ext ];
[1404] Fix | Delete
}
[1405] Fix | Delete
#>
[1406] Fix | Delete
<span class="setting">
[1407] Fix | Delete
<label for="video-details-source" class="name"><?php _e( 'URL' ); ?></label>
[1408] Fix | Delete
<input type="text" id="video-details-source" readonly data-setting="src" value="{{ data.model.src }}" />
[1409] Fix | Delete
<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
[1410] Fix | Delete
</span>
[1411] Fix | Delete
<# } #>
[1412] Fix | Delete
<?php
[1413] Fix | Delete
foreach ( $video_types as $type ) :
[1414] Fix | Delete
?>
[1415] Fix | Delete
<# if ( ! _.isEmpty( data.model.<?php echo $type; ?> ) ) {
[1416] Fix | Delete
if ( ! _.isUndefined( html5types.<?php echo $type; ?> ) ) {
[1417] Fix | Delete
delete html5types.<?php echo $type; ?>;
[1418] Fix | Delete
}
[1419] Fix | Delete
#>
[1420] Fix | Delete
<span class="setting">
[1421] Fix | Delete
<label for="video-details-<?php echo $type . '-source'; ?>" class="name"><?php echo strtoupper( $type ); ?></label>
[1422] Fix | Delete
<input type="text" id="video-details-<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />
[1423] Fix | Delete
<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
[1424] Fix | Delete
</span>
[1425] Fix | Delete
<# } #>
[1426] Fix | Delete
<?php endforeach; ?>
[1427] Fix | Delete
</div>
[1428] Fix | Delete
[1429] Fix | Delete
<# if ( ! _.isEmpty( html5types ) ) { #>
[1430] Fix | Delete
<fieldset class="setting-group">
[1431] Fix | Delete
<legend class="name"><?php _e( 'Add alternate sources for maximum HTML5 playback' ); ?></legend>
[1432] Fix | Delete
<span class="setting">
[1433] Fix | Delete
<span class="button-large">
[1434] Fix | Delete
<# _.each( html5types, function (mime, type) { #>
[1435] Fix | Delete
<button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button>
[1436] Fix | Delete
<# } ) #>
[1437] Fix | Delete
</span>
[1438] Fix | Delete
</span>
[1439] Fix | Delete
</fieldset>
[1440] Fix | Delete
<# } #>
[1441] Fix | Delete
[1442] Fix | Delete
<# if ( ! _.isEmpty( data.model.poster ) ) { #>
[1443] Fix | Delete
<span class="setting">
[1444] Fix | Delete
<label for="video-details-poster-image" class="name"><?php _e( 'Poster Image' ); ?></label>
[1445] Fix | Delete
<input type="text" id="video-details-poster-image" readonly data-setting="poster" value="{{ data.model.poster }}" />
[1446] Fix | Delete
<button type="button" class="button-link remove-setting"><?php _e( 'Remove poster image' ); ?></button>
[1447] Fix | Delete
</span>
[1448] Fix | Delete
<# } #>
[1449] Fix | Delete
[1450] Fix | Delete
<fieldset class="setting-group">
[1451] Fix | Delete
<legend class="name"><?php _e( 'Preload' ); ?></legend>
[1452] Fix | Delete
<span class="setting preload">
[1453] Fix | Delete
<span class="button-group button-large" data-setting="preload">
[1454] Fix | Delete
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
[1455] Fix | Delete
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
[1456] Fix | Delete
<button class="button active" value="none"><?php _ex( 'None', 'Preload value' ); ?></button>
[1457] Fix | Delete
</span>
[1458] Fix | Delete
</span>
[1459] Fix | Delete
</fieldset>
[1460] Fix | Delete
[1461] Fix | Delete
<span class="setting-group">
[1462] Fix | Delete
<span class="setting checkbox-setting autoplay">
[1463] Fix | Delete
<input type="checkbox" id="video-details-autoplay" data-setting="autoplay" />
[1464] Fix | Delete
<label for="video-details-autoplay" class="checkbox-label"><?php _e( 'Autoplay' ); ?></label>
[1465] Fix | Delete
</span>
[1466] Fix | Delete
[1467] Fix | Delete
<span class="setting checkbox-setting">
[1468] Fix | Delete
<input type="checkbox" id="video-details-loop" data-setting="loop" />
[1469] Fix | Delete
<label for="video-details-loop" class="checkbox-label"><?php _e( 'Loop' ); ?></label>
[1470] Fix | Delete
</span>
[1471] Fix | Delete
</span>
[1472] Fix | Delete
[1473] Fix | Delete
<span class="setting" data-setting="content">
[1474] Fix | Delete
<#
[1475] Fix | Delete
var content = '';
[1476] Fix | Delete
if ( ! _.isEmpty( data.model.content ) ) {
[1477] Fix | Delete
var tracks = jQuery( data.model.content ).filter( 'track' );
[1478] Fix | Delete
_.each( tracks.toArray(), function( track, index ) {
[1479] Fix | Delete
content += track.outerHTML; #>
[1480] Fix | Delete
<label for="video-details-track-{{ index }}" class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></label>
[1481] Fix | Delete
<input class="content-track" type="text" id="video-details-track-{{ index }}" aria-describedby="video-details-track-desc-{{ index }}" value="{{ track.outerHTML }}" />
[1482] Fix | Delete
<span class="description" id="video-details-track-desc-{{ index }}">
[1483] Fix | Delete
<?php
[1484] Fix | Delete
printf(
[1485] Fix | Delete
/* translators: 1: "srclang" HTML attribute, 2: "label" HTML attribute, 3: "kind" HTML attribute. */
[1486] Fix | Delete
__( 'The %1$s, %2$s, and %3$s values can be edited to set the video track language and kind.' ),
[1487] Fix | Delete
'srclang',
[1488] Fix | Delete
'label',
[1489] Fix | Delete
'kind'
[1490] Fix | Delete
);
[1491] Fix | Delete
?>
[1492] Fix | Delete
</span>
[1493] Fix | Delete
<button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button><br />
[1494] Fix | Delete
<# } ); #>
[1495] Fix | Delete
<# } else { #>
[1496] Fix | Delete
<span class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span><br />
[1497] Fix | Delete
<em><?php _e( 'There are no associated subtitles.' ); ?></em>
[1498] Fix | Delete
<# } #>
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function