PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/productjuly1/adsgivesales.click/wp-content/plugins/dhvc-form/includes/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/productjuly1/adsgivesales.click/wp-content/plugins/dhvc-form/includes/field.php |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class DHVCForm_Field { private $field; public function __construct($field){ $this->field = $field; } public function is_required(){ return isset($this->field['required']) && '1'===$this->field['required']; } public function base_type(){ return str_replace('dhvc_form_', '', $this->field['tag']); } public function get_name(){ return esc_attr(trim($this->field['control_name'])); } public function get_id(){ return 'dhvc_form_control_'.$this->get_name(); } public function get_validator(){ $validator = isset($this->field['validator']) ? explode(',', $this->field['validator']) : array(); return $validator; } public function get_attrs(){ return $this->field; } public function attr($attr=''){ if(''==$attr || !isset($this->field[$attr])){ return false; } return $this->field[$attr]; } }