mirror of https://github.com/vtrois/kratos
				
				
				
			
		
			
				
	
	
		
			30 lines
		
	
	
		
			661 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			661 B
		
	
	
	
		
			PHP
		
	
	
<?php if (!defined('ABSPATH')) {
 | 
						|
  die;
 | 
						|
}
 | 
						|
/**
 | 
						|
 *
 | 
						|
 * Field: notice
 | 
						|
 *
 | 
						|
 * @since 1.0.0
 | 
						|
 * @version 1.0.0
 | 
						|
 *
 | 
						|
 */
 | 
						|
if (!class_exists('CSF_Field_notice')) {
 | 
						|
  class CSF_Field_notice extends CSF_Fields
 | 
						|
  {
 | 
						|
 | 
						|
    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="csf-notice csf-notice-' . esc_attr($style) . '">' . $this->field['content'] . '</div>' : '';
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 |