[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwentyone/classes/ -> class-twenty-twenty-one-customize-notice-control.php (source)

   1  <?php
   2  /**
   3   * Customize API: Twenty_Twenty_One_Customize_Notice_Control class
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_One
   7   * @since Twenty Twenty-One 1.0
   8   */
   9  
  10  /**
  11   * Customize Notice Control class.
  12   *
  13   * @since Twenty Twenty-One 1.0
  14   *
  15   * @see WP_Customize_Control
  16   */
  17  class Twenty_Twenty_One_Customize_Notice_Control extends WP_Customize_Control {
  18      /**
  19       * The control type.
  20       *
  21       * @since Twenty Twenty-One 1.0
  22       *
  23       * @var string
  24       */
  25      public $type = 'twenty-twenty-one-notice';
  26  
  27      /**
  28       * Renders the control content.
  29       *
  30       * This simply prints the notice we need.
  31       *
  32       * @since Twenty Twenty-One 1.0
  33       *
  34       * @return void
  35       */
  36  	public function render_content() {
  37          ?>
  38          <div class="notice notice-warning">
  39              <p><?php esc_html_e( 'To access the Dark Mode settings, select a light background color.', 'twentytwentyone' ); ?></p>
  40              <p><a href="<?php echo esc_url( __( 'https://wordpress.org/support/article/twenty-twenty-one/#dark-mode-support', 'twentytwentyone' ) ); ?>">
  41                  <?php esc_html_e( 'Learn more about Dark Mode.', 'twentytwentyone' ); ?>
  42              </a></p>
  43          </div>
  44          <?php
  45      }
  46  }


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1