X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..4feeb71a9d812a9ae371c28a3d8b442a4394ded7:/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..69dea75e 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,69 @@ 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 ) { #> + <# if ( data.attachment.sizes ) { #> +
+
+
+
+ <?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 ) { #> + + <# } #> +
+
+ <# } #> +