Upload folder via GUI - inc
This commit is contained in:
13
inc/fields/class-field-html.php
Normal file
13
inc/fields/class-field-html.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
if (!defined('ABSPATH')) exit;
|
||||
class WMF_Field_HTML extends WMF_Field_Base {
|
||||
public $type='html'; public $label='HTML-Block'; public $icon='dashicons-editor-code'; public $category='layout';
|
||||
public function defaults() { return array_merge(parent::defaults(),array('content'=>'')); }
|
||||
public function render($field,$value='') { ?>
|
||||
<div class="<?php echo esc_attr($this->wrapper_classes($field)); ?>"<?php echo $this->conditional_attrs($field); ?>>
|
||||
<?php echo wp_kses_post($field['content']??''); ?>
|
||||
</div><?php
|
||||
}
|
||||
public function validate($v,$f) { return true; }
|
||||
public function sanitize($v,$f) { return ''; }
|
||||
}
|
||||
Reference in New Issue
Block a user