# darkify/1.3.0/src/Admin/Framework/fields/notice/notice.php

Darkify – Dark Mode &amp; Night Mode for Website &amp; Admin (Dark Theme Included), version 1.3.0. 25 lines.

- Page: https://pluginprobe.com/plugins/darkify/1.3.0/code/src/Admin/Framework/fields/notice/notice.php
- Raw: https://pluginprobe.com/plugins/darkify/1.3.0/raw/src/Admin/Framework/fields/notice/notice.php
- Modified: 2025-03-21T01:44:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/darkify/1.3.0/code/src/Admin/Framework/fields/notice/notice.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) {
	die; } // Cannot access directly.
/**
 *
 * Field: notice
 *
 * @since 1.0.0
 * @version 1.0.0
 */
if ( ! class_exists( 'DarkifyField_notice' ) ) {
	class DarkifyField_notice extends DarkifyFields {

		public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
			parent::__construct( $field, $value, $unique, $where, $parent );
		}

		public function render() {

			$style = ( ! empty( $this->field['style'] ) ) ? $this->field['style'] : 'normal';

			echo ( ! empty( $this->field['content'] ) ) ? '<div class="darkify-notice darkify-notice-' . esc_attr( $style ) . '">' . wp_kses_post($this->field['content']) . '</div>' : '';
		}
	}
}

```
