mirror of https://github.com/vtrois/kratos
31 lines
519 B
PHP
31 lines
519 B
PHP
<?php if (!defined('ABSPATH')) {
|
|
die;
|
|
}
|
|
/**
|
|
*
|
|
* Field: content
|
|
*
|
|
* @since 1.0.0
|
|
* @version 1.0.0
|
|
*
|
|
*/
|
|
if (!class_exists('CSF_Field_content')) {
|
|
class CSF_Field_content extends CSF_Fields
|
|
{
|
|
|
|
public function __construct($field, $value = '', $unique = '', $where = '', $parent = '')
|
|
{
|
|
parent::__construct($field, $value, $unique, $where, $parent);
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
|
|
if (!empty($this->field['content'])) {
|
|
|
|
echo $this->field['content'];
|
|
}
|
|
}
|
|
}
|
|
}
|