PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.2.3
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.2.3
2.1.3 2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 All 57 releases
darkify / admin / ta-framework / fields / notice / notice.php

notice.php in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.2.3, at admin/ta-framework/fields/notice/notice.php

25 lines 720 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) {
2 die; } // Cannot access directly.
3 /**
4 *
5 * Field: notice
6 *
7 * @since 1.0.0
8 * @version 1.0.0
9 */
10 if ( ! class_exists( 'DRK_LITE_Field_notice' ) ) {
11 class DRK_LITE_Field_notice extends DRK_LITE_Fields {
12
13 public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
14 parent::__construct( $field, $value, $unique, $where, $parent );
15 }
16
17 public function render() {
18
19 $style = ( ! empty( $this->field['style'] ) ) ? $this->field['style'] : 'normal';
20
21 echo ( ! empty( $this->field['content'] ) ) ? '<div class="drk_lite-notice drk_lite-notice-' . esc_attr( $style ) . '">' . wp_kses_post($this->field['content']) . '</div>' : '';
22 }
23 }
24 }
25