Upload folder via GUI - inc

This commit is contained in:
Git Manager GUI
2026-04-13 18:52:46 +02:00
parent 9c47501712
commit 09ac38e9fa
31 changed files with 2058 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
if (!defined('ABSPATH')) exit;
class WMF_Field_URL extends WMF_Field_Base {
public $type='url'; public $label='Website-URL'; public $icon='dashicons-admin-site';
public function render($field,$value='') { ?>
<div class="<?php echo esc_attr($this->wrapper_classes($field)); ?>"<?php echo $this->conditional_attrs($field); ?> data-field-id="<?php echo esc_attr($field['id']); ?>">
<?php $this->render_label($field); ?>
<input type="url" id="<?php echo esc_attr($field['id']); ?>" name="wmf_fields[<?php echo esc_attr($field['id']); ?>]" value="<?php echo esc_attr($value); ?>" placeholder="<?php echo esc_attr($field['placeholder']??'https://'); ?>" <?php echo(!empty($field['required'])&&$field['required']==='1')?'required':''; ?> class="wmf-input">
<?php $this->render_description($field); ?>
<span class="wmf-field-error-msg"></span>
</div><?php
}
public function sanitize($v,$f) { return esc_url_raw($v); }
}