INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(511, 0x61646d696e, 0x757365725f757067726164655f6c697374, 0, '<xf:title>{{ phrase(\'user_upgrades\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'user-upgrades/add\') }}\" icon=\"add\">{{ phrase(\'add_user_upgrade\') }}</xf:button>\n</xf:pageaction>\n\n<xf:if is=\"!$xf.livePayments\">\n	<div class=\"blockMessage blockMessage--important blockMessage--iconic\">\n		{{ phrase(\'live_payments_have_been_disabled\') }}\n	</div>\n</xf:if>\n\n<xf:if is=\"$upgrades is not empty\">\n	<xf:form action=\"{{ link(\'user-upgrades/toggle\') }}\" class=\"block\" ajax=\"true\">\n		<div class=\"block-outer\">\n			<xf:macro id=\"filter_macros::quick_filter\"\n				arg-key=\"user-upgrades\"\n				arg-class=\"block-outer-opposite\" />\n		</div>\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$upgrades\" value=\"$upgrade\">\n						<xf:datarow\n								label=\"{$upgrade.title}\"\n								hint=\"{$upgrade.cost_phrase}\"\n								href=\"{{ link(\'user-upgrades/edit\', $upgrade) }}\"\n								delete=\"{{ link(\'user-upgrades/delete\', $upgrade) }}\">\n\n							<xf:toggle name=\"can_purchase[{$upgrade.user_upgrade_id}]\" selected=\"$upgrade.can_purchase\"\n								class=\"dataList-cell--separated\" submit=\"true\"\n								tooltip=\"{{ phrase(\'enable_disable_x\', {\'title\': $upgrade.title}) }}\"/>\n\n							<xf:popup class=\"dataList-cell--action\">\n								<div class=\"menu\" data-menu=\"menu\" aria-hidden=\"true\">\n									<div class=\"menu-content\">\n										<h3 class=\"menu-header\">{{ phrase(\'actions\') }}</h3>\n										<a href=\"{{ link(\'user-upgrades/active\', $upgrade) }}\" class=\"menu-linkRow\">{{ phrase(\'view_users\') }}</a>\n										<a href=\"{{ link(\'user-upgrades/expired\', $upgrade) }}\" class=\"menu-linkRow\">{{ phrase(\'view_expired_upgrades\') }}</a>\n										<a href=\"{{ link(\'user-upgrades/manual\', $upgrade) }}\" class=\"menu-linkRow\">{{ phrase(\'manually_upgrade_user\') }}</a>\n									</div>\n								</div>\n							</xf:popup>\n\n						</xf:datarow>\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n			<div class=\"block-footer\">\n				<span class=\"block-footer-counter\">{{ display_totals($upgrades) }}</span>\n			</div>\n		</div>\n	</xf:form>\n\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<h2 class=\"block-header\"><a href=\"{{ link(\'user-upgrades/active\') }}\">{{ phrase(\'active_user_upgrades\') }}</a></h2>\n			<xf:if is=\"$activeUpgrades is not empty\">\n				<div class=\"block-body\">\n					<xf:macro id=\"upgrade_list\" arg-upgrades=\"{$activeUpgrades}\" arg-active=\"1\" />\n				</div>\n				<div class=\"block-footer block-footer--split\">\n					<span class=\"block-footer-counter\">{{ display_totals($activeUpgrades, $totalActiveUpgrades) }}</span>\n					<span class=\"block-footer-controls\"><xf:button href=\"{{ link(\'user-upgrades/active\') }}\">{{ phrase(\'view_more...\') }}</xf:button></span>\n				</div>\n			<xf:else />\n				<div class=\"block-body block-row\">{{ phrase(\'no_results_found\') }}</div>\n			</xf:if>\n		</div>\n	</div>\n\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<h2 class=\"block-header\"><a href=\"{{ link(\'user-upgrades/expired\') }}\">{{ phrase(\'expired_user_upgrades\') }}</a></h2>\n			<xf:if is=\"$expiredUpgrades is not empty\">\n				<div class=\"block-body\">\n					<xf:macro id=\"upgrade_list\" arg-upgrades=\"{$expiredUpgrades}\" arg-active=\"0\" />\n				</div>\n				<div class=\"block-footer block-footer--split\">\n					<span class=\"block-footer-counter\">{{ display_totals($expiredUpgrades, $totalExpiredUpgrades) }}</span>\n					<span class=\"block-footer-controls\"><xf:button href=\"{{ link(\'user-upgrades/expired\') }}\">{{ phrase(\'view_more...\') }}</xf:button></span>\n				</div>\n			<xf:else />\n				<div class=\"block-body block-row\">{{ phrase(\'no_results_found\') }}</div>\n			</xf:if>\n		</div>\n	</div>\n<xf:else />\n	<div class=\"blockMessage\">{{ phrase(\'no_items_have_been_created_yet\') }}</div>\n</xf:if>\n\n<xf:macro id=\"upgrade_list\"\n	arg-upgrades=\"!\"\n	arg-viewMoreUrl=\"\"\n	arg-active=\"1\">\n\n	<xf:datalist data-xf-init=\"responsive-data-list\">\n		<xf:datarow rowtype=\"header\">\n			<xf:cell>{{ phrase(\'user\') }}</xf:cell>\n			<xf:cell>{{ phrase(\'upgrade_title\') }}</xf:cell>\n			<xf:cell>{{ phrase(\'payment_profile\') }}</xf:cell>\n			<xf:cell>{{ phrase(\'start_date\') }}</xf:cell>\n			<xf:cell colspan=\"{{ $active ? 3 : 1 }}\">{{ phrase(\'end_date\') }}</xf:cell>\n		</xf:datarow>\n		<xf:foreach loop=\"$upgrades\" value=\"$upgrade\">\n			<xf:datarow rowclass=\"dataList-row--noHover\">\n				<xf:cell>\n					<xf:username user=\"{$upgrade.User}\" defaultname=\"{{ phrase(\'unknown_user\') }}\" href=\"{{ link(\'users/edit\', $upgrade.User) }}\" />\n				</xf:cell>\n				<xf:cell>\n					<a href=\"{{ link(\'user-upgrades/edit\', $upgrade.Upgrade) }}\">{$upgrade.Upgrade.title}</a>\n				</xf:cell>\n				<xf:cell>\n					<xf:set var=\"$paymentProfile\" value=\"{$upgrade.PurchaseRequest.PaymentProfile}\" />\n					<xf:if is=\"$paymentProfile\">\n						<a href=\"{{ link(\'payment-profiles/edit\', $paymentProfile) }}\">{$paymentProfile.title}</a>\n					<xf:else />\n						{{ phrase(\'n_a\') }}\n					</xf:if>\n				</xf:cell>\n				<xf:cell><xf:date time=\"{$upgrade.start_date}\" /></xf:cell>\n				<xf:cell>{{ $upgrade.end_date ? date($upgrade.end_date) : phrase(\'permanent\') }}</xf:cell>\n				<xf:if is=\"$active\">\n					<xf:action overlay=\"true\" href=\"{{ link(\'user-upgrades/edit-active\', null, {\'user_upgrade_record_id\': $upgrade.user_upgrade_record_id}) }}\">{{ phrase(\'edit\') }}</xf:action>\n					<xf:action overlay=\"true\" href=\"{{ link(\'user-upgrades/downgrade\', null, {\'user_upgrade_record_id\': $upgrade.user_upgrade_record_id}) }}\">{{ phrase(\'downgrade\') }}</xf:action>\n				</xf:if>\n			</xf:datarow>\n		</xf:foreach>\n	</xf:datalist>\n</xf:macro>', 0x[encoded data, 83298 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
(512, 0x61646d696e, 0x757365725f757067726164655f6d616e75616c, 0, '<xf:title>{{ phrase(\'manually_upgrade_user\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'user-upgrades/manual\', $upgrade) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"username\" ac=\"single\"\n				label=\"{{ phrase(\'user_name\') }}\" />\n\n			<xf:formrow label=\"{{ phrase(\'upgrade_to_apply\') }}\">{$upgrade.title}</xf:formrow>\n\n			<xf:comment><xf:dateinputrow name=\"end_date\" value=\"{{ !$endDate ?: date($endDate, \'picker\') }}\"\n				label=\"{{ phrase(\'upgrade_ends\') }}\" /></xf:comment>\n\n			<xf:radiorow name=\"end_type\"\n				label=\"{{ phrase(\'upgrade_ends\') }}\">\n\n				<xf:option value=\"permanent\" selected=\"!{$endDate}\">{{ phrase(\'permanent\') }}</xf:option>\n				<xf:option value=\"date\" selected=\"{$endDate}\" label=\"{{ phrase(\'date:\') }}\">\n					<xf:dateinput name=\"end_date\" value=\"{{ $endDate ? date($endDate, \'picker\') : date($xf.time, \'picker\') }}\" />\n				</xf:option>\n			</xf:radiorow>\n		</div>\n		<xf:submitrow submit=\"{{ phrase(\'upgrade\') }}\" />\n	</div>\n</xf:form>', 0x[encoded data, 16108 characters], 0x5846, 2000270, '2.0.2', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(513, 0x61646d696e, 0x7761726e696e675f616374696f6e5f65646974, 0, '<xf:if is=\"$action.isInsert()\">\n	<xf:title>{{ phrase(\'add_warning_action\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_warning_action:\') }} {{ phrase(\'points:\') }} {$action.points}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$action.isUpdate()\">\n	<xf:button href=\"{{ link(\'warnings/actions/delete\', $action) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'warnings/actions/save\', $action) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:numberboxrow name=\"points\" value=\"{$action}\"\n				label=\"{{ phrase(\'points_threshold\') }}\"\n				explain=\"{{ phrase(\'warning_action_applied_crossing_threshold\') }}\" />\n\n			<xf:radiorow name=\"action\" value=\"{$action}\"\n				label=\"{{ phrase(\'action_to_take\') }}\">\n\n				<xf:option value=\"ban\"\n					label=\"{{ phrase(\'ban\') }}\" />\n				<xf:option value=\"discourage\"\n					label=\"{{ phrase(\'discourage\') }}\" />\n				<xf:option value=\"groups\"\n					label=\"{{ phrase(\'add_to_selected_groups\') }}\">\n\n					<xf:checkbox name=\"extra_user_group_ids\" value=\"{$action.extra_user_group_ids}\">\n						<xf:options source=\"$userGroups\" />\n					</xf:checkbox>\n				</xf:option>\n			</xf:radiorow>\n\n			<xf:radiorow name=\"action_length_type_base\" value=\"{$action}\"\n				label=\"{{ phrase(\'for_time_period\') }}\">\n\n				<xf:option value=\"points\">{{ phrase(\'while_at_or_above_points_threshold\') }}</xf:option>\n				<xf:option value=\"permanent\">{{ phrase(\'permanent\') }}</xf:option>\n				<xf:option value=\"temporary\" selected=\"$action.action_length_type != \'permanent\' AND $action.action_length_type != \'points\'\" label=\"{{ phrase(\'temporary\') }}\">\n					<xf:dependent>\n						<div class=\"inputGroup\">\n							<xf:numberbox name=\"action_length\" value=\"{{ $action.action_length ?: 1 }}\" min=\"1\" />\n							<span class=\"inputGroup-splitter\"></span>\n							<xf:select name=\"action_length_type\" value=\"{{ ($action.action_length_type == \'permanent\' OR $action.action_length_type == \'points\') ? \'months\' : $action.action_length_type }}\" class=\"input--inline\">\n								<xf:option value=\"days\">{{ phrase(\'days\') }}</xf:option>\n								<xf:option value=\"weeks\">{{ phrase(\'weeks\') }}</xf:option>\n								<xf:option value=\"months\">{{ phrase(\'months\') }}</xf:option>\n								<xf:option value=\"years\">{{ phrase(\'years\') }}</xf:option>\n							</xf:select>\n						</div>\n					</xf:dependent>\n				</xf:option>\n			</xf:radiorow>\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 42466 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
(514, 0x61646d696e, 0x7761726e696e675f65646974, 0, '<xf:if is=\"$warning.isInsert()\">\n	<xf:title>{{ phrase(\'add_warning\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_warning:\') }} {$warning.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$warning.isUpdate()\">\n	<xf:button href=\"{{ link(\'warnings/delete\', $warning) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'warnings/save\', $warning) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"title\" value=\"{$warning}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:numberboxrow name=\"points_default\" value=\"{$warning}\"\n				label=\"{{ phrase(\'warning_points\') }}\" />\n\n			<xf:radiorow name=\"expiry_type_base\"\n				label=\"{{ phrase(\'points_expiry\') }}\">\n\n				<xf:option value=\"never\" selected=\"$warning.expiry_type == \'never\'\">{{ phrase(\'never\') }}</xf:option>\n				<xf:option value=\"other\" selected=\"$warning.expiry_type != \'never\'\" label=\"{{ phrase(\'after_time:\') }}\">\n					<xf:dependent>\n						<div class=\"inputGroup\">\n							<xf:numberbox name=\"expiry_default\" value=\"{{ $warning.expiry_default ? $warning.expiry_default : 1 }}\" min=\"0\" />\n							<span class=\"inputGroup-splitter\"></span>\n							<xf:select name=\"expiry_type\" value=\"{{ $warning.expiry_type == \'never\' ? \'months\' : $warning.expiry_type }}\" class=\"input--inline\">\n								<xf:option value=\"days\">{{ phrase(\'days\') }}</xf:option>\n								<xf:option value=\"weeks\">{{ phrase(\'weeks\') }}</xf:option>\n								<xf:option value=\"months\">{{ phrase(\'months\') }}</xf:option>\n								<xf:option value=\"years\">{{ phrase(\'years\') }}</xf:option>\n							</xf:select>\n						</div>\n\n					</xf:dependent>\n				</xf:option>\n			</xf:radiorow>\n\n			<xf:checkboxrow>\n				<xf:option name=\"is_editable\" selected=\"$warning.is_editable\">{{ phrase(\'points_and_expiry_time_editable_when_giving_warning\') }}</xf:option>\n			</xf:checkboxrow>\n\n			<xf:checkboxrow name=\"extra_user_group_ids\" value=\"{$warning.extra_user_group_ids}\"\n				label=\"{{ phrase(\'extra_user_groups\') }}\"\n				explain=\"{{ phrase(\'user_receiving_warning_can_be_added_to_groups_until_expiry\') }}\">\n\n				<xf:options source=\"$userGroups\" />\n			</xf:checkboxrow>\n		</div>\n\n		<h3 class=\"block-formSectionHeader\"><span class=\"block-formSectionHeader-aligner\">{{ phrase(\'direct_message_settings\') }}</span></h3>\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"conversation_title\" value=\"{$warning}\"\n				label=\"{{ phrase(\'default_title\') }}\" />\n\n			<xf:textarearow name=\"conversation_text\" value=\"{$warning}\"\n				autosize=\"true\"\n				label=\"{{ phrase(\'default_text\') }}\"\n				explain=\"{{ phrase(\'you_may_use_placeholders_to_dynamically_insert_warning\') }}\" />\n		</div>\n\n		<xf:submitrow icon=\"save\" sticky=\"true\" />\n	</div>\n</xf:form>', 0x[encoded data, 42334 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
(515, 0x61646d696e, 0x7761726e696e675f6c697374, 0, '<xf:title>{{ phrase(\'warnings\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'warnings/add\') }}\" icon=\"add\">{{ phrase(\'add_warning\') }}</xf:button>\n	<xf:button href=\"{{ link(\'warnings/actions/add\') }}\" icon=\"add\">{{ phrase(\'add_warning_action\') }}</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=\"warnings\" arg-class=\"block-outer-opposite\" />\n	</div>\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:datalist>\n				<xf:foreach loop=\"$warnings\" value=\"$warning\">\n					<xf:datarow\n						label=\"{$warning.title}\"\n						href=\"{{ link(\'warnings/edit\', $warning) }}\"\n						delete=\"{{ link(\'warnings/delete\', $warning) }}\">\n						<xf:explain>\n							<ul class=\"listInline listInline--bullet listInline--selfInline\">\n								<li>{{ phrase(\'warning_points:\') }} {$warning.points_default}</li>\n								<li>{{ phrase(\'expires:\') }}\n									<xf:if is=\"$warning.expiry_default == \'never\'\">\n										{{ phrase(\'never\') }}\n									<xf:else />\n										{{ duration($warning.expiry_default ? $warning.expiry_default : 1, $warning.expiry_type) }}\n									</xf:if></li>\n							</ul>\n						</xf:explain>\n					</xf:datarow>\n				</xf:foreach>\n			</xf:datalist>\n		</div>\n		<div class=\"block-footer\">\n			<span class=\"block-footer-counter\">{{ display_totals($warnings) }}</span>\n		</div>\n	</div>\n</div>\n\n<xf:if is=\"$actions is not empty\">\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<h2 class=\"block-header\">{{ phrase(\'warning_actions\') }}</h2>\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$actions\" value=\"$action\">\n						<xf:datarow>\n							<xf:cell href=\"{{ link(\'warnings/actions/edit\', $action) }}\">\n								<div class=\"dataList-mainRow\">\n									{{ phrase(\'points:\') }} {$action.points}\n									<div class=\"dataList-hint\" dir=\"auto\">\n										<ul class=\"listInline listInline--bullet listInline--selfInline\">\n											<xf:if is=\"$action.action == \'ban\'\">\n												<li>{{ phrase(\'ban\') }}</li>\n											<xf:elseif is=\"$action.action == \'discourage\'\" />\n												<li>{{ phrase(\'discourage\') }}</li>\n											<xf:elseif is=\"$action.action == \'groups\'\" />\n												<li>{{ phrase(\'add_to_selected_groups\') }}</li>\n											<xf:else />\n												<li>{{ phrase(\'unknown_action\') }}</li>\n											</xf:if>\n\n											<xf:if is=\"$action.action_length_type == \'permanent\'\">\n												<li>{{ phrase(\'permanent\') }}</li>\n											<xf:elseif is=\"$action.action_length_type == \'points\'\" />\n												<li>{{ phrase(\'while_at_or_above_points_threshold\') }}</li>\n											<xf:else />\n												<li>{{ phrase(\'temporary\') }}</li>\n											</xf:if>\n										</ul>\n									</div>\n								</div>\n							</xf:cell>\n							<xf:delete href=\"{{ link(\'warnings/actions/delete\', $action) }}\" />\n						</xf:datarow>\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n			<!--<div class=\"block-footer\">\n				<span class=\"block-footer-counter\">{{ display_totals($actions) }}</span>\n			</div>-->\n		</div>\n	</div>\n</xf:if>', 0x[encoded data, 43072 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
(516, 0x61646d696e, 0x776562686f6f6b5f63726974657269615f746872656164, 0, '<xf:checkboxrow>\n	<xf:option name=\"criteria[{$contentType}][nodes][rule]\" value=\"node_id\" selected=\"{$criteria.nodes}\"\n		label=\"{{ phrase(\'forum\') }}\">\n		<xf:html>\n			<ul class=\"inputList\">\n				<li><xf:radio name=\"criteria[{$contentType}][nodes][data][search_type]\"\n					value=\"{{ $criteria.nodes.data.search_type ?: \'include\' }}\"\n					listclass=\"inputChoices--inline\">\n					<xf:option value=\"include\">{{ phrase(\'include_selected\') }}</xf:option>\n					<xf:option value=\"exclude\">{{ phrase(\'exclude_selected\') }}</xf:option>\n				</xf:radio></li>\n\n				<li><xf:select name=\"criteria[{$contentType}][nodes][data][node_ids]\"\n					value=\"{{ $criteria.nodes.data.node_ids|numeric_keys_only }}\"\n					multiple=\"true\" size=\"8\">\n					<xf:option value=\"0\" label=\"{{ phrase(\'(any)\') }}\" />\n					<xf:foreach loop=\"$forums\" value=\"$forum\">\n						<xf:option value=\"{$forum.value}\" disabled=\"{$forum.disabled}\">{$forum.label}</xf:option>\n					</xf:foreach>\n				</xf:select></li>\n			</ul>\n		</xf:html>\n	</xf:option>\n</xf:checkboxrow>', 0x[encoded data, 18324 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
(517, 0x61646d696e, 0x776562686f6f6b5f65646974, 0, '<xf:if is=\"$webhook.isInsert()\">\n	<xf:title>{{ phrase(\'add_webhook\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_webhook:\') }} {$webhook.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$webhook.isUpdate()\">\n	<xf:button href=\"{{ link(\'webhooks/delete\', $webhook) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'webhooks/save\', $webhook) }}\" class=\"block\" ajax=\"true\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"title\" value=\"{$webhook}\" label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:textarearow name=\"description\" value=\"{$webhook}\" autosize=\"true\"\n				label=\"{{ phrase(\'description\') }}\"\n				explain=\"{{ phrase(\'webhook_description_explain\') }}\" />\n\n			<xf:textboxrow name=\"url\" value=\"{$webhook}\" label=\"{{ phrase(\'target_url\') }}\" />\n\n			<xf:textboxrow name=\"secret\" value=\"{$webhook}\" label=\"{{ phrase(\'secret\') }}\" explain=\"{{ phrase(\'if_specified_this_value_will_be_included_in_xf_webhook_secret_request\') }}\" />\n\n			<xf:foreach loop=\"$contentTypeHandlers\" key=\"$contentType\" value=\"$handler\">\n				<h3 class=\"block-formSectionHeader\">\n					<span class=\"collapseTrigger collapseTrigger--block {{ {$webhook.events.{$contentType}} ? \'is-active\' : \'\' }}\" data-xf-click=\"toggle\" data-target=\"< :up:next\">\n						<span class=\"block-formSectionHeader-aligner\">{$handler.getTitle()}</span>\n					</span>\n					<span class=\"block-desc\">\n						{{ phrase(\'x_events\', {\'count\': count($handler.getEvents())}) }}\n					</span>\n				</h3>\n				<div class=\"block-body block-body--collapsible {{ {$webhook.events.{$contentType}} ? \'is-active\' : \'\' }}\">\n					<xf:radiorow name=\"send_mode[{$contentType}]\" label=\"{{ phrase(\'events\') }}\">\n						<xf:option value=\"none\" label=\"{{ phrase(\'dont_send_for_any_events\') }}\" selected=\"{{ !{$webhook.events.{$contentType}} }} \"/>\n						<xf:option value=\"all\" label=\"{{ phrase(\'send_all_events\') }}\" selected=\"{{ {$webhook.events.{$contentType}} === \'*\' }}\"/>\n						<xf:if is=\"{{ count($handler.getEvents()) }}\">\n							<xf:option value=\"specific\" data-hide=\"true\" data-xf-init=\"disabler\" data-container=\".js-webhookEvents-{$contentType}\"\n								label=\"{{ phrase(\'send_only_specific_events\') }}\" selected=\"{{ is_array($webhook.events.{$contentType}) }}\">\n								<xf:dependent>\n									<div class=\"js-webhookEvents-{$contentType}\">\n										<xf:checkbox name=\"events[{$contentType}][]\" listclass=\"listColumns\" value=\"{$webhook.events.{$contentType}}\">\n											<xf:foreach loop=\"$handler.getEvents()\" value=\"$event\">\n												<xf:option label=\"{$handler.getEventName($event)}\" hint=\"{$handler.getEventHint($event)}\" value=\"{$event}\" />\n											</xf:foreach>\n										</xf:checkbox>\n									</div>\n								</xf:dependent>\n							</xf:option>\n						</xf:if>\n					</xf:radiorow>\n\n					<hr class=\"formRowSep\" />\n\n					<div class=\"webhookCriteria-{$contentType}\">\n						{$handler.renderCriteria($webhook)|raw}\n					</div>\n				</div>\n			</xf:foreach>\n\n			<hr class=\"block-separator\" />\n\n			<xf:selectrow name=\"content_type\" value=\"{$webhook}\" label=\"{{ phrase(\'content_type\') }}\">\n				<xf:option value=\"json\">{{ phrase(\'application_json\') }}</xf:option>\n				<xf:option value=\"form_params\">{{ phrase(\'x_www_form_urlencoded\') }}</xf:option>\n			</xf:selectrow>\n\n			<xf:checkboxrow>\n				<xf:option name=\"ssl_verify\" selected=\"$webhook.ssl_verify\"\n					label=\"{{ phrase(\'enable_ssl_verification\') }}\"\n					hint=\"{{ phrase(\'we_do_not_recommend_disabling_this_as_it_is_insecure\') }}\" />\n			</xf:checkboxrow>\n\n			<hr class=\"formRowSep\" />\n\n			<xf:checkboxrow>\n				<xf:option name=\"active\" selected=\"$webhook.active\"\n					label=\"{{ phrase(\'webhook_is_active\') }}\"\n					hint=\"{{ phrase(\'use_this_to_disable_webhook\') }}\" />\n			</xf:checkboxrow>\n\n			<xf:submitrow icon=\"save\" />\n		</div>\n	</div>\n</xf:form>', 0x[encoded data, 60690 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
(518, 0x61646d696e, 0x776562686f6f6b5f6c697374, 0, '<xf:title>{{ phrase(\'webhooks\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'webhooks/add\') }}\" icon=\"add\">{{ phrase(\'add_webhook\') }}</xf:button>\n</xf:pageaction>\n\n<xf:if is=\"$webhooks is not empty\">\n	<xf:form action=\"{{ link(\'webhooks/toggle\') }}\" class=\"block\" ajax=\"true\">\n		<div class=\"block-outer\">\n			<xf:macro template=\"filter_macros\" name=\"quick_filter\" arg-key=\"webhooks\" arg-class=\"block-outer-opposite\" />\n		</div>\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$webhooks\" value=\"$webhook\">\n						<xf:datarow\n							label=\"{$webhook.title}\"\n							hint=\"{$webhook.getFormattedEvents()}\"\n							explain=\"{$webhook.description}\"\n							href=\"{{ link(\'webhooks/edit\', $webhook) }}\"\n							delete=\"{{ link(\'webhooks/delete\', $webhook) }}\">\n\n							<xf:toggle name=\"active[{$webhook.webhook_id}]\" selected=\"$webhook.active\"\n								class=\"dataList-cell--separated\" submit=\"true\"\n								tooltip=\"{{ phrase(\'enable_disable_x\', {\'title\': $webhook.title}) }}\" />\n						</xf:datarow>\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n			<div class=\"block-footer\">\n				<span class=\"block-footer-counter\">{{ display_totals($webhooks) }}</span>\n			</div>\n		</div>\n	</xf:form>\n<xf:else />\n	<div class=\"blockMessage\">{{ phrase(\'no_items_have_been_created_yet\') }}</div>\n</xf:if>', 0x[encoded data, 20256 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(519, 0x61646d696e, 0x7769646765745f6465665f6f7074696f6e735f626972746864617973, 0, '<hr class=\"formRowSep\" />\n\n<xf:numberboxrow name=\"options[limit]\" value=\"{$options.limit}\" min=\"0\"\n	label=\"{{ phrase(\'maximum_entries\') }}\"\n	explain=\"{{ phrase(\'birthdays_limit_explain\') }}\" />', 0x4f3a32343a2258465c54656d706c6174655c436f6d70696c65725c417374223a313a7b733a383a226368696c6472656e223b613a323a7b693a303b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a313b733a373a22636f6e74656e74223b733a32373a223c687220636c6173733d22666f726d526f7753657022202f3e0a0a223b7d693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c546167223a373a7b733a343a226c696e65223b693a353b733a343a226e616d65223b733a31323a226e756d626572626f78726f77223b733a31303a2261747472696275746573223b613a353a7b733a343a226e616d65223b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a31343a226f7074696f6e735b6c696d69745d223b7d733a353a2276616c7565223b4f3a33363a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c5661726961626c65223a343a7b733a343a226c696e65223b693a333b733a343a226e616d65223b733a373a226f7074696f6e73223b733a31303a2264696d656e73696f6e73223b613a313a7b693a303b613a323a7b693a303b733a353a226172726179223b693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a353a226c696d6974223b7d7d7d733a373a2266696c74657273223b613a303a7b7d7d733a333a226d696e223b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a313a2230223b7d733a353a226c6162656c223b4f3a33383a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c45787072657373696f6e223a323a7b733a343a226c696e65223b693a343b733a31303a2265787072657373696f6e223b4f3a33323a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c46756e63223a333a7b733a343a226c696e65223b693a343b733a343a226e616d65223b733a363a22706872617365223b733a393a22617267756d656e7473223b613a313a7b693a303b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a343b733a373a22636f6e74656e74223b733a31353a226d6178696d756d5f656e7472696573223b7d7d7d7d733a373a226578706c61696e223b4f3a33383a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c45787072657373696f6e223a323a7b733a343a226c696e65223b693a353b733a31303a2265787072657373696f6e223b4f3a33323a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c46756e63223a333a7b733a343a226c696e65223b693a353b733a343a226e616d65223b733a363a22706872617365223b733a393a22617267756d656e7473223b613a313a7b693a303b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a353b733a373a22636f6e74656e74223b733a32333a226269727468646179735f6c696d69745f6578706c61696e223b7d7d7d7d7d733a383a226368696c6472656e223b613a303a7b7d733a31313a22697353656c66436c6f7365223b623a313b733a31303a22657874656e73696f6e73223b613a303a7b7d733a353a226465707468223b693a303b7d7d7d, 0x5846, 2000010, '2.0.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
(520, 0x61646d696e, 0x7769646765745f6465665f6f7074696f6e735f66656174757265645f636f6e74656e74, 0, '<hr class=\"formRowSep\" />\n\n<xf:checkboxrow>\n	<xf:option name=\"options[contextual]\" selected=\"{$options.contextual}\"\n		label=\"{{ phrase(\'display_contextual_content\') }}\"\n		hint=\"{{ phrase(\'if_selected_widget_will_display_content_which_pertains_to\') }}\">\n\n		<xf:dependent>\n			<xf:checkbox>\n				<xf:option name=\"options[contextual_hidden]\" selected=\"{$options.contextual_hidden}\"\n					label=\"{{ phrase(\'hide_widget_when_there_is_no_available_context\') }}\"\n					hint=\"{{ phrase(\'if_selected_widget_will_be_hidden_when_there_is_no_available_context\') }}\" />\n			</xf:checkbox>\n		</xf:dependent>\n	</xf:option>\n</xf:checkboxrow>\n\n<xf:numberboxrow name=\"options[limit]\" value=\"{$options.limit}\"\n	label=\"{{ phrase(\'maximum_entries\') }}\"\n	min=\"1\" />\n\n<xf:radiorow name=\"options[style]\" value=\"{$options.style}\"\n	label=\"{{ phrase(\'display_style\') }}\">\n\n	<xf:option value=\"simple\"\n		label=\"{{ phrase(\'simple\') }}\"\n		hint=\"{{ phrase(\'widget_display_simple_explain\') }}\" />\n	<xf:option value=\"full\"\n		label=\"{{ phrase(\'standard\') }}\"\n		hint=\"{{ phrase(\'full_size_view_displaying_as_standard_content_list\') }}\" />\n	<xf:option value=\"carousel\"\n		label=\"{{ phrase(\'carousel\') }}\"\n		hint=\"{{ phrase(\'carousel_view_displaying_content_in_slider\') }}\" />\n</xf:radiorow>\n\n<xf:numberboxrow name=\"options[snippet_length]\" value=\"{$options.snippet_length}\"\n	label=\"{{ phrase(\'snippet_length\') }}\"\n	explain=\"{{ phrase(\'snippet_length_explain\') }}\"\n	min=\"0\" max=\"500\" />\n\n<xf:selectrow name=\"options[content_type]\" value=\"{$options.content_type}\"\n	label=\"{{ phrase(\'content_type\') }}\">\n\n	<xf:option value=\"\">{{ phrase(\'(any)\') }}</xf:option>\n\n	<xf:foreach loop=\"$contentTypes\" value=\"$contentType\">\n		<xf:option value=\"{$contentType}\">\n			{{ $xf.app.getContentTypePhrase($contentType) }}\n		</xf:option>\n	</xf:foreach>\n</xf:selectrow>', 0x[encoded data, 28040 characters], 0x5846, 2030070, '2.3.0', 1748686057),
(521, 0x61646d696e, 0x7769646765745f6465665f6f7074696f6e735f68746d6c, 0, '<hr class=\"formRowSep\" />\n\n<xf:codeeditorrow name=\"options[template]\" value=\"{$template.template}\" class=\"codeEditor--short\" mode=\"html\"\n	label=\"{{ phrase(\'template\') }}\"\n	explain=\"{{ phrase(\'you_may_use_xenforo_template_syntax_here\') }}\" />\n\n<xf:checkboxrow>\n	<xf:option name=\"options[advanced_mode]\" value=\"1\" selected=\"{$options.advanced_mode}\"\n		label=\"{{ phrase(\'advanced_mode\') }}\"\n		hint=\"{{ phrase(\'if_enabled_html_for_your_page_will_not_be_contained_within_block\') }}\" />\n</xf:checkboxrow>\n\n<xf:if is=\"$options.template_title\">\n	<xf:hiddenval name=\"options[template_title]\">{$options.template_title}</xf:hiddenval>\n</xf:if>', 0x[encoded data, 8938 characters], 0x5846, 2000010, '2.0.0 Alpha', 1748686057),
(522, 0x61646d696e, 0x7769646765745f6465665f6f7074696f6e735f6d656d6265725f73746174, 0, '<hr class=\"formRowSep\" />\n\n<xf:numberboxrow name=\"options[limit]\" value=\"{$options.limit}\" min=\"1\"\n	label=\"{{ phrase(\'maximum_entries\') }}\" />\n\n<xf:selectrow name=\"options[member_stat_key]\" value=\"{$options.member_stat_key}\"\n	label=\"{{ phrase(\'member_stat_to_display\') }}\">\n	<xf:options source=\"{$memberStats}\" />\n</xf:selectrow>', 0x[encoded data, 5214 characters], 0x5846, 2000010, '2.0.0 Alpha', 1748686057);
