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/text.class.php
<?php

class SiteOrigin_Widget_ContactForm_Field_Text extends SiteOrigin_Widget_ContactForm_Field_Base {
	public function __construct( $options ) {
		$this->type = 'text';
		parent::__construct( $options );
	}

	public function render_field( $options ) {
		?>
		<input
			type="<?php echo $options['field']['type']; ?>"
			name="<?php echo esc_attr( $options['field_name'] ); ?>"
			id="<?php echo esc_attr( $options['field_id'] ); ?>"
			value="<?php echo esc_attr( $options['value'] ); ?>"
			class="sow-text-field"<?php echo $options['show_placeholder'] ? 'placeholder="' . esc_attr( $options['label'] ) . '"' : ''; ?>
			<?php self::add_custom_attrs( $this->type ); ?>
			<?php if ( ! empty( $options['field']['readonly'] ) ) {
				echo 'readonly';
			} ?>
		/>
		<?php
	}
}