CoreFiles by mySites.guru
class-twenty-twenty-one-customize-notice-control.php48 lines, 1,124 bytes, from wordpress-5.7.21.zip
Raw History Compare with 5.7.20
md5
da3231e9181cfa8aff62b599de6daa20
sha1
b59d140308ef4c2c80409a7ffa18e2d05ab94cb7
sha256
d9ecb598fdb58e97bebc8e9a6f9b2cb99a8c2000e5a8d5e1a0b744d1b675cb1e
<?php
/**
 * Customize API: Twenty_Twenty_One_Customize_Notice_Control class
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

/**
 * Customize Notice Control class.
 *
 * @since Twenty Twenty-One 1.0
 *
 * @see WP_Customize_Control
 */
class Twenty_Twenty_One_Customize_Notice_Control extends WP_Customize_Control {
	/**
	 * The control type.
	 *
	 * @since Twenty Twenty-One 1.0
	 *
	 * @var string
	 */
	public $type = 'twenty-twenty-one-notice';

	/**
	 * Renders the control content.
	 *
	 * This simply prints the notice we need.
	 *
	 * @access public
	 *
	 * @since Twenty Twenty-One 1.0
	 *
	 * @return void
	 */
	public function render_content() {
		?>
		<div class="notice notice-warning">
			<p><?php esc_html_e( 'To access the Dark Mode settings, select a light background color.', 'twentytwentyone' ); ?></p>
			<p><a href="<?php echo esc_url( __( 'https://wordpress.org/support/article/twenty-twenty-one/#dark-mode-support', 'twentytwentyone' ) ); ?>">
				<?php esc_html_e( 'Learn more about Dark Mode.', 'twentytwentyone' ); ?>
			</a></p>
		</div>
		<?php
	}
}

The same content is in 61 releases, WordPress 5.6.1-RC1 to 5.8-RC1. See them all, or every version of this file.