| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/ict/wp-content/plugins/so-widgets-bundle/widgets/contact/fields/ |
Upload File : |
<?php
abstract class SiteOrigin_Widget_ContactForm_Field_Base {
/**
* The options for this field. Used when enqueueing styles and scripts and rendering the field.
*
* @var array
*/
protected $options;
public $type;
public function __construct( $options ) {
$this->options = $options;
$this->init();
}
private function init() {
$this->initialize( $this->options );
}
protected function initialize( $options ) {
}
abstract protected function render_field( $options );
public function render() {
$this->render_field( $this->options );
}
public static function add_custom_attrs( $type ) {
$attr = apply_filters( 'siteorigin_widgets_contact_field_attr', array(), $type );
foreach ( $attr as $k => $v ) {
echo esc_attr( $k ) . '="' . esc_attr( $v ) . '" ';
}
}
}