INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(55, 0x61646d696e, 0x61646d696e5f6e617669676174696f6e5f6c697374, 0, '<xf:title>{{ phrase(\'admin_navigation\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'admin-navigation/add\') }}\" icon=\"add\">{{ phrase(\'add_navigation\') }}</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=\"admin-navigation\" arg-class=\"block-outer-opposite\" />\n	</div>\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:datalist>\n				<xf:macro id=\"navigation_list\" arg-children=\"{$tree}\" />\n			</xf:datalist>\n		</div>\n		<div class=\"block-footer\">\n			<span class=\"block-footer-counter\">{{ display_totals($tree.getFlattened(0)) }}</span>\n		</div>\n	</div>\n</div>\n\n<xf:macro id=\"navigation_list\" arg-children=\"!\" arg-depth=\"1\">\n	<xf:foreach loop=\"$children\" value=\"$child\">\n		<xf:macro id=\"navigation_list_entry\" arg-navigation=\"{$child.record}\" arg-children=\"{$child.children}\" arg-depth=\"{$depth}\" />\n	</xf:foreach>\n</xf:macro>\n\n<xf:macro id=\"navigation_list_entry\" arg-navigation=\"!\" arg-children=\"!\" arg-depth=\"1\">\n	<xf:if is=\"$depth == 1\">\n		<xf:datarow rowtype=\"subsection\">\n			<xf:cell href=\"{{ link(\'admin-navigation/edit\', $navigation) }}\" hash=\"{$navigation.navigation_id}\">\n				<div class=\"dataList-textRow\">\n					<xf:if is=\"{$navigation.icon}\"><xf:fa icon=\"{$navigation.icon} fa-fw\" /></xf:if>\n					{$navigation.title}\n					<xf:if is=\"{$navigation.link}\"><span class=\"dataList-hint\" dir=\"auto\">{$navigation.link}</span></xf:if>\n				</div>\n			</xf:cell>\n			<xf:cell class=\"dataList-cell--min dataList-cell--hint\">{$navigation.display_order}</xf:cell>\n			<xf:cell>&nbsp;</xf:cell>\n			<xf:delete href=\"{{ link(\'admin-navigation/delete\', $navigation) }}\" />\n		</xf:datarow>\n	<xf:else />\n		<xf:datarow>\n			<xf:cell href=\"{{ link(\'admin-navigation/edit\', $navigation) }}\"\n				class=\"dataList-cell--d{{ $depth - 1 }}\"\n				hash=\"{$navigation.navigation_id}\">\n\n				<div class=\"dataList-textRow\">\n					<xf:if is=\"$navigation.icon\"><xf:fa icon=\"{$navigation.icon}\" /></xf:if>\n					{$navigation.title}\n					<xf:if is=\"{$navigation.link}\"><span class=\"dataList-hint\" dir=\"auto\">{$navigation.link}</span></xf:if>\n				</div>\n			</xf:cell>\n			<xf:cell class=\"dataList-cell--min dataList-cell--hint\">{$navigation.navigation_id} / {$navigation.display_order}</xf:cell>\n			<xf:popup class=\"dataList-cell--action u-hideMedium\"\n				label=\"{{ phrase(\'add...\') }}\">\n\n				<div class=\"menu\" data-menu=\"menu\" aria-hidden=\"true\">\n					<div class=\"menu-content\">\n						<h3 class=\"menu-header\">{{ phrase(\'add...\') }}</h3>\n						<a href=\"{{ link(\'admin-navigation/add\', null, {\'parent_navigation_id\': $navigation.parent_navigation_id}) }}\" class=\"menu-linkRow\" data-xf-click=\"overlay\">{{ phrase(\'sibling\') }}</a>\n						<a href=\"{{ link(\'admin-navigation/add\', null, {\'parent_navigation_id\': $navigation.navigation_id}) }}\" class=\"menu-linkRow\" data-xf-click=\"overlay\">{{ phrase(\'child\') }}</a>\n					</div>\n				</div>\n			</xf:popup>\n			<xf:delete href=\"{{ link(\'admin-navigation/delete\', $navigation) }}\" />\n		</xf:datarow>\n	</xf:if>\n	<xf:macro id=\"navigation_list\" arg-children=\"{$children}\" arg-depth=\"{{ $depth + 1 }}\" />\n</xf:macro>', 0x[encoded data, 51060 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
(56, 0x61646d696e, 0x61646d696e5f6e617669676174696f6e5f736f7274, 0, '<xf:title>{{ phrase(\'sort_admin_navigation\') }}</xf:title>\n\n<xf:macro id=\"public:nestable_macros::setup\" />\n\n<xf:form action=\"{{ link(\'admin-navigation/sort\') }}\" class=\"block\" ajax=\"true\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<div class=\"nestable-container\" data-xf-init=\"nestable\" data-parent-id=\"\">\n				<xf:macro id=\"navigation_list\" arg-children=\"{$navTree}\" />\n				<xf:hiddenval name=\"navigation\" value=\"\" />\n			</div>\n		</div>\n		<xf:submitrow icon=\"save\" rowtype=\"simple\" />\n	</div>\n</xf:form>\n\n<xf:macro id=\"navigation_list\" arg-children=\"!\">\n	<ol class=\"nestable-list\">\n		<xf:foreach loop=\"$children\" key=\"$id\" value=\"$child\">\n			<xf:macro id=\"navigation_list_entry\" arg-nav=\"{$child.record}\" arg-children=\"{$child.children}\" />\n		</xf:foreach>\n	</ol>\n</xf:macro>\n\n<xf:macro id=\"navigation_list_entry\" arg-nav=\"!\" arg-children=\"!\">\n	<li class=\"nestable-item\" data-id=\"{$nav.navigation_id}\">\n		<div class=\"nestable-handle\" aria-label=\"{{ phrase(\'drag_handle\')|for_attr }}\"><xf:fa icon=\"fa-bars\" /></div>\n		<div class=\"nestable-content\">{$nav.title}</div>\n		<xf:if is=\"$children is not empty\">\n			<xf:macro id=\"navigation_list\" arg-children=\"{$children}\" />\n		</xf:if>\n	</li>\n</xf:macro>', 0x[encoded data, 18088 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(57, 0x61646d696e, 0x61646d696e5f7065726d697373696f6e5f65646974, 0, '<xf:if is=\"$permission.isInsert()\">\n	<xf:title>{{ phrase(\'add_admin_permission\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_admin_permission:\') }} {$permission.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$permission.isUpdate()\">\n	<xf:button href=\"{{ link(\'admin-permissions/delete\', $permission) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'admin-permissions/save\', $permission) }}\" class=\"block\" ajax=\"true\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n\n			<xf:textboxrow name=\"admin_permission_id\" value=\"{$permission}\"\n				label=\"{{ phrase(\'permission_id\') }}\"\n				dir=\"ltr\" />\n\n			<xf:textboxrow name=\"title\" value=\"{$permission}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:macro id=\"display_order_macros::row\" arg-value=\"{$permission}\" />\n\n			<xf:macro id=\"addon_macros::addon_edit\" arg-addOnId=\"{$permission.addon_id}\" />\n		</div>\n\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 16304 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
(58, 0x61646d696e, 0x61646d696e5f7065726d697373696f6e5f6c697374, 0, '<xf:title>{{ phrase(\'admin_permissions\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'admin-permissions/add\') }}\" icon=\"add\">{{ phrase(\'add_admin_permission\') }}</xf:button>\n</xf:pageaction>\n\n<xf:form action=\"\" class=\"block\">\n	<div class=\"block-outer\">\n		<xf:macro id=\"filter_macros::quick_filter\" arg-key=\"admin-permissions\" arg-class=\"block-outer-opposite\" />\n	</div>\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:datalist>\n				<xf:foreach loop=\"$permissions\" value=\"$permission\">\n					<xf:datarow href=\"{{ link(\'admin-permissions/edit\', $permission) }}\"\n						label=\"{$permission.title}\"\n						hint=\"{$permission.admin_permission_id}\"\n						delete=\"{{ link(\'admin-permissions/delete\', $permission) }}\" />\n				</xf:foreach>\n			</xf:datalist>\n		</div>\n		<div class=\"block-footer\">\n			<span class=\"block-footer-counter\">{{ display_totals($permissions) }}</span>\n		</div>\n	</div>\n</xf:form>', 0x[encoded data, 12722 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(59, 0x61646d696e, 0x61646d696e5f73656374696f6e, 0, '<xf:title>{$title}</xf:title>\n\n<xf:macro id=\"section_nav_macros::section_nav\" arg-section=\"{$entry.navigation_id}\" />', 0x4f3a32343a2258465c54656d706c6174655c436f6d70696c65725c417374223a313a7b733a383a226368696c6472656e223b613a333a7b693a303b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c546167223a373a7b733a343a226c696e65223b693a313b733a343a226e616d65223b733a353a227469746c65223b733a31303a2261747472696275746573223b613a303a7b7d733a383a226368696c6472656e223b613a313a7b693a303b4f3a33363a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c5661726961626c65223a343a7b733a343a226c696e65223b693a313b733a343a226e616d65223b733a353a227469746c65223b733a31303a2264696d656e73696f6e73223b613a303a7b7d733a373a2266696c74657273223b613a303a7b7d7d7d733a31313a22697353656c66436c6f7365223b623a303b733a31303a22657874656e73696f6e73223b613a303a7b7d733a353a226465707468223b693a303b7d693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a313b733a373a22636f6e74656e74223b733a323a220a0a223b7d693a323b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c546167223a373a7b733a343a226c696e65223b693a333b733a343a226e616d65223b733a353a226d6163726f223b733a31303a2261747472696275746573223b613a323a7b733a323a226964223b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a33313a2273656374696f6e5f6e61765f6d6163726f733a3a73656374696f6e5f6e6176223b7d733a31313a226172672d73656374696f6e223b4f3a33363a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c5661726961626c65223a343a7b733a343a226c696e65223b693a333b733a343a226e616d65223b733a353a22656e747279223b733a31303a2264696d656e73696f6e73223b613a313a7b693a303b613a323a7b693a303b733a353a226172726179223b693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a31333a226e617669676174696f6e5f6964223b7d7d7d733a373a2266696c74657273223b613a303a7b7d7d7d733a383a226368696c6472656e223b613a303a7b7d733a31313a22697353656c66436c6f7365223b623a313b733a31303a22657874656e73696f6e73223b613a303a7b7d733a353a226465707468223b693a303b7d7d7d, 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
(60, 0x61646d696e, 0x6164766572746973696e675f65646974, 0, '<xf:if is=\"$ad.isInsert()\">\n	<xf:title>{{ phrase(\'add_advertisement\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_advertisement:\') }} {$ad.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$ad.isUpdate()\">\n	<xf:button href=\"{{ link(\'advertising/delete\', $ad) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'advertising/save\', $ad) }}\" class=\"block\" ajax=\"true\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n\n			<xf:textboxrow name=\"title\" value=\"{$ad}\"\n				label=\"{{ phrase(\'title\') }}\"\n				explain=\"{{ phrase(\'provide_short_title_for_this_advertisement\') }}\" />\n\n			<xf:selectrow name=\"position_id\" value=\"{$ad}\"\n				data-xf-init=\"desc-loader\"\n				data-desc-url=\"{{ link(\'advertising/get-position-description\') }}\"\n				label=\"{{ phrase(\'position\') }}\">\n				<xf:option />\n				<xf:options source=\"{$advertisingPositions}\" />\n				<xf:html>\n					<div class=\"js-descTarget formRow-explain\">{$ad.AdvertisingPosition.description|raw}</div>\n				</xf:html>\n			</xf:selectrow>\n\n			<xf:codeeditorrow name=\"ad_html\" value=\"{$ad}\" class=\"codeEditor--short\" mode=\"html\"\n				label=\"{{ phrase(\'html\') }}\"\n				explain=\"{{ phrase(\'you_may_use_xenforo_template_syntax_here\') }}\" />\n\n			<xf:checkboxrow\n				label=\"{{ phrase(\'display_criteria\') }}\"\n				explain=\"{{ phrase(\'use_above_criteria_to_restrict_display_of_this_advertisement\') }}\">\n\n				<xf:option selected=\"{$ad.display_criteria.user_groups}\"\n					label=\"{{ phrase(\'user_is_member_of_any_of_selected_user_groups:\') }}\">\n\n					<xf:select name=\"display_criteria[user_groups]\" size=\"4\" multiple=\"true\" value=\"{$ad.display_criteria.user_groups}\">\n						<xf:foreach loop=\"$userGroups\" key=\"$userGroupId\" value=\"$userGroupTitle\">\n							<xf:option value=\"{$userGroupId}\">{$userGroupTitle}</xf:option>\n						</xf:foreach>\n					</xf:select>\n				</xf:option>\n\n				<xf:option selected=\"{$ad.display_criteria.not_user_groups}\"\n					label=\"{{ phrase(\'user_is_not_member_of_any_of_selected_user_groups:\') }}\">\n\n					<xf:select name=\"display_criteria[not_user_groups]\" size=\"4\" multiple=\"true\" value=\"{$ad.display_criteria.not_user_groups}\">\n						<xf:foreach loop=\"$userGroups\" key=\"$userGroupId\" value=\"$userGroupTitle\">\n							<xf:option value=\"{$userGroupId}\">{$userGroupTitle}</xf:option>\n						</xf:foreach>\n					</xf:select>\n				</xf:option>\n			</xf:checkboxrow>\n\n			<xf:macro id=\"display_order_macros::row\"\n				arg-value=\"{$ad}\"\n				arg-explain=\"{{ phrase(\'enter_display_order_relative_to_other_ads_in_same_position\') }}\" />\n\n			<xf:checkboxrow>\n				<xf:option name=\"active\" value=\"1\" selected=\"$ad.active\">{{ phrase(\'advertisement_is_active\') }}</xf:option>\n			</xf:checkboxrow>\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 41438 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
(61, 0x61646d696e, 0x6164766572746973696e675f6c697374, 0, '<xf:title>{{ phrase(\'advertising\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'advertising/add\') }}\" icon=\"add\">{{ phrase(\'add_advertisement\') }}</xf:button>\n</xf:pageaction>\n\n<xf:if is=\"$ads is not empty\">\n	<xf:form action=\"{{ link(\'advertising/toggle\') }}\" class=\"block\" ajax=\"true\">\n		<div class=\"block-outer\">\n			<xf:macro id=\"filter_macros::quick_filter\" arg-key=\"advertising\" arg-class=\"block-outer-opposite\" />\n		</div>\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$positions\" key=\"$positionId\" value=\"$position\">\n						<xf:if is=\"{$ads.{$positionId}} is not empty\">\n							<tbody class=\"dataList-rowGroup\">\n								<xf:datarow\n									colspan=\"3\"\n									label=\"{$position.title}\"\n									explain=\"{$position.description|raw}\"\n									rowtype=\"subsection\"\n									rowclass=\"dataList-row--noHover\" />\n								<xf:foreach loop=\"{$ads.{$positionId}}\" value=\"$ad\">\n									<xf:datarow\n										label=\"{$ad.title}\"\n										href=\"{{ link(\'advertising/edit\', $ad) }}\"\n										delete=\"{{ link(\'advertising/delete\', $ad) }}\">\n\n										<xf:toggle name=\"active[{$ad.ad_id}]\" selected=\"$ad.active\"\n											class=\"dataList-cell--separated\" submit=\"true\"\n											tooltip=\"{{ phrase(\'enable_disable_x\', {\'title\': $ad.title}) }}\" />\n									</xf:datarow>\n								</xf:foreach>\n							</tbody>\n						</xf:if>\n					</xf:foreach>\n				</xf:datalist>\n				<div class=\"block-footer\">\n					<span class=\"block-footer-counter\">{{ display_totals($totalAds) }}</span>\n				</div>\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>\n\n<xf:macro id=\"option_macros::option_form_block\" arg-options=\"{$options}\" />', 0x[encoded data, 26004 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
(62, 0x61646d696e, 0x6164766572746973696e675f706f736974696f6e5f65646974, 0, '<xf:if is=\"$advertisingPosition.isInsert()\">\n	<xf:title>{{ phrase(\'add_advertising_position\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_advertising_position:\') }} {$advertisingPosition.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$advertisingPosition.isUpdate()\">\n	<xf:button href=\"{{ link(\'advertising/positions/delete\', $advertisingPosition) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'advertising/positions/save\', $advertisingPosition) }}\" class=\"block\" ajax=\"true\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n\n			<xf:textboxrow name=\"position_id\" value=\"{$advertisingPosition}\"\n				label=\"{{ phrase(\'position_id\') }}\"\n				dir=\"ltr\" />\n\n			<xf:textboxrow name=\"title\" value=\"{$advertisingPosition}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:codeeditorrow name=\"description\" value=\"{$advertisingPosition}\"\n				mode=\"html\" data-line-wrapping=\"true\"\n				class=\"codeEditor--autoSize codeEditor--proportional\"\n				label=\"{{ phrase(\'description\') }}\"\n				hint=\"{{ phrase(\'you_may_use_html\') }}\" />\n\n			<xf:formrow rowtype=\"input\"\n				label=\"{{ phrase(\'arguments\') }}\"\n				explain=\"{{ phrase(\'list_arguments_that_this_advertising_position_requires\') }}\">\n\n				<ul class=\"listPlain inputGroup-container\">\n					<xf:foreach loop=\"$advertisingPosition.arguments\" key=\"$counter\" value=\"$argument\">\n						<li class=\"inputGroup\">\n							<xf:textbox name=\"arguments[{$counter}][argument]\" value=\"{$argument.argument}\" placeholder=\"{{ phrase(\'name_of_argument\') }}\" size=\"20\" />\n							<span class=\"inputGroup-splitter\"></span>\n\n							<xf:checkbox value=\"{$argument.required}\" standalone=\"true\">\n								<xf:option name=\"arguments[{$counter}][required]\" value=\"1\" labelclass=\"inputGroup-text\">{{ phrase(\'required\') }}</xf:option>\n							</xf:checkbox>\n						</li>\n					</xf:foreach>\n\n					<li class=\"inputGroup\" data-xf-init=\"field-adder\" data-increment-format=\"arguments[{counter}]\">\n						<xf:textbox name=\"arguments[{$nextCounter}][argument]\" placeholder=\"{{ phrase(\'name_of_argument\') }}\" size=\"20\" />\n						<span class=\"inputGroup-splitter\"></span>\n\n						<xf:checkbox standalone=\"true\">\n							<xf:option name=\"arguments[{$nextCounter}][required]\" value=\"1\" labelclass=\"inputGroup-text\">{{ phrase(\'required\') }}</xf:option>\n						</xf:checkbox>\n					</li>\n				</ul>\n			</xf:formrow>\n\n			<xf:checkboxrow>\n				<xf:option name=\"active\" value=\"1\" selected=\"$advertisingPosition.active\">{{ phrase(\'advertising_position_is_active\') }}</xf:option>\n			</xf:checkboxrow>\n\n			<xf:macro id=\"addon_macros::addon_edit\" arg-addOnId=\"{$advertisingPosition.addon_id}\" />\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 37420 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
(63, 0x61646d696e, 0x6164766572746973696e675f706f736974696f6e5f6c697374, 0, '<xf:title>{{ phrase(\'advertising_positions\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'advertising/positions/add\') }}\" icon=\"add\">{{ phrase(\'add_advertising_position\') }}</xf:button>\n</xf:pageaction>\n\n<xf:if is=\"$advertisingPositions is not empty\">\n	<xf:form action=\"{{ link(\'advertising/positions/toggle\') }}\" class=\"block\" ajax=\"true\">\n		<div class=\"block-outer\">\n			<xf:macro id=\"filter_macros::quick_filter\" arg-key=\"advertising-positions\" arg-class=\"block-outer-opposite\" />\n		</div>\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$advertisingPositions\" value=\"$advertisingPosition\">\n						<xf:datarow\n							label=\"{$advertisingPosition.title}\"\n							explain=\"{$advertisingPosition.description|raw}\"\n							href=\"{{ link(\'advertising/positions/edit\', $advertisingPosition) }}\"\n							delete=\"{{ link(\'advertising/positions/delete\', $advertisingPosition) }}\">\n\n							<xf:toggle name=\"active[{$advertisingPosition.position_id}]\" selected=\"$advertisingPosition.active\"\n								class=\"dataList-cell--separated\" submit=\"true\"\n								tooltip=\"{{ phrase(\'enable_disable_x\', {\'title\': $advertisingPosition.position_id}) }}\" />\n						</xf:datarow>\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n			<div class=\"block-footer\">\n				<span class=\"block-footer-counter\">{{ display_totals($advertisingPositions) }}</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, 20028 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
(64, 0x61646d696e, 0x6170695f6b65795f65646974, 0, '<xf:if is=\"$apiKey.isInsert()\">\n	<xf:title>{{ phrase(\'add_api_key\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_api_key\') }}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$apiKey.isUpdate()\">\n	<xf:button href=\"{{ link(\'api-keys/delete\', $apiKey) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'api-keys/save\', $apiKey) }}\" ajax=\"true\" data-force-flash-message=\"on\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:if is=\"$apiKey.isUpdate()\">\n				<xf:formrow label=\"{{ phrase(\'api_key\') }}\" rowtype=\"button\">\n					<code>{$apiKey.api_key_snippet}</code>\n					<xf:button href=\"{{ link(\'api-keys/view-key\', $apiKey) }}\"\n						data-xf-click=\"overlay\"\n						class=\"button--link\">{{ phrase(\'view_full_key\') }}\n					</xf:button>\n\n					<xf:button href=\"{{ link(\'api-keys/regenerate\', $apiKey) }}\"\n						data-xf-click=\"overlay\"\n						class=\"button--link\">{{ phrase(\'regenerate_key\') }}\n					</xf:button>\n				</xf:formrow>\n			</xf:if>\n\n			<xf:textboxrow name=\"title\" value=\"{$apiKey}\"\n				label=\"{{ phrase(\'title\') }}\">\n				<xf:explain>{{ phrase(\'provide_title_for_key_seen_list_api_keys\') }}</xf:explain>\n			</xf:textboxrow>\n\n			<xf:if is=\"$apiKey.isUpdate()\">\n				<xf:macro id=\"api_key_macros::key_type_row\" arg-apiKey=\"{$apiKey}\" />\n\n				<xf:formrow label=\"{{ phrase(\'created\') }}\">\n					<xf:date time=\"{$apiKey.creation_date}\" />\n					&middot;\n					{{ phrase(\'by_user_x\', {\'name\': $apiKey.Creator.username ?: phrase(\'n_a\') }) }}\n				</xf:formrow>\n\n				<xf:formrow label=\"{{ phrase(\'last_used\') }}\">\n					<xf:if is=\"$apiKey.last_use_date\">\n						<xf:date time=\"{$apiKey.last_use_date}\" />\n					<xf:else />\n						{{ phrase(\'n_a\') }}\n					</xf:if>\n				</xf:formrow>\n			<xf:else />\n				<xf:radiorow name=\"key_type\" value=\"guest\" label=\"{{ phrase(\'key_type\') }}\">\n					<xf:option value=\"guest\">{{ phrase(\'guest_key\') }}</xf:option>\n					<xf:option label=\"{{ phrase(\'user_key\') }}\" value=\"user\"\n						data-xf-init=\"disabler\">\n						<xf:textbox name=\"username\" ac=\"single\"\n							value=\"{{ $apiKey.key_type == \'user\' ? $apiKey.User.username : \'\' }}\"\n							maxlength=\"{{ max_length($xf.visitor, \'username\') }}\" />\n						<xf:afterhint>{{ phrase(\'enter_username_key_authenticate_as\') }}</xf:afterhint>\n					</xf:option>\n					<xf:option value=\"super\">{{ phrase(\'super_user_key\') }}</xf:option>\n					<xf:explain>{{ phrase(\'cannot_be_changed_after_creation_requires_new_api_key\') }}</xf:explain>\n				</xf:radiorow>\n			</xf:if>\n\n			<xf:radiorow label=\"{{ phrase(\'allowed_scopes\') }}\" name=\"allow_all_scopes\"\n				value=\"{$apiKey.allow_all_scopes}\">\n				<xf:option value=\"0\" label=\"{{ phrase(\'selected_scopes_only\') }}:\">\n					<xf:checkbox>\n						<xf:foreach loop=\"$scopes\" value=\"$scope\">\n							<xf:option name=\"scopes[]\"\n								value=\"{$scope.api_scope_id}\"\n								checked=\"{$apiKey.scopes.{$scope.api_scope_id}}\"\n								label=\"{$scope.api_scope_id}\"\n								hint=\"{$scope.description}\" />\n						</xf:foreach>\n					</xf:checkbox>\n				</xf:option>\n				<xf:option value=\"1\" label=\"{{ phrase(\'all_scopes\') }}\"/>\n				<xf:explain>{{ phrase(\'api_scopes_explain\') }}</xf:explain>\n			</xf:radiorow>\n\n			<hr class=\"formRowSep\" />\n\n			<xf:checkboxrow>\n				<xf:option name=\"active\" selected=\"$apiKey.active\"\n					label=\"{{ phrase(\'api_key_is_active\') }}\"\n					hint=\"{{ phrase(\'use_this_to_disable_api_key\') }}\"/>\n			</xf:checkboxrow>\n		</div>\n		<xf:submitrow icon=\"save\" sticky=\"true\" />\n	</div>\n</xf:form>', 0x[encoded data, 61752 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
(65, 0x61646d696e, 0x6170695f6b65795f6c697374, 0, '<xf:title>{{ phrase(\'api_keys\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'api-keys/add\') }}\" icon=\"add\">{{ phrase(\'add_api_key\') }}</xf:button>\n</xf:pageaction>\n\n<xf:if is=\"$newKey\">\n	<div class=\"blockMessage blockMessage--important blockMessage--iconic\">\n		{{ phrase(\'api_key_x_created_or_updated_key_use_follows\', {\'title\': $newKey.title}) }}\n		<div style=\"margin: 1em 0; text-align: center\"><xf:macro id=\"api_key_macros::copy_key\" arg-apiKey=\"{$newKey}\" /></div>\n		<xf:macro id=\"api_key_macros::key_usage\" arg-apiKey=\"{$newKey}\" />\n	</div>\n</xf:if>\n\n<xf:if is=\"$apiKeys is not empty\">\n	<xf:form action=\"{{ link(\'api-keys/toggle\') }}\" class=\"block\" ajax=\"true\">\n		<div class=\"block-outer\">\n			<xf:macro id=\"filter_macros::quick_filter\" arg-key=\"apiKeys\" arg-class=\"block-outer-opposite\" />\n		</div>\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist>\n					<xf:foreach loop=\"$apiKeys\" value=\"$apiKey\">\n						<xf:datarow\n							label=\"{$apiKey.title}\"\n							href=\"{{ link(\'api-keys/edit\', $apiKey) }}\"\n							delete=\"{{ link(\'api-keys/delete\', $apiKey) }}\">\n							<xf:explain>\n								<ul class=\"listInline listInline--bullet\">\n									<li>{$apiKey.api_key_snippet}</li>\n									<li>\n										<xf:macro id=\"api_key_macros::key_type\" arg-apiKey=\"{$apiKey}\" />\n									</li>\n									<li>\n										{{ phrase(\'created\') }}:\n										<xf:date time=\"{$apiKey.creation_date}\"/>\n									</li>\n									<xf:if is=\"$apiKey.last_use_date\">\n										<li>\n											{{ phrase(\'last_used\') }}:\n											<xf:date time=\"{$apiKey.last_use_date}\"/>\n										</li>\n									</xf:if>\n								</ul>\n							</xf:explain>\n							<xf:toggle name=\"active[{$apiKey.api_key_id}]\" selected=\"$apiKey.active\"\n								class=\"dataList-cell--separated\" submit=\"true\"\n								tooltip=\"{{ phrase(\'enable_disable_x\', {\'title\': $apiKey.title}) }}\" />\n						</xf:datarow>\n					</xf:foreach>\n				</xf:datalist>\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, 30598 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
(66, 0x61646d696e, 0x6170695f6b65795f6d6163726f73, 0, '<xf:macro id=\"key_type\" arg-apiKey=\"!\">\n	<xf:if is=\"$apiKey.key_type == \'super\'\">\n		{{ phrase(\'super_user_key\') }}\n	<xf:elseif is=\"$apiKey.key_type == \'user\'\"/>\n		{{ phrase(\'user_key\') }}:\n		<xf:username user=\"$apiKey.User\" href=\"\" defaultname=\"{{ phrase(\'deleted_member\') }}\"/>\n	<xf:else/>\n		{{ phrase(\'guest_key\') }}\n	</xf:if>\n</xf:macro>\n\n<xf:macro id=\"key_type_row\" arg-apiKey=\"!\">\n	<xf:formrow label=\"{{ phrase(\'key_type\') }}\"\n		explain=\"{{ phrase(\'cannot_be_changed_after_creation_requires_new_api_key\') }}\">\n		<xf:macro id=\"key_type\" arg-apiKey=\"{$apiKey}\" />\n	</xf:formrow>\n</xf:macro>\n\n<xf:macro id=\"copy_key_row\" arg-apiKey=\"!\">\n	<xf:formrow label=\"{{ phrase(\'api_key\') }}\" rowtype=\"button\">\n		<xf:macro id=\"copy_key\" arg-apiKey=\"{$apiKey}\" />\n\n		<div class=\"formRow-explain\">\n			<xf:macro id=\"key_usage\" arg-apiKey=\"{$apiKey}\" />\n		</div>\n	</xf:formrow>\n</xf:macro>\n\n<xf:macro id=\"copy_key\" arg-apiKey=\"!\">\n	<code class=\"js-copyTarget\">{$apiKey.api_key}</code>\n	<xf:button icon=\"copy\"\n		data-xf-init=\"copy-to-clipboard\"\n		data-copy-target=\".js-copyTarget\"\n		data-success=\"{{ phrase(\'api_key_copied_to_clipboard\') }}\"\n		class=\"button--link is-hidden\" />\n</xf:macro>\n\n<xf:macro id=\"key_usage\" arg-apiKey=\"!\">\n	{{ phrase(\'key_provided_to_api_via_header\') }}\n\n	<xf:if is=\"$apiKey.key_type == \'super\'\">\n		{{ phrase(\'as_super_user_key_include_user_header\') }}\n	</xf:if>\n</xf:macro>', 0x[encoded data, 23860 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(67, 0x61646d696e, 0x6170695f6b65795f726567656e6572617465, 0, '<xf:title>{{ phrase(\'confirm_action\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'api-keys/regenerate\', $apiKey) }}\" class=\"block\" ajax=\"true\">\n\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:inforow rowtype=\"confirm\">\n				{{ phrase(\'please_confirm_that_you_want_to_regenerate_following_api_key\') }}:\n				<strong><a href=\"{{ link(\'api-keys/edit\', $apiKey) }}\">{$apiKey.title}</a></strong>\n				<span>{{ phrase(\'applications_using_old_key_not_function_until_update\') }}</span>\n			</xf:inforow>\n		</div>\n\n		<xf:submitrow rowtype=\"simple\" submit=\"{{ phrase(\'regenerate_key\') }}\"/>\n	</div>\n\n</xf:form>', 0x[encoded data, 9006 characters], 0x5846, 2010132, '2.1.1 Beta 2', 1748686057),
(68, 0x61646d696e, 0x6170695f6b65795f76696577, 0, '<xf:title>{{ phrase(\'api_key_details\') }}: {$apiKey.title}</xf:title>\n\n<div class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:macro id=\"api_key_macros::copy_key_row\" arg-apiKey=\"{$apiKey}\" />\n			<xf:macro id=\"api_key_macros::key_type_row\" arg-apiKey=\"{$apiKey}\" />\n		</div>\n	</div>\n</div>', 0x[encoded data, 4310 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
(69, 0x61646d696e, 0x6170695f73636f70655f65646974, 0, '<xf:if is=\"$scope.isInsert()\">\n	<xf:title>{{ phrase(\'add_api_scope\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_api_scope\') }}: {$scope.api_scope_id}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$scope.isUpdate()\">\n	<xf:button href=\"{{ link(\'api-scopes/delete\', $scope) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'api-scopes/save\', $scope) }}\" class=\"block\" ajax=\"true\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n\n			<xf:textboxrow name=\"api_scope_id\" value=\"{$scope}\"\n				label=\"{{ phrase(\'scope_id\') }}\"\n				dir=\"ltr\" />\n\n			<xf:textboxrow name=\"description\" value=\"{$scope}\"\n				label=\"{{ phrase(\'description\') }}\" />\n\n			<xf:checkboxrow>\n				<xf:option name=\"usable_with_oauth_clients\" selected=\"$scope.usable_with_oauth_clients\"\n					label=\"{{ phrase(\'allow_this_scope_to_be_used_with_oauth2_clients\') }}\" />\n			</xf:checkboxrow>\n\n			<xf:macro id=\"addon_macros::addon_edit\" arg-addOnId=\"{$scope.addon_id}\" />\n		</div>\n\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 17554 characters], 0x5846, 2030470, '2.3.4', 1748686057),
(70, 0x61646d696e, 0x6170695f73636f70655f6c697374, 0, '<xf:title>{{ phrase(\'api_scopes\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'api-scopes/add\') }}\" icon=\"add\">{{ phrase(\'add_api_scope\') }}</xf:button>\n</xf:pageaction>\n\n<xf:form action=\"\" class=\"block\">\n	<div class=\"block-outer\">\n		<xf:macro id=\"filter_macros::quick_filter\" arg-key=\"api-scopes\" arg-class=\"block-outer-opposite\" />\n	</div>\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:datalist>\n				<xf:foreach loop=\"$scopes\" value=\"$scope\">\n					<xf:datarow href=\"{{ link(\'api-scopes/edit\', $scope) }}\"\n						label=\"{$scope.api_scope_id}\"\n						hint=\"{$scope.description}\"\n						hash=\"{$scope.api_scope_id_url}\"\n						delete=\"{{ link(\'api-scopes/delete\', $scope) }}\" />\n				</xf:foreach>\n			</xf:datalist>\n		</div>\n		<div class=\"block-footer\">\n			<span class=\"block-footer-counter\">{{ display_totals($scopes) }}</span>\n		</div>\n	</div>\n</xf:form>', 0x[encoded data, 13092 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
