<p>
	<label for="<?php echo esc_attr($widget->get_field_id('title')); ?>"><?php esc_html_e('Title:'); ?></label> 
	<input class="widefat" id="<?php echo esc_attr($widget->get_field_id('title')); ?>" name="<?php echo esc_attr($widget->get_field_name('title')); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
</p>

<p>
	<input id="<?php echo esc_attr($widget->get_field_name('visibility')); ?>" name="<?php echo esc_attr($widget->get_field_name('visibility')); ?>" type="checkbox" value="1" <?php checked($instance['visibility'], 1, true); ?> />
	<label for="<?php echo esc_attr($widget->get_field_id('visibility')); ?>"><?php esc_html_e('Show only on directory pages'); ?></label> 
</p>