[ 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       * @access public
  33       *
  34       * @since Twenty Twenty-One 1.0
  35       *
  36       * @return void
  37       */
  38  	public function render_content() {
  39          ?>
  40          <div class="notice notice-warning">
  41              <p><?php esc_html_e( 'To access the Dark Mode settings, select a light background color.', 'twentytwentyone' ); ?></p>
  42              <p><a href="<?php echo esc_url( __( 'https://wordpress.org/support/article/twenty-twenty-one/#dark-mode-support', 'twentytwentyone' ) ); ?>">
  43                  <?php esc_html_e( 'Learn more about Dark Mode.', 'twentytwentyone' ); ?>
  44              </a></p>
  45          </div>
  46          <?php
  47      }
  48  }


Generated: Mon Jun 14 01:00:05 2021 Cross-referenced by PHPXref 0.7.1