File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pharmacy/www/wp-content/plugins/so-widgets-bundle/widgets/contact/fields/base.class.php
<?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 siteorigin_sanitize_attribute_key( $k ) . '="' . esc_attr( $v ) . '" ';
		}
	}
}