INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(271, 0x61646d696e, 0x6f7074696f6e5f656d61696c5f68616e646c65725f736572766572, 0, '<xf:title>{$option.title}</xf:title>\n\n<xf:form action=\"{{ link(\'options/email-handler-server\', $option) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'connection_type\') }}\">\n				{$type|to_upper}\n				<xf:hiddenval name=\"type\" value=\"{$type}\" />\n			</xf:formrow>\n\n			<xf:set var=\"$values\" value=\"{{ $type == $option.option_value.type ? $option.option_value : [] }}\" />\n\n			<xf:formrow label=\"{{ phrase(\'host\') }}\" rowtype=\"input\">\n				<div class=\"inputGroup\">\n					<xf:textbox name=\"host\" value=\"{$values.host}\" placeholder=\"{{ phrase(\'host\') }}\" size=\"40\" required=\"required\" />\n					<span class=\"inputGroup-text\">:</span>\n					<xf:textbox name=\"port\" value=\"{$values.port}\" placeholder=\"{{ phrase(\'port\') }}\" size=\"5\" required=\"required\" />\n				</div>\n			</xf:formrow>\n\n			<xf:formrow label=\"{{ phrase(\'user_name_and_password\') }}\" rowtype=\"input\">\n				<div class=\"inputGroup\">\n					<xf:textbox name=\"username\" value=\"{$values.username}\" placeholder=\"{{ phrase(\'user_name\') }}\" autocomplete=\"off\" size=\"15\" />\n					<span class=\"inputGroup-splitter\"></span>\n					<xf:textbox name=\"password\" placeholder=\"{{ phrase(\'password\') }}\" autocomplete=\"new-password\" type=\"password\" size=\"15\" />\n				</div>\n			</xf:formrow>\n\n			<xf:radiorow label=\"{{ phrase(\'encryption\') }}\" name=\"encryption\" value=\"{{ $values.encryption ?: \'\' }}\"\n				explain=\"{{ phrase(\'openssl_php_extension_required_tls_or_ssl_encryption\') }}\">\n\n				<xf:option value=\"\">{{ phrase(\'none\') }}</xf:option>\n				<xf:option value=\"tls\" disabled=\"{{ !in_array(\'tls\', $transports) }}\">STARTTLS</xf:option>\n				<xf:option value=\"ssl\" disabled=\"{{ !in_array(\'ssl\', $transports) }}\">SSL/TLS</xf:option>\n			</xf:radiorow>\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 31586 characters], 0x5846, 2030038, '2.3.0 Beta 8', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(272, 0x61646d696e, 0x6f7074696f6e5f656d61696c5f68616e646c65725f7365747570, 0, '<xf:title>{{ phrase(\'email_handler_setup\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'options/email-handler-setup\', $option) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:radiorow label=\"{$option.title}\" name=\"new_type\"\n				value=\"{{ $option.option_value.enabled ? \'unchanged\' : \'disabled\' }}\">\n\n				<xf:option value=\"disabled\">{{ phrase(\'disabled\') }}</xf:option>\n				<xf:if is=\"$option.option_value.enabled\">\n					<xf:set var=\"$unchangedHint\">\n						<ul class=\"listInline listInline--bullet listInline--selfInline\">\n							<li>{$option.option_value.type|to_upper}</li>\n							<li>{$option.option_value.host}:{$option.option_value.port}</li>\n							<xf:if is=\"$option.option_value.username\">\n								<li>{$option.option_value.username}</li>\n							</xf:if>\n							<xf:if is=\"$option.option_value.oauth AND $option.option_value.oauth.provider == \'Google\'\">\n								<li>{{ phrase(\'google_oauth\') }}</li>\n							</xf:if>\n						</ul>\n					</xf:set>\n					<xf:option value=\"unchanged\" label=\"{{ phrase(\'do_not_change\') }}\" hint=\"{$unchangedHint}\" />\n				</xf:if>\n				<xf:option value=\"pop3\">POP3</xf:option>\n				<xf:option value=\"imap\">IMAP</xf:option>\n				<xf:option value=\"google\">{{ phrase(\'google_oauth\') }}</xf:option>\n				<xf:option value=\"microsoft\">{{ phrase(\'microsoft_oauth\') }}</xf:option>\n			</xf:radiorow>\n		</div>\n		<xf:submitrow submit=\"{{ phrase(\'continue\') }}\" />\n	</div>\n</xf:form>', 0x[encoded data, 23760 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(273, 0x61646d696e, 0x6f7074696f6e5f656d61696c5f7472616e73706f72745f676f6f676c65, 0, '<xf:title>{$option.title}</xf:title>\n\n<xf:form action=\"{{ link(\'options/email-transport-oauth\', $option) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:inforow>\n				{{ phrase(\'email_transport_google_setup_explain:\') }}\n				<div><code>{$redirectUri}</code></div>\n			</xf:inforow>\n\n			<xf:textboxrow name=\"client_id\" value=\"{$option.option_value.oauth.client_id}\"\n				label=\"{{ phrase(\'client_id\') }}\"\n				explain=\"{{ phrase(\'google_client_id_explain\') }}\"\n				required=\"required\" />\n\n			<xf:textboxrow name=\"client_secret\"\n				label=\"{{ phrase(\'client_secret\') }}\"\n				explain=\"{{ phrase(\'secret_that_corresponds_to_your_google_client_id_above\') }}\"\n				required=\"required\" />\n\n			<xf:inforow>\n				{{ phrase(\'continuing_will_redirect_you_to_google_to_confirm_account_you_want_to\') }}\n			</xf:inforow>\n		</div>\n		<xf:submitrow sticky=\"true\" submit=\"{{ phrase(\'continue\') }}\" />\n	</div>\n	<xf:hiddenval name=\"oauth_provider\">google</xf:hiddenval>\n</xf:form>', 0x[encoded data, 14626 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(274, 0x61646d696e, 0x6f7074696f6e5f656d61696c5f7472616e73706f72745f6d6963726f736f6674, 0, '<xf:title>{$option.title}</xf:title>\n\n<xf:form action=\"{{ link(\'options/email-transport-oauth\', $option) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:inforow>\n				{{ phrase(\'you_will_need_to_navigate_to_microsoft_azure_portal_and_register:\') }}\n				<div><code>{$redirectUri}</code></div>\n			</xf:inforow>\n\n			<xf:textboxrow name=\"client_id\" value=\"{$option.option_value.oauth.client_id}\"\n				label=\"{{ phrase(\'client_id\') }}\"\n				explain=\"{{ phrase(\'you_can_get_client_id_via_microsoft_azure_portal\') }}\"\n				required=\"required\" />\n\n			<xf:textboxrow name=\"client_secret\"\n				label=\"{{ phrase(\'client_secret\') }}\"\n				explain=\"{{ phrase(\'secret_that_corresponds_to_your_azure_client_id_above\') }}\"\n				required=\"required\" />\n\n			<xf:inforow>\n				{{ phrase(\'continuing_will_redirect_you_to_microsoft_to_confirm_account_you_want\') }}\n			</xf:inforow>\n		</div>\n		<xf:submitrow sticky=\"true\" submit=\"{{ phrase(\'continue\') }}\" />\n	</div>\n	<xf:hiddenval name=\"oauth_provider\">microsoft</xf:hiddenval>\n</xf:form>\n', 0x[encoded data, 14904 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(275, 0x61646d696e, 0x6f7074696f6e5f656d61696c5f7472616e73706f72745f736572766572, 0, '<xf:title>{$option.title}</xf:title>\n\n<xf:form action=\"{{ link(\'options/email-transport-server\', $option) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'connection_type\') }}\">\n				{$type|to_upper}\n				<xf:hiddenval name=\"emailTransport\" value=\"{$type}\" />\n			</xf:formrow>\n\n			<xf:set var=\"$values\" value=\"{{ $type == $option.option_value.emailTransport ? $option.option_value : [] }}\" />\n\n			<xf:formrow label=\"{{ phrase(\'host\') }}\" rowtype=\"input\">\n				<div class=\"inputGroup\">\n					<xf:textbox name=\"smtpHost\" value=\"{$values.smtpHost}\" placeholder=\"{{ phrase(\'host\') }}\" size=\"40\" required=\"required\" />\n					<span class=\"inputGroup-text\">:</span>\n					<xf:textbox name=\"smtpPort\" value=\"{$values.smtpPort}\" placeholder=\"{{ phrase(\'port\') }}\" size=\"5\" required=\"required\" />\n				</div>\n			</xf:formrow>\n\n			<xf:radiorow label=\"{{ phrase(\'authentication\') }}\" name=\"smtpAuth\" value=\"{{ $values.smtpAuth ?: \'none\' }}\">\n				<xf:option value=\"none\">{{ phrase(\'none\') }}</xf:option>\n				<xf:option value=\"login\" label=\"{{ phrase(\'user_name_and_password\') }}\">\n					<xf:dependent>\n						<div class=\"inputGroup\">\n							<xf:textbox name=\"smtpLoginUsername\" value=\"{$values.smtpLoginUsername}\" placeholder=\"{{ phrase(\'user_name\') }}\" size=\"15\" />\n							<span class=\"inputGroup-splitter\"></span>\n							<xf:textbox name=\"smtpLoginPassword\" placeholder=\"{{ phrase(\'password\') }}\" type=\"password\" size=\"15\" />\n						</div>\n					</xf:dependent>\n				</xf:option>\n			</xf:radiorow>\n\n			<xf:checkboxrow>\n				<xf:option name=\"smtpSsl\" checked=\"{$values.smtpSsl}\"\n					label=\"{{ phrase(\'use_ssl_tls\') }}\"\n					hint=\"{{ phrase(\'email_transport_smtp_ssl_hint\') }}\" />\n			</xf:checkboxrow>\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 30468 characters], 0x5846, 2030055, '2.3.0 Release Candidate 5', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(276, 0x61646d696e, 0x6f7074696f6e5f656d61696c5f7472616e73706f72745f7365747570, 0, '<xf:title>{{ phrase(\'email_transport_setup\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'options/email-transport-setup\', $option) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:radiorow label=\"{$option.title}\" name=\"new_type\" value=\"unchanged\">\n				<xf:set var=\"$unchangedHint\">\n					<ul class=\"listInline listInline--bullet listInline--selfInline\">\n						<li>{{ $option.option_value.emailTransport == \'sendmail\' ? phrase(\'php_built_in_mail_system\') : $option.option_value.emailTransport|to_upper }}</li>\n						<xf:if is=\"$option.option_value.smtpHost\">\n							<li>{$option.option_value.smtpHost}:{$option.option_value.smtpPort}</li>\n						</xf:if>\n						<xf:if is=\"$option.option_value.smtpLoginUsername\">\n							<li>{$option.option_value.smtpLoginUsername}</li>\n						</xf:if>\n						<xf:if is=\"$option.option_value.smtpSsl\">\n							<li>SSL/TLS</li>\n						</xf:if>\n						<xf:if is=\"$option.option_value.oauth AND $option.option_value.oauth.provider == \'Google\'\">\n							<li>{{ phrase(\'google_oauth\') }}</li>\n						</xf:if>\n						<xf:if is=\"$option.option_value.oauth AND $option.option_value.oauth.provider == \'Microsoft\'\">\n							<li>{{ phrase(\'microsoft_oauth\') }}</li>\n						</xf:if>\n					</ul>\n				</xf:set>\n\n				<xf:option value=\"unchanged\" label=\"{{ phrase(\'do_not_change\') }}\" hint=\"{$unchangedHint}\" />\n				<xf:option value=\"sendmail\" label=\"{{ phrase(\'php_built_in_mail_system\') }}\" />\n				<xf:option value=\"smtp\" label=\"SMTP\" />\n				<xf:option value=\"google\">{{ phrase(\'google_oauth\') }}</xf:option>\n				<xf:option value=\"microsoft\">{{ phrase(\'microsoft_oauth\') }}</xf:option>\n			</xf:radiorow>\n		</div>\n		<xf:submitrow submit=\"{{ phrase(\'continue\') }}\" />\n	</div>\n</xf:form>', 0x[encoded data, 26998 characters], 0x5846, 2030055, '2.3.0 Release Candidate 5', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(277, 0x61646d696e, 0x6f7074696f6e5f67726f75705f65646974, 0, '<xf:if is=\"$group.isInsert()\">\n	<xf:title>{{ phrase(\'add_option_group\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_option_group:\') }} {$group.title}</xf:title>\n</xf:if>\n\n<xf:if is=\"$group.isUpdate()\">\n	<xf:breadcrumb href=\"{{ link(\'options/groups\', $group) }}\">{$group.title}</xf:breadcrumb>\n\n	<xf:pageaction>\n		<xf:button href=\"{{ link(\'options/groups/delete\', $group) }}\" icon=\"delete\" overlay=\"true\" />\n	</xf:pageaction>\n</xf:if>\n\n<xf:form action=\"{{ link(\'options/groups/save\', $group) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n\n			<xf:textboxrow name=\"group_id\" value=\"{$group.group_id}\"\n				label=\"{{ phrase(\'group_id\') }}\"\n				dir=\"ltr\" />\n\n			<hr class=\"formRowSep\" />\n\n			<xf:textboxrow name=\"title\" value=\"{$group}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:textarearow name=\"description\" value=\"{$group}\"\n				autosize=\"true\"\n				label=\"{{ phrase(\'description\') }}\"\n				hint=\"{{ phrase(\'you_may_use_html\') }}\" />\n\n			<xf:textboxrow name=\"icon\" value=\"{$group.icon}\"\n				label=\"{{ phrase(\'icon\') }}\" />\n\n			<hr class=\"formRowSep\" />\n\n			<xf:macro id=\"display_order_macros::row\" arg-value=\"{$group}\" />\n\n			<xf:checkboxrow>\n				<xf:option name=\"advanced\" selected=\"{$group.advanced}\">{{ phrase(\'show_in_advanced_mode_only\') }}</xf:option>\n				<xf:option name=\"debug_only\" selected=\"{$group.debug_only}\">{{ phrase(\'display_this_group_in_debug_mode_only\') }}</xf:option>\n			</xf:checkboxrow>\n\n			<xf:macro id=\"addon_macros::addon_edit\" arg-addOnId=\"{$group.addon_id}\" />\n		</div>\n\n		<xf:submitrow icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 27916 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(278, 0x61646d696e, 0x6f7074696f6e5f67726f75705f6c697374, 0, '<xf:title>{{ phrase(\'options\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:if is=\"$canAdd\">\n		<xf:button href=\"{{ link(\'options/groups/add\') }}\" icon=\"add\">{{ phrase(\'add_option_group\') }}</xf:button>\n	</xf:if>\n	<xf:button class=\"acp--simple\" data-xf-init=\"admin-toggle-advanced\" data-value=\"1\" data-url=\"{{ link(\'account/toggle-advanced\') }}\">{{ phrase(\'show_advanced_options\') }}</xf:button>\n</xf:pageaction>\n\n<div class=\"block\">\n	<div class=\"block-outer\">\n		<xf:macro id=\"filter_macros::quick_filter\" arg-key=\"options\" arg-class=\"block-outer-opposite\" />\n	</div>\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:datalist>\n				<xf:foreach loop=\"$groups\" value=\"$group\">\n					<xf:datarow\n						icon=\"{{ $group.icon ?: \'fa-cogs\' }}\"\n						label=\"{$group.title}\"\n						href=\"{{ link(\'options/groups\', $group) }}\"\n						explain=\"{$group.description}\"\n						delete=\"{{ $group.canEdit() ? link(\'options/groups/delete\', $group) : false }}\"\n						hash=\"{$group.group_id}\"\n						rowclass=\"{{ $group.advanced ? \'acp--advanced\' : \'\' }}\">\n\n						<xf:if is=\"$group.canEdit()\">\n							<xf:action href=\"{{ link(\'options/groups/edit\', $group) }}\">{{ phrase(\'edit\') }}</xf:action>\n						</xf:if>\n					</xf:datarow>\n				</xf:foreach>\n			</xf:datalist>\n		</div>\n		<div class=\"block-footer\">\n			<span class=\"block-footer-counter\">{{ display_totals($groups) }}</span>\n		</div>\n	</div>\n</div>', 0x[encoded data, 21924 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(279, 0x61646d696e, 0x6f7074696f6e5f67726f75705f6d656e75, 0, '<h3 class=\"menu-header\">{{ phrase(\'options\') }}</h3>\n<ul class=\"listPlain listColumns listColumns--3 listColumns--together\">\n	<xf:foreach loop=\"$groups\" key=\"$groupId\" value=\"$group\">\n		<li class=\"optionGroup {{ $group.advanced ? \'acp--advanced\' : \'\' }}\">\n			<a class=\"menu-linkRow\" href=\"{{ link(\'options/groups\', {\'group_id\': $groupId}) }}\">\n				<xf:if is=\"$group.icon\">\n					<xf:fa icon=\"{$group.icon} fa-fw\" />\n				<xf:else />\n					<xf:fa icon=\"fa-cogs fa-fw\" />\n				</xf:if>\n				{$group.title}\n			</a>\n		</li>\n	</xf:foreach>\n</ul>\n<hr class=\"menu-separator menu-separator--hard\">\n<div class=\"menu-row menu-row--alt\">\n	<xf:checkbox>\n		<xf:option\n			selected=\"{$xf.visitor.Admin.advanced}\"\n			class=\"js-advancedModeToggle\"\n			label=\"{{ phrase(\'show_advanced_options\') }}\"\n			data-xf-init=\"admin-toggle-advanced\"\n			data-url=\"{{ link(\'account/toggle-advanced\') }}\" />\n	</xf:checkbox>\n</div>', 0x[encoded data, 14020 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(280, 0x61646d696e, 0x6f7074696f6e5f6c697374, 0, '<xf:title>{$group.title}</xf:title>\n<xf:h1>\n	<span class=\"menuTrigger\" data-xf-click=\"menu\" role=\"button\" tabindex=\"0\" aria-expanded=\"false\" aria-haspopup=\"true\">{$group.title}</span>\n	<div class=\"menu menu--medium\" data-menu=\"menu\" aria-hidden=\"true\">\n		<div class=\"menu-content\">\n			<h3 class=\"menu-header\">{{ phrase(\'options_groups\') }}</h3>\n			<div class=\"menu-scroller\">\n				<xf:foreach loop=\"$groups\" value=\"$_group\">\n					<a href=\"{{ link(\'options/groups/\', $_group) }}\" class=\"menu-linkRow {{ $_group.group_id == $group.group_id ? \'is-selected\' : \'\' }} {{ $_group.advanced ? \'acp--advanced\' : \'\' }}\">\n						<xf:if is=\"$_group.icon\">\n							<xf:fa icon=\"{$_group.icon} fa-fw\" />\n						<xf:else />\n							<xf:fa icon=\"fa-cogs fa-fw\" />\n						</xf:if>\n						{$_group.title}\n					</a>\n				</xf:foreach>\n			</div>\n		</div>\n	</div>\n</xf:h1>\n<xf:description>{$group.description}</xf:description>\n\n<xf:pageaction><xf:trim>\n	<xf:if is=\"$canAdd\">\n		<xf:button href=\"{{ link(\'options/add\', null, {\'group_id\': $group.group_id}) }}\" icon=\"add\">{{ phrase(\'add_option\') }}</xf:button>\n	</xf:if>\n	<xf:if is=\"$group.canEdit()\">\n		<xf:button href=\"{{ link(\'options/groups/edit\', $group) }}\" icon=\"edit\">{{ phrase(\'edit_group\') }}</xf:button>\n	</xf:if>\n</xf:trim></xf:pageaction>\n\n<xf:macro id=\"option_macros::option_form_block\"\n	arg-group=\"{$group}\"\n	arg-options=\"{$group.Options}\"\n	arg-forceShowAdvanced=\"{{ false }}\" />', 0x[encoded data, 25616 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(281, 0x61646d696e, 0x6f7074696f6e5f6d6163726f73, 0, '<xf:macro id=\"option_row\" arg-group=\"\" arg-option=\"!\" arg-includeAddOnHint=\"{{ true }}\" arg-forceShowAdvanced=\"{{ false }}\">\n	<xf:set var=\"$formatParams\" value=\"{$option.formatParams}\" />\n	<xf:set var=\"$rowClass\" value=\"{{ ($option.advanced AND !$forceShowAdvanced) ? \'acp--advanced\' : \'\' }}\" />\n	<xf:set var=\"$inputName\"><xf:macro id=\"input_name\" arg-id=\"{$option.option_id}\" /></xf:set>\n	<xf:set var=\"$listedHtml\">\n		<xf:macro id=\"listed_html\" arg-id=\"{$option.option_id}\" />\n	</xf:set>\n	<xf:set var=\"$hintHtml\"><xf:trim>\n		<xf:if is=\"$option.canEdit()\">\n			<xf:macro id=\"option_edit_link\" arg-group=\"{$group}\" arg-option=\"{$option}\" />\n		</xf:if>\n		<xf:if is=\"$includeAddOnHint AND $group AND $option.addon_id AND $option.addon_id != $group.addon_id AND $option.addon_id != \'XF\'\">\n			<span class=\"formRow-hint-featured\">\n				<a href=\"{{ link(\'add-ons/options\', $option.AddOn) }}\">{$option.AddOn.title}</a>\n			</span>\n		</xf:if>\n	</xf:trim></xf:set>\n	<xf:set var=\"$explainHtml\">{$option.explain}</xf:set>\n\n	<span class=\"u-anchorTarget\" id=\"{$option.option_id}\"></span>\n\n	<xf:if is=\"$option.edit_format == \'onoff\'\">\n		<xf:checkboxrow hint=\"{$hintHtml}\" rowclass=\"{$rowClass}\">\n			<xf:option name=\"{$inputName}\" value=\"1\" selected=\"$option.option_value == 1\">\n				<xf:label>{$option.title}</xf:label>\n			</xf:option>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:checkboxrow>\n	<xf:elseif is=\"$option.edit_format == \'onofftextbox\'\" />\n		<xf:checkboxrow hint=\"{$hintHtml}\" rowclass=\"{$rowClass}\">\n			<xf:option name=\"{$inputName}[{$formatParams.onoff}]\" value=\"1\" selected=\"{$option.option_value.{$formatParams.onoff}}\">\n				<xf:label>{$option.title}</xf:label>\n				<xf:dependent>\n					<xf:if is=\"{$formatParams.type} == \'spinbox\'\">\n						<xf:numberbox name=\"{$inputName}[{$formatParams.value}]\" value=\"{{ $option.option_value.{$formatParams.onoff} ? $option.option_value.{$formatParams.value} : $formatParams.default|nl2nl }}\" min=\"{$formatParams.min}\" max=\"{$formatParams.max}\" step=\"{$formatParams.step}\" data-step=\"{$formatParams.stepOverride}\" units=\"{$formatParams.units}\" />\n					<xf:elseif is=\"{$formatParams.type} == \'textarea\'\" />\n						<xf:textarea name=\"{$inputName}[{$formatParams.value}]\" value=\"{{ $option.option_value.{$formatParams.onoff} ? $option.option_value.{$formatParams.value} : $formatParams.default|nl2nl }}\" maxlength=\"{$formatParams.maxlength}\" rows=\"{$formatParams.rows}\" autosize=\"true\" />\n					<xf:else />\n						<xf:textbox name=\"{$inputName}[{$formatParams.value}]\" value=\"{{ $option.option_value.{$formatParams.onoff} ? $option.option_value.{$formatParams.value} : $formatParams.default|nl2nl }}\" placeholder=\"{$formatParams.placeholder}\" maxlength=\"{$formatParams.maxlength}\" />\n					</xf:if>\n				</xf:dependent>\n			</xf:option>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:checkboxrow>\n	<xf:elseif is=\"$option.edit_format == \'radio\'\" />\n		<xf:radiorow name=\"{$inputName}\" value=\"{$option.option_value}\" rowclass=\"{$rowClass}\">\n			<xf:options source=\"{$formatParams}\" />\n			<xf:label>{$option.title}</xf:label>\n			<xf:hint>{$hintHtml}</xf:hint>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:radiorow>\n	<xf:elseif is=\"$option.edit_format == \'select\'\" />\n		<xf:selectrow name=\"{$inputName}\" value=\"{$option.option_value}\" rowclass=\"{$rowClass}\">\n			<xf:options source=\"{$formatParams}\" />\n			<xf:label>{$option.title}</xf:label>\n			<xf:hint>{$hintHtml}</xf:hint>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:selectrow>\n	<xf:elseif is=\"$option.edit_format == \'checkbox\'\" />\n		<xf:checkboxrow rowclass=\"{$rowClass}\">\n			<xf:foreach loop=\"$formatParams\" key=\"$name\" value=\"$text\">\n				<xf:option name=\"{$inputName}[{$name}]\" selected=\"{$option.option_value.{$name}}\">{$text}</xf:option>\n			</xf:foreach>\n			<xf:label>{$option.title}</xf:label>\n			<xf:hint>{$hintHtml}</xf:hint>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:checkboxrow>\n	<xf:elseif is=\"$option.edit_format == \'spinbox\'\" />\n		<xf:numberboxrow name=\"{$inputName}\" value=\"{$option.option_value}\" rowclass=\"{$rowClass}\"\n			min=\"{$formatParams.min}\" max=\"{$formatParams.max}\" step=\"{$formatParams.step}\" data-step=\"{$formatParams.stepOverride}\" units=\"{$formatParams.units}\"\n			label=\"{$option.title}\"\n			hint=\"{$hintHtml}\"\n			explain=\"{$explainHtml}\"\n			finalhtml=\"{$listedHtml}\" />\n	<xf:elseif is=\"$option.edit_format == \'callback\'\" />\n		<xf:set var=\"$includeHtml\">{{ $option.renderDisplayCallback({\n				\'explainHtml\': $explainHtml,\n				\'hintHtml\': $hintHtml,\n				\'listedHtml\': $listedHtml,\n				\'inputName\': $inputName,\n				\'rowClass\': $rowClass\n			})|raw }}</xf:set>\n		<xf:if is=\"$includeHtml is empty\">\n			<xf:formrow rowclass=\"{$rowClass}\">\n				<div class=\"blockMessage blockMessage--error blockMessage--iconic\">\n					DEBUG: {{ $option.getDisplayCallbackError() }}\n					{$hintHtml}\n				</div>\n			</xf:formrow>\n		<xf:else />\n			{$includeHtml}\n		</xf:if>\n	<xf:elseif is=\"$option.edit_format == \'template\'\" />\n		<xf:set var=\"$includeHtml\"><xf:include template=\"{$formatParams.template}\" /></xf:set>\n		<xf:if is=\"$includeHtml is empty\">\n			<xf:formrow rowclass=\"{$rowClass}\">\n				<div class=\"blockMessage blockMessage--error blockMessage--iconic\">\n					DEBUG: {{ phrase(\'template_x_not_found\', {\'template\': $formatParams.template}) }}\n					{$hintHtml}\n				</div>\n\n			</xf:formrow>\n		<xf:else />\n			{$includeHtml}\n		</xf:if>\n	<xf:elseif is=\"$option.edit_format == \'textbox\' && $formatParams.rows && $formatParams.rows > 1\" />\n		<xf:textarearow name=\"{$inputName}\" value=\"{$option.option_value}\" rows=\"{$formatParams.rows}\" autosize=\"true\" class=\"{$formatParams.class}\" rowclass=\"{$rowClass}\">\n			<xf:label>{$option.title}</xf:label>\n			<xf:hint>{$hintHtml}</xf:hint>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:textarearow>\n	<xf:elseif is=\"$option.edit_format == \'textbox\'\" />\n		<xf:textboxrow name=\"{$inputName}\" value=\"{$option.option_value}\" type=\"{$formatParams.type}\" class=\"{$formatParams.class}\" rowclass=\"{$rowClass}\">\n			<xf:label>{$option.title}</xf:label>\n			<xf:hint>{$hintHtml}</xf:hint>\n			<xf:explain>{$explainHtml}</xf:explain>\n			<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n		</xf:textboxrow>\n	<xf:elseif is=\"$option.edit_format == \'username\'\" />\n		<xf:set var=\"$singleUsername\" value=\"{{ true }}\" />\n		<xf:if is=\"$option.isDataTypeNumeric()\">\n			<xf:set var=\"$user\" value=\"{$xf.app.em.find(\'XF:User\', $option.option_value)}\" />\n			<xf:set var=\"$value\" value=\"{$user.username}\" />\n		<xf:elseif is=\"$option.data_type == \'array\'\" />\n			<xf:set var=\"$users\" value=\"{{ $xf.app.em.getRepository(\'XF:User\').getUsersByIdsOrdered(is_array($option.option_value) ? $option.option_value : []) }}\" />\n			<xf:set var=\"$value\" value=\"{$users.pluckNamed(\'username\')|join(\', \')}\" />\n			<xf:set var=\"$singleUsername\" value=\"{{ false }}\" />\n		<xf:else />\n			<xf:set var=\"$value\" value=\"{$option.option_value}\" />\n		</xf:if>\n\n		<xf:if is=\"$singleUsername\">\n			<xf:textboxrow name=\"{$inputName}\" value=\"{$value}\" ac=\"single\" rowclass=\"{$rowClass}\"\n				maxlength=\"{{ max_length($xf.visitor, \'username\') }}\">\n				<xf:label>{$option.title}</xf:label>\n				<xf:hint>{$hintHtml}</xf:hint>\n				<xf:explain>{$explainHtml}</xf:explain>\n				<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n			</xf:textboxrow>\n		<xf:else />\n			<xf:tokeninputrow name=\"{$inputName}\" value=\"{$value}\" href=\"{{ link(\'users/find\') }}\" rowclass=\"{$rowClass}\"\n				explain=\"{{ phrase(\'separate_names_with_comma\') }}\">\n\n				<xf:label>{$option.title}</xf:label>\n				<xf:hint>{$hintHtml}</xf:hint>\n				<xf:explain>{$explainHtml}</xf:explain>\n				<xf:finalhtml>{$listedHtml}</xf:finalhtml>\n			</xf:tokeninputrow>\n		</xf:if>\n	<xf:else />\n		<xf:formrow>\n			<div class=\"blockMessage blockMessage--error blockMessage--iconic\">\n				DEBUG: {{ phrase(\'unknown_edit_format_x\', {\'format\': $options.edit_format}) }}\n				{$hintHtml}\n			</div>\n		</xf:formrow>\n	</xf:if>\n</xf:macro>\n\n<xf:macro id=\"input_name\" arg-id=\"!\">options[{$id}]</xf:macro>\n\n<xf:macro id=\"listed_html\" arg-id=\"!\"><xf:hiddenval name=\"options_listed[]\">{$id}</xf:hiddenval></xf:macro>\n\n<xf:macro id=\"option_edit_link\" arg-group=\"\" arg-option=\"!\">\n	<xf:if is=\"$group\">\n		{{ $option.advanced ? \'(adv)\' : \'\' }} {$option.option_id} {$option.Relations.{$group.group_id}.display_order|parens}\n	</xf:if>\n	<a href=\"{{ link(\'options/edit\', $option, $group ? {\'group_id\': $group.group_id} : {}) }}\"\n		title=\"{$option.option_id}{{ $group ? \' / \' . {$option.Relations.{$group.group_id}.display_order} : \'\' }}\"\n		data-xf-init=\"tooltip\"\n	>{{ phrase(\'edit\') }}</a>\n</xf:macro>\n\n<xf:macro id=\"option_form\" arg-group=\"\" arg-options=\"!\" arg-formClass=\"\" arg-forceShowAdvanced=\"{{ true }}\">\n	<xf:form action=\"{{ link(\'options/update\') }}\" ajax=\"true\" class=\"{$formClass}\">\n		<xf:foreach loop=\"$options\" value=\"$option\">\n			<xf:macro  name=\"option_row\" arg-group=\"{$group}\" arg-option=\"{$option}\" arg-forceShowAdvanced=\"{$forceShowAdvanced}\" />\n		</xf:foreach>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</xf:form>\n</xf:macro>\n\n<xf:macro id=\"option_form_block\" arg-group=\"\" arg-options=\"!\" arg-containerBeforeHtml=\"\" arg-forceShowAdvanced=\"{{ true }}\">\n\n	<xf:set var=\"$hundred\" value=\"0\" />\n\n	<xf:if is=\"$options is not empty\">\n		<xf:form action=\"{{ link(\'options/update\') }}\" ajax=\"true\" class=\"block\">\n			<div class=\"block-container\">\n				{$containerBeforeHtml|raw}\n				<div class=\"block-body\">\n					<xf:foreach loop=\"$options\" value=\"$option\">\n\n						<xf:if is=\"$group\">\n							<xf:set var=\"$curHundred\" value=\"{{ floor($option.Relations.{$group.group_id}.display_order / 100) }}\" />\n							<xf:if is=\"{{ $curHundred > $hundred }}\">\n								<xf:set var=\"$hundred\" value=\"{$curHundred}\" />\n								<hr class=\"formRowSep\" />\n							</xf:if>\n						</xf:if>\n\n						<xf:macro id=\"option_row\" arg-group=\"{$group}\" arg-option=\"{$option}\" arg-forceShowAdvanced=\"{$forceShowAdvanced}\" />\n					</xf:foreach>\n				</div>\n				<xf:submitrow sticky=\"true\" icon=\"save\" />\n			</div>\n\n			<xf:if is=\"!$forceShowAdvanced\">\n				<xf:set var=\"$advancedCount\" value=\"{{ 0 }}\" />\n				<xf:foreach loop=\"$options\" value=\"$option\" if=\"$option.advanced\"><xf:set var=\"$advancedCount\" value=\"{{ $advancedCount + 1 }}\" /></xf:foreach>\n				<xf:if is=\"$advancedCount > 0\">\n					<div class=\"block-outer block-outer--after acp--simple\">\n						<div class=\"block-outer-middle block-outer-hint\">\n							{{ phrase(\'list_contains_advanced_options_hidden\') }}\n							<a tabindex=\"0\" role=\"button\" data-xf-init=\"admin-toggle-advanced\" data-value=\"1\" data-url=\"{{ link(\'account/toggle-advanced\') }}\">{{ phrase(\'enable_advanced_mode\') }}</a>\n						</div>\n					</div>\n				</xf:if>\n			</xf:if>\n		</xf:form>\n	</xf:if>\n</xf:macro>', 0x[encoded data, 207904 characters], 0x5846, 2030038, '2.3.0 Beta 8', 1748686057);
