import(common.tpl)

.settings input[type="text"]|value = <?php 
	$_setting = '@@__name:\[(.*)\]__@@';
	echo htmlspecialchars($_POST['settings'][$_setting] ?? Vvveb\getSetting('ai-assistant',$_setting, null, $this->site_id) ?? Vvveb\getSetting('ai-assistant',$_setting, null, $this->site_id) ?? $this->defaults[$_setting] ?? '');
	//name="settings[setting-name] > get only setting-name
?>

.settings textarea = <?php 
	$_setting = '@@__name:\[(.*)\]__@@';
	echo htmlspecialchars($_POST['settings'][$_setting] ?? Vvveb\getSetting('ai-assistant',$_setting, null, $this->site_id) ?? Vvveb\getSetting('ai-assistant',$_setting, null, $this->site_id) ?? $this->defaults[$_setting] ?? '');
?>

.settings select|before = <?php 
	$_setting = '@@__name:\[(.*)\]__@@';
	$value = $_POST['settings'][$_setting] ?? Vvveb\getSetting('ai-assistant', $_setting, null, $this->site_id) ?? Vvveb\getSetting('ai-assistant', $_setting, null, $this->site_id) ?? $this->defaults[$_setting] ?? '';
	//name="settings[setting-name] > get only setting-name
?>

.settings select option|addNewAttribute = <?php 
	if ($value === '@@__value__@@') echo 'selected';
?>