2015-10-24 20:57:25 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Customize API: WP_Customize_Image_Control class
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Customize
|
|
|
|
* @since 4.4.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Customize Image Control class.
|
|
|
|
*
|
|
|
|
* @since 3.4.0
|
|
|
|
*
|
|
|
|
* @see WP_Customize_Upload_Control
|
|
|
|
*/
|
|
|
|
class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
|
2020-11-22 16:53:03 +01:00
|
|
|
/**
|
|
|
|
* Control type.
|
|
|
|
*
|
|
|
|
* @since 3.4.0
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $type = 'image';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Media control mime type.
|
|
|
|
*
|
|
|
|
* @since 4.1.0
|
|
|
|
* @var string
|
|
|
|
*/
|
2015-10-24 20:57:25 +02:00
|
|
|
public $mime_type = 'image';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 3.4.2
|
|
|
|
* @deprecated 4.1.0
|
|
|
|
*/
|
|
|
|
public function prepare_control() {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 3.4.0
|
|
|
|
* @deprecated 4.1.0
|
|
|
|
*
|
|
|
|
* @param string $id
|
|
|
|
* @param string $label
|
2020-07-23 23:11:05 +02:00
|
|
|
* @param mixed $callback
|
2015-10-24 20:57:25 +02:00
|
|
|
*/
|
2017-08-20 05:38:46 +02:00
|
|
|
public function add_tab( $id, $label, $callback ) {
|
|
|
|
_deprecated_function( __METHOD__, '4.1.0' );
|
2017-12-01 00:11:00 +01:00
|
|
|
}
|
2015-10-24 20:57:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 3.4.0
|
|
|
|
* @deprecated 4.1.0
|
|
|
|
*
|
|
|
|
* @param string $id
|
|
|
|
*/
|
2017-08-20 05:38:46 +02:00
|
|
|
public function remove_tab( $id ) {
|
|
|
|
_deprecated_function( __METHOD__, '4.1.0' );
|
2017-12-01 00:11:00 +01:00
|
|
|
}
|
2015-10-24 20:57:25 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @since 3.4.0
|
|
|
|
* @deprecated 4.1.0
|
|
|
|
*
|
|
|
|
* @param string $url
|
|
|
|
* @param string $thumbnail_url
|
|
|
|
*/
|
2017-08-20 05:38:46 +02:00
|
|
|
public function print_tab_image( $url, $thumbnail_url = null ) {
|
|
|
|
_deprecated_function( __METHOD__, '4.1.0' );
|
2017-12-01 00:11:00 +01:00
|
|
|
}
|
2015-10-24 20:57:25 +02:00
|
|
|
}
|