<?php 
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="wbw-settings-form row waic-field-block" data-block="title">
	<div class="wbw-settings-label col-2"><?php echo esc_html($fields[$field]['label']); ?></div>
	<div class="wbw-settings-fields col-10 waic-editable">
		<i class="fa fa-refresh wbw-refresh-button<?php echo esc_attr(empty($data['g']) || empty($data['s']) ? ' waic-invisible' : ''); ?>"></i>
		<div class="wbw-settings-field">
		<?php 
			WaicHtml::text('title', array(
				'value' => empty($data['s']) ? $this->props['loading_text'] : ( 2 == $data['s'] ? WaicUtils::getArrayValue($data, 'm', $this->props['error_text']) : WaicUtils::getArrayValue($data, 'r', $this->props['loading_text']) ),
				'attrs' => 'class="waic-results-' . $data['s'] . '"',
			));
			?>
		</div>
	</div>
</div>