Noptin_Sidebar::form( array $instance )

Output widget settings


Parameters Parameters

$instance

(array) (Required) current instance options.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-noptin-sidebar.php

	public function form( $instance ) {
		$form = ! empty( $instance['form'] ) ? $instance['form'] : '';
		?>

	<p>

		<label for="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>">
			<?php esc_attr_e( 'Form:', 'newsletter-optin-box' ); ?>
		</label>

		<select
			name="<?php echo esc_attr( $this->get_field_name( 'form' ) ); ?>"
			class="widefat"
			id="<?php echo esc_attr( $this->get_field_id( 'form' ) ); ?>"
		>
			<option value="" <?php selected( '', $form ); ?>><?php esc_html_e( 'Select a form', 'newsletter-optin-box' ); ?></option>
			<?php $this->forms_select( $form ); ?>
		</select>
	</p>

		<?php
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.5Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation