+ return null;
+ }
+
+ public function render_content() {
+ $this->print_header_image_template();
+ $visibility = $this->get_current_image_src() ? '' : ' style="display:none" ';
+ $width = absint( get_theme_support( 'custom-header', 'width' ) );
+ $height = absint( get_theme_support( 'custom-header', 'height' ) );
+ ?>
+
+
+ <div class="customize-control-content">
+ <p class="customizer-section-intro">
+ <?php
+ if ( $width && $height ) {
+ printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header size of <strong>%s × %s</strong> pixels.' ), $width, $height );
+ } elseif ( $width ) {
+ printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header width of <strong>%s</strong> pixels.' ), $width );
+ } else {
+ printf( __( 'While you can crop images to your liking after clicking <strong>Add new image</strong>, your theme recommends a header height of <strong>%s</strong> pixels.' ), $height );
+ }
+ ?>
+ </p>
+ <div class="current">
+ <span class="customize-control-title">
+ <?php _e( 'Current header' ); ?>
+ </span>
+ <div class="container">
+ </div>
+ </div>
+ <div class="actions">
+ <?php /* translators: Hide as in hide header image via the Customizer */ ?>
+ <button type="button"<?php echo $visibility ?> class="button remove"><?php _ex( 'Hide image', 'custom header' ); ?></button>
+ <?php /* translators: New as in add new header image via the Customizer */ ?>
+ <button type="button" class="button new"><?php _ex( 'Add new image', 'header image' ); ?></button>
+ <div style="clear:both"></div>
+ </div>
+ <div class="choices">
+ <span class="customize-control-title header-previously-uploaded">
+ <?php _ex( 'Previously uploaded', 'custom headers' ); ?>
+ </span>
+ <div class="uploaded">
+ <div class="list">
+ </div>
+ </div>
+ <span class="customize-control-title header-default">
+ <?php _ex( 'Suggested', 'custom headers' ); ?>
+ </span>
+ <div class="default">
+ <div class="list">
+ </div>
+ </div>
+ </div>
+ </div>
+ <?php
+ }
+}
+
+/**
+ * Customize Theme Control class.
+ *
+ * @since 4.2.0
+ *
+ * @see WP_Customize_Control
+ */
+class WP_Customize_Theme_Control extends WP_Customize_Control {
+
+ /**
+ * Customize control type.
+ *
+ * @since 4.2.0
+ * @access public
+ * @var string
+ */
+ public $type = 'theme';
+
+ /**
+ * Theme object.
+ *
+ * @since 4.2.0
+ * @access public
+ * @var WP_Theme
+ */
+ public $theme;
+
+ /**
+ * Refresh the parameters passed to the JavaScript via JSON.
+ *
+ * @since 4.2.0
+ * @access public
+ *
+ * @see WP_Customize_Control::to_json()
+ */
+ public function to_json() {
+ parent::to_json();
+ $this->json['theme'] = $this->theme;
+ }