X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/0459461f9ea42e0b090759ff6fe5f48360bef750..refs/tags/wordpress-4.5:/wp-includes/customize/class-wp-customize-site-icon-control.php diff --git a/wp-includes/customize/class-wp-customize-site-icon-control.php b/wp-includes/customize/class-wp-customize-site-icon-control.php index fe8ac371..fb2fa0d9 100644 --- a/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -41,4 +41,67 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control parent::__construct( $manager, $id, $args ); add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 ); } + + /** + * Renders a JS template for the content of the site icon control. + * + * @since 4.5.0 + * @access public + */ + public function content_template() { + ?> + + + <# if ( data.attachment && data.attachment.id ) { #> +
+
+
+
+ <?php esc_attr_e( 'Browser interface preview' ); ?> + +
+ <?php esc_attr_e( 'Preview as a browser icon' ); ?> +
+ +
+ <?php esc_attr_e( 'Preview as an app icon' ); ?> +
+
+
+
+ <# if ( data.canUpload ) { #> + + +
+ <# } #> +
+ <# } else { #> +
+
+
+
+ button_labels['placeholder']; ?> +
+
+
+
+
+ <# if ( data.defaultAttachment ) { #> + + <# } #> + <# if ( data.canUpload ) { #> + + <# } #> +
+
+ <# } #> +