INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(499, 0x61646d696e, 0x757365725f6d657373616765, 0, '<xf:title>{{ phrase(\'message_users\') }}</xf:title>\n<xf:description>{{ phrase(\'message_users_description\') }}</xf:description>\n\n<xf:if is=\"$sent\">\n	<div class=\"blockMessage blockMessage--success blockMessage--iconic\">\n		{{ phrase(\'your_direct_message_was_sent_to_x_users\', {\'sent\': $sent|number}) }}\n	</div>\n</xf:if>\n\n<xf:form action=\"{{ link(\'users/message/confirm\') }}\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"from_user\" value=\"{$xf.visitor.username}\" ac=\"single\"\n				label=\"{{ phrase(\'from_user\') }}\">\n\n				<xf:explain>\n					<p>{{ phrase(\'enter_name_of_existing_user_direct_message_should_be_started_by\') }}</p>\n					<p><b>{{ phrase(\'note:\') }}</b> {{ phrase(\'you_cannot_send_direct_message_to_yourself\') }}</p>\n				</xf:explain>\n			</xf:textboxrow>\n\n			<hr class=\"formRowSep\" />\n\n			<xf:textboxrow name=\"message_title\" maxlength=\"100\"\n				label=\"{{ phrase(\'direct_message_title\') }}\"\n				required=\"true\" />\n\n			<xf:textarearow name=\"message_body\" rows=\"5\" autosize=\"true\"\n				label=\"{{ phrase(\'direct_message_body\') }}\"\n				required=\"true\"\n				hint=\"{{ phrase(\'you_may_use_bb_code\') }}\"\n				explain=\"{{ phrase(\'following_placeholders_will_be_replaced_in_body_for_direct_message\') }} {{ phrase(\'you_may_also_use_phrase_title_which_will_be_replaced\') }}\" />\n\n			<hr class=\"formRowSep\" />\n\n			<xf:checkboxrow label=\"{{ phrase(\'direct_message_options\') }}\">\n				<xf:option name=\"open_invite\" value=\"1\">{{ phrase(\'allow_anyone_in_direct_message_to_invite_others\') }}</xf:option>\n				<xf:option name=\"conversation_locked\" value=\"1\">{{ phrase(\'lock_direct_message_no_responses_will_be_allowed\') }}</xf:option>\n			</xf:checkboxrow>\n\n			<xf:radiorow name=\"delete_type\"\n				label=\"{{ phrase(\'future_message_handling\') }}\">\n\n				<xf:option selected=\"true\"\n					label=\"{{ phrase(\'do_not_leave_direct_message\') }}\"\n					explain=\"{{ phrase(\'direct_message_remain_in_inbox_and_notified_of_replies\') }}\" />\n				<xf:option value=\"deleted\"\n					label=\"{{ phrase(\'leave_direct_message_and_accept_future_responses\') }}\"\n					explain=\"{{ phrase(\'should_direct_message_receive_responses_restored_to_inbox\') }}\" />\n				<xf:option value=\"deleted_ignored\"\n					label=\"{{ phrase(\'leave_direct_message_and_ignore_future_responses\') }}\"\n					explain=\"{{ phrase(\'not_notified_of_responses_direct_message_remain_deleted\') }}\" />\n			</xf:radiorow>\n		</div>\n\n		<h2 class=\"block-formSectionHeader\"><span class=\"block-formSectionHeader-aligner\">{{ phrase(\'user_criteria\') }}</span></h2>\n		<div class=\"block-body\">\n			<xf:include template=\"helper_user_search_criteria\" />\n		</div>\n\n		<xf:submitrow submit=\"{{ phrase(\'proceed...\') }}\" sticky=\"true\" />\n	</div>\n</xf:form>', 0x[encoded data, 34176 characters], 0x5846, 2030370, '2.3.3', 1748686057);
INSERT INTO `xf_template` (`template_id`, `type`, `title`, `style_id`, `template`, `template_parsed`, `addon_id`, `version_id`, `version_string`, `last_edit_date`) VALUES
(500, 0x61646d696e, 0x757365725f6d6573736167655f636f6e6669726d, 0, '<xf:title>{{ phrase(\'confirm_sending_message\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'users/message/send\') }}\" class=\"block\" preview=\"{{ link(\'users/message/preview\') }}\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'number_of_users_matching_criteria\') }}\">\n				{$total|number}\n				<span role=\"presentation\" aria-hidden=\"true\">&middot;</span>\n				<a href=\"{{ link(\'users/list\', null, {\'criteria\': $criteria}) }}\">{{ phrase(\'view_full_list\') }}</a>\n			</xf:formrow>\n			<xf:formrow label=\"{{ phrase(\'test\') }}\">\n				<xf:button type=\"submit\" name=\"preview\" value=\"1\" class=\"js-previewButton\" icon=\"preview\" />\n			</xf:formrow>\n		</div>\n		<xf:submitrow submit=\"{{ phrase(\'send_message\') }}\" />\n	</div>\n\n	<xf:hiddenval name=\"json_criteria\">{$criteria|json}</xf:hiddenval>\n\n	<xf:hiddenval name=\"total\">{$total}</xf:hiddenval>\n\n	<xf:hiddenval name=\"from_user\">{$user.username}</xf:hiddenval>\n\n	<xf:hiddenval name=\"message_title\">{$message.message_title}</xf:hiddenval>\n	<xf:hiddenval name=\"message_body\">{$message.message_body}</xf:hiddenval>\n\n	<xf:hiddenval name=\"open_invite\">{$message.open_invite}</xf:hiddenval>\n	<xf:hiddenval name=\"conversation_locked\">{$message.conversation_locked}</xf:hiddenval>\n\n	<xf:hiddenval name=\"delete_type\">{$message.delete_type}</xf:hiddenval>\n</xf:form>', 0x[encoded data, 21724 characters], 0x5846, 2000010, '2.0.0 Alpha', 1748686057),
(501, 0x61646d696e, 0x757365725f6d6573736167655f70726576696577, 0, '<xf:title>{$title}</xf:title>\n\n<div class=\"blockMessage\">{{ bb_code($content, \'conversation_message\', $xf.visitor) }}</div>', 0x4f3a32343a2258465c54656d706c6174655c436f6d70696c65725c417374223a313a7b733a383a226368696c6472656e223b613a343a7b693a303b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c546167223a373a7b733a343a226c696e65223b693a313b733a343a226e616d65223b733a353a227469746c65223b733a31303a2261747472696275746573223b613a303a7b7d733a383a226368696c6472656e223b613a313a7b693a303b4f3a33363a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c5661726961626c65223a343a7b733a343a226c696e65223b693a313b733a343a226e616d65223b733a353a227469746c65223b733a31303a2264696d656e73696f6e73223b613a303a7b7d733a373a2266696c74657273223b613a303a7b7d7d7d733a31313a22697353656c66436c6f7365223b623a303b733a31303a22657874656e73696f6e73223b613a303a7b7d733a353a226465707468223b693a303b7d693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a313b733a373a22636f6e74656e74223b733a32383a220a0a3c64697620636c6173733d22626c6f636b4d657373616765223e223b7d693a323b4f3a33383a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c45787072657373696f6e223a323a7b733a343a226c696e65223b693a333b733a31303a2265787072657373696f6e223b4f3a33323a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c46756e63223a333a7b733a343a226c696e65223b693a333b733a343a226e616d65223b733a373a2262625f636f6465223b733a393a22617267756d656e7473223b613a333a7b693a303b4f3a33363a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c5661726961626c65223a343a7b733a343a226c696e65223b693a333b733a343a226e616d65223b733a373a22636f6e74656e74223b733a31303a2264696d656e73696f6e73223b613a303a7b7d733a373a2266696c74657273223b613a303a7b7d7d693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a32303a22636f6e766572736174696f6e5f6d657373616765223b7d693a323b4f3a33363a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c5661726961626c65223a343a7b733a343a226c696e65223b693a333b733a343a226e616d65223b733a323a227866223b733a31303a2264696d656e73696f6e73223b613a313a7b693a303b613a323a7b693a303b733a353a226172726179223b693a313b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a373a2276697369746f72223b7d7d7d733a373a2266696c74657273223b613a303a7b7d7d7d7d7d693a333b4f3a33313a2258465c54656d706c6174655c436f6d70696c65725c53796e7461785c537472223a323a7b733a343a226c696e65223b693a333b733a373a22636f6e74656e74223b733a363a223c2f6469763e223b7d7d7d, 0x5846, 2000038, '2.0.0 Beta 8', 1748686057),
(502, 0x61646d696e, 0x757365725f72656d6f76655f7265616374696f6e73, 0, '<xf:title>{{ phrase(\'remove_reactions\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'users/remove-reactions\', $user) }}\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'user\') }}\">{$user.username}</xf:formrow>\n			<xf:formrow rowtype=\"input\"\n				label=\"{{ phrase(\'remove_reactions_within_last\') }}\">\n\n				<div class=\"inputGroup\">\n					<xf:numberbox name=\"cutoff[amount]\" value=\"1\" min=\"0\" />\n					<span class=\"inputGroup-splitter\"></span>\n					<xf:select name=\"cutoff[unit]\" value=\"days\" class=\"input--inline\">\n						<xf:option value=\"hours\">{{ phrase(\'hours\') }}</xf:option>\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:select>\n				</div>\n			</xf:formrow>\n		</div>\n		<xf:submitrow icon=\"delete\" />\n	</div>\n</xf:form>', 0x[encoded data, 15022 characters], 0x5846, 2010010, '2.1.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
(503, 0x61646d696e, 0x757365725f7265766572745f6d6573736167655f65646974, 0, '<xf:title>{{ phrase(\'revert_message_edits\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'users/revert-message-edit\', $user) }}\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'user\') }}\">{$user.username}</xf:formrow>\n			<xf:formrow rowtype=\"input\"\n				label=\"{{ phrase(\'revert_edits_within_last\') }}\"\n				explain=\"{{ phrase(\'only_edits_within_last_x_days_will_be_reverted\', {\'count\': $xf.options.editHistory.length}) }}\">\n\n				<div class=\"inputGroup\">\n					<xf:numberbox name=\"cutoff[amount]\" value=\"1\" min=\"0\" />\n					<span class=\"inputGroup-splitter\"></span>\n					<xf:select name=\"cutoff[unit]\" value=\"days\" class=\"input--inline\">\n						<xf:option value=\"hours\">{{ phrase(\'hours\') }}</xf:option>\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:select>\n				</div>\n			</xf:formrow>\n		</div>\n		<xf:submitrow submit=\"{{ phrase(\'revert_edits\') }}\" />\n	</div>\n</xf:form>', 0x[encoded data, 17422 characters], 0x5846, 2000010, '2.0.0 Alpha', 1748686057),
(504, 0x61646d696e, 0x757365725f736561726368, 0, '<xf:title>{{ phrase(\'search_for_users\') }}</xf:title>\n\n<xf:pageaction>\n	<xf:button href=\"{{ link(\'users/add\') }}\" icon=\"add\">{{ phrase(\'add_user\') }}</xf:button>\n</xf:pageaction>\n\n<xf:if is=\"$lastUser\">\n	<div class=\"blockMessage blockMessage--highlight\">\n		<div class=\"contentRow\">\n			<span class=\"contentRow-figure\">\n				<xf:avatar user=\"$lastUser\" size=\"s\" />\n			</span>\n			<div class=\"contentRow-main\">\n				<h2 class=\"contentRow-title\">{{ phrase(\'changes_saved\') }}</h2>\n				<a href=\"{{ link(\'users/edit\', $lastUser) }}\">{{ phrase(\'edit_x_again\', {\'name\': $lastUser.username}) }}</a>\n			</div>\n		</div>\n	</div>\n</xf:if>\n\n<div class=\"block\">\n	<div class=\"block-container\">\n		<h2 class=\"block-tabHeader tabs\" data-xf-init=\"tabs\" role=\"tablist\">\n			<a class=\"tabs-tab is-active\" role=\"tab\" tabindex=\"0\" aria-controls=\"user-search\">{{ phrase(\'standard_search\') }}</a>\n			<a class=\"tabs-tab\" role=\"tab\" tabindex=\"0\" aria-controls=\"ip-search\">{{ phrase(\'search_by_ip_address\') }}</a>\n		</h2>\n\n		<ul class=\"tabPanes\">\n			<li class=\"is-active\" role=\"tabpanel\" id=\"user-search\">\n				<xf:form action=\"{{ link(\'users/list\') }}\">\n					<div class=\"block-body\">\n						<xf:include template=\"helper_user_search_criteria\" />\n\n						<hr class=\"formRowSep\" />\n\n						<xf:formrow rowtype=\"input\"\n							label=\"{{ phrase(\'sort\') }}\">\n\n							<div class=\"inputPair\">\n								<xf:select name=\"order\">\n									<xf:options source=\"{$sortOrders}\" />\n								</xf:select>\n								<xf:select name=\"direction\">\n									<xf:option value=\"asc\">{{ phrase(\'ascending\') }}</xf:option>\n									<xf:option value=\"desc\">{{ phrase(\'descending\') }}</xf:option>\n								</xf:select>\n							</div>\n						</xf:formrow>\n					</div>\n					<xf:submitrow sticky=\"true\" icon=\"search\" />\n				</xf:form>\n			</li>\n			<li role=\"tabpanel\" id=\"ip-search\">\n				<xf:form action=\"{{ link(\'users/ip-users\') }}\">\n					<div class=\"block-body\">\n						<xf:textboxrow name=\"ip\"\n							label=\"{{ phrase(\'ip_address\') }}\"\n							explain=\"{{ phrase(\'ip_search_explain\') }}\" />\n					</div>\n					<xf:submitrow icon=\"search\" />\n				</xf:form>\n			</li>\n		</ul>\n	</div>\n</div>', 0x[encoded data, 26678 characters], 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
(505, 0x61646d696e, 0x757365725f7469746c655f6c61646465725f6c697374, 0, '<xf:title>{{ phrase(\'user_title_ladder\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'user-title-ladder/update\') }}\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:datalist data-xf-init=\"responsive-data-list\">\n				<colgroup>\n					<col style=\"width: 1%\" />\n					<col />\n					<col style=\"width: 130px\" />\n				</colgroup>\n				<xf:datarow rowtype=\"header\">\n					<xf:cell>{{ phrase(\'delete\') }}</xf:cell>\n					<xf:cell>{{ phrase(\'title\') }}</xf:cell>\n					<xf:cell>{{ phrase(\'minimum_value\') }}</xf:cell>\n				</xf:datarow>\n				<xf:foreach loop=\"$ladder\" value=\"$title\">\n					<xf:set var=\"$maxLength\" value=\"{{ max_length($title, \'title\') }}\" />\n					<xf:datarow>\n						<xf:toggle name=\"delete[]\" value=\"{$title.minimum_level}\" />\n						<xf:cell>\n							<xf:textbox name=\"update[{$title.minimum_level}][title]\" value=\"{$title.title}\" maxlength=\"{{ max_length($title, \'title\') }}\" />\n						</xf:cell>\n						<xf:cell>\n							<xf:numberbox name=\"update[{$title.minimum_level}][minimum_level]\"min=\"0\"\n								value=\"{$title.minimum_level}\" />\n						</xf:cell>\n					</xf:datarow>\n				</xf:foreach>\n				<xf:datarow>\n					<xf:cell data-hide-label=\"true\">{{ phrase(\'new:\') }}</xf:cell>\n					<xf:cell>\n						<xf:textbox name=\"title\" maxlength=\"{$maxLength}\" />\n					</xf:cell>\n					<xf:cell>\n						<xf:numberbox name=\"minimum_level\" min=\"0\" value=\"0\" />\n					</xf:cell>\n				</xf:datarow>\n			</xf:datalist>\n		</div>\n		<div class=\"block-footer block-footer--split\">\n			<span class=\"block-footer-counter\">{{ display_totals($ladder) }}</span>\n			<span class=\"block-footer-select\"><xf:checkbox standalone=\"true\"><xf:option check-all=\"< .block-container\" label=\"{{ phrase(\'select_all\') }}\" /></xf:checkbox></span>\n			<span class=\"block-footer-controls\"><xf:button type=\"submit\">{{ phrase(\'update_user_titles\') }}</xf:button></span>\n		</div>\n	</div>\n</xf:form>\n\n<xf:macro id=\"option_macros::option_form_block\" arg-options=\"{$options}\" />', 0x[encoded data, 31558 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057),
(506, 0x61646d696e, 0x757365725f757067726164655f6163746976655f646f776e6772616465, 0, '<xf:title>{{ phrase(\'confirm_action\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'user-upgrades/downgrade\', null, {\'user_upgrade_record_id\': $activeUpgrade.user_upgrade_record_id}) }}\"\n	ajax=\"true\" data-force-flash-message=\"on\" class=\"block\">\n\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:inforow rowtype=\"confirm\">\n				{{ phrase(\'please_confirm_that_you_want_to_downgrade_following_user:\') }}\n				<strong>\n					{$activeUpgrade.User.username}\n					<span role=\"presentation\" aria-hidden=\"true\">&middot;</span>\n					{$activeUpgrade.Upgrade.title}\n				</strong>\n			</xf:inforow>\n		</div>\n		<xf:submitrow submit=\"{{ phrase(\'downgrade\') }}\" rowtype=\"simple\" />\n	</div>\n</xf:form>', 0x[encoded data, 9460 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
(507, 0x61646d696e, 0x757365725f757067726164655f6163746976655f65646974, 0, '<xf:title>{{ phrase(\'edit_active_user_upgrade\') }}</xf:title>\n\n<xf:form action=\"{{ link(\'user-upgrades/edit-active\', null, {\'user_upgrade_record_id\': $activeUpgrade.user_upgrade_record_id}) }}\"\n	ajax=\"true\" class=\"block\">\n\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'user_name\') }}\">{$activeUpgrade.User.username}</xf:formrow>\n\n			<xf:formrow label=\"{{ phrase(\'upgrade_title\') }}\">{$activeUpgrade.Upgrade.title}</xf:formrow>\n\n			<xf:radiorow name=\"end_type\"\n				label=\"{{ phrase(\'upgrade_ends\') }}\">\n\n				<xf:option value=\"permanent\" selected=\"!{$activeUpgrade.end_date}\">{{ phrase(\'permanent\') }}</xf:option>\n				<xf:option value=\"date\" selected=\"{$activeUpgrade.end_date}\" label=\"{{ phrase(\'date:\') }}\">\n					<xf:dateinput name=\"end_date\" value=\"{{ $activeUpgrade.end_date ? date($activeUpgrade.end_date, \'picker\') : date($xf.time, \'picker\') }}\" />\n				</xf:option>\n			</xf:radiorow>\n		</div>\n		<xf:submitrow sticky=\"true\" icon=\"save\" />\n	</div>\n</xf:form>', 0x[encoded data, 18160 characters], 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
(508, 0x61646d696e, 0x757365725f757067726164655f6163746976655f6c697374, 0, '<xf:title>{{ phrase(\'active_user_upgrades\') }}{{ $userUpgrade ? \': \' . $userUpgrade.title : \'\' }}</xf:title>\n\n<xf:form action=\"{{ link(\'user-upgrades/active\', $userUpgrade) }}\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'filter_by_user\') }}\" rowtype=\"input\">\n				<xf:textbox name=\"username\" class=\"input--inline\" ac=\"single\" />\n				<xf:button type=\"submit\">{{ phrase(\'filter\') }}</xf:button>\n			</xf:formrow>\n		</div>\n	</div>\n</xf:form>\n\n<xf:if is=\"$activeUpgrades is not empty\">\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist data-xf-init=\"responsive-data-list\">\n					<xf:datarow rowtype=\"header\">\n						<xf:cell><a href=\"{{ link(\'user-upgrades/active\', $userUpgrade, {\'order\': \'username\', \'direction\': ($linkParams.order == \'username\' && $linkParams.direction == \'desc\') ? \'asc\' : \'desc\'} + $linkParams) }}\">{{ phrase(\'user\') }}</a></xf:cell>\n						<xf:cell>{{ phrase(\'upgrade_title\') }}</xf:cell>\n						<xf:cell>{{ phrase(\'payment_profile\') }}</xf:cell>\n						<xf:cell><a href=\"{{ link(\'user-upgrades/active\', $userUpgrade, {\'order\': \'start_date\', \'direction\': ($linkParams.order == \'start_date\' && $linkParams.direction == \'desc\') ? \'asc\' : \'desc\'} + $linkParams) }}\">{{ phrase(\'start_date\') }}</a></xf:cell>\n						<xf:cell><a href=\"{{ link(\'user-upgrades/active\', $userUpgrade, {\'order\': \'end_date\', \'direction\': ($linkParams.order == \'end_date\' && $linkParams.direction == \'desc\') ? \'asc\' : \'desc\'} + $linkParams) }}\">{{ phrase(\'end_date\') }}</a></xf:cell>\n						<xf:cell colspan=\"2\" />\n					</xf:datarow>\n					<xf:foreach loop=\"$activeUpgrades\" value=\"$activeUpgrade\">\n						<xf:datarow rowclass=\"dataList-row--noHover\">\n							<xf:cell>\n								<xf:username user=\"{$activeUpgrade.User}\" defaultname=\"{{ phrase(\'unknown_user\') }}\" href=\"{{ link(\'users/edit\', $activeUpgrade.User) }}\" />\n							</xf:cell>\n							<xf:cell>\n								<a href=\"{{ link(\'user-upgrades/edit\', $activeUpgrade.Upgrade) }}\">{$activeUpgrade.Upgrade.title}</a>\n							</xf:cell>\n							<xf:cell>\n								<xf:set var=\"$paymentProfile\" value=\"{$activeUpgrade.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=\"{$activeUpgrade.start_date}\" /></xf:cell>\n							<xf:cell>{{ $activeUpgrade.end_date ? date($activeUpgrade.end_date) : phrase(\'permanent\') }}</xf:cell>\n							<xf:action overlay=\"true\" href=\"{{ link(\'user-upgrades/edit-active\', null, {\'user_upgrade_record_id\': $activeUpgrade.user_upgrade_record_id}) }}\">{{ phrase(\'edit\') }}</xf:action>\n							<xf:action overlay=\"true\" href=\"{{ link(\'user-upgrades/downgrade\', null, {\'user_upgrade_record_id\': $activeUpgrade.user_upgrade_record_id}) }}\">{{ phrase(\'downgrade\') }}</xf: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($activeUpgrades, $totalActive) }}</span>\n			</div>\n		</div>\n\n		<xf:pagenav page=\"{$page}\" perpage=\"{$perPage}\" total=\"{$totalActive}\"\n			link=\"user-upgrades/active\" data=\"{$userUpgrade}\" params=\"{$linkParams}\"\n			wrapperclass=\"block-outer block-outer--after\" />\n	</div>\n<xf:else />\n	<div class=\"blockMessage\">{{ phrase(\'no_results_found\') }}</div>\n</xf:if>', 0x[encoded data, 71214 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
(509, 0x61646d696e, 0x757365725f757067726164655f65646974, 0, '<xf:if is=\"$upgrade.isInsert()\">\n	<xf:title>{{ phrase(\'add_user_upgrade\') }}</xf:title>\n<xf:else />\n	<xf:title>{{ phrase(\'edit_user_upgrade:\') }} {$upgrade.title}</xf:title>\n</xf:if>\n\n<xf:pageaction if=\"$upgrade.isUpdate()\">\n	<xf:button href=\"{{ link(\'user-upgrades/delete\', $upgrade) }}\" icon=\"delete\" overlay=\"true\" />\n</xf:pageaction>\n\n<xf:form action=\"{{ link(\'user-upgrades/save\', $upgrade) }}\" ajax=\"true\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:textboxrow name=\"title\" value=\"{$upgrade}\"\n				label=\"{{ phrase(\'title\') }}\" />\n\n			<xf:textarearow name=\"description\" value=\"{$upgrade}\" autosize=\"true\"\n				label=\"{{ phrase(\'description\') }}\"\n				hint=\"{{ phrase(\'you_may_use_html\') }}\" />\n\n			<xf:macro id=\"display_order_macros::row\" arg-value=\"{{ $upgrade.display_order ?: 1 }}\" />\n\n			<xf:formrow rowtype=\"input\"\n				label=\"{{ phrase(\'cost\') }}\">\n\n				<div class=\"inputGroup\">\n					<xf:textbox name=\"cost_amount\" value=\"{{ $upgrade.cost_amount ?: 5 }}\" style=\"width: 120px\" />\n					<span class=\"inputGroup-splitter\"></span>\n					<xf:macro id=\"public:currency_macros::currency_list\"\n						arg-value=\"{{ $upgrade.cost_currency ?: \'USD\' }}\"\n						arg-class=\"input--autoSize\" />\n				</div>\n\n				<div class=\"formRow-explain\">{{ phrase(\'cost_currency_explain\') }}</div>\n			</xf:formrow>\n\n			<xf:radiorow name=\"length_type\" label=\"{{ phrase(\'length\') }}\">\n				<xf:option value=\"permanent\" selected=\"$upgrade.length_unit == \'\'\">{{ phrase(\'permanent\') }}</xf:option>\n				<xf:option value=\"timed\" selected=\"$upgrade.length_unit != \'\'\" label=\"{{ phrase(\'for_length:\') }}\">\n					<xf:dependent>\n						<div class=\"inputGroup\">\n							<xf:numberbox name=\"length_amount\" value=\"{{ $upgrade.length_amount ?: 1 }}\" min=\"1\" />\n							<span class=\"inputGroup-splitter\"></span>\n							<xf:select name=\"length_unit\" value=\"{{ ($upgrade.length_unit == \'permanent\' OR !$upgrade.length_amount) ? \'months\' : $upgrade.length_unit }}\" class=\"input--inline\">\n								<xf:option value=\"day\">{{ phrase(\'days\') }}</xf:option>\n								<xf:option value=\"month\">{{ phrase(\'months\') }}</xf:option>\n								<xf:option value=\"year\">{{ phrase(\'years\') }}</xf:option>\n							</xf:select>\n						</div>\n\n					</xf:dependent>\n					<xf:dependent>\n						<xf:checkbox>\n							<xf:option name=\"recurring\" value=\"1\" selected=\"$upgrade.recurring\"\n								label=\"{{ phrase(\'recurring_payments\') }}\"\n								hint=\"{{ phrase(\'recurring_payments_explain\') }}\" />\n						</xf:checkbox>\n					</xf:dependent>\n				</xf:option>\n			</xf:radiorow>\n\n			<xf:checkboxrow name=\"payment_profile_ids\" value=\"{$upgrade.payment_profile_ids}\"\n				label=\"{{ phrase(\'payment_profile\') }}\">\n\n				<xf:foreach loop=\"$profiles\" key=\"$profileId\" value=\"$profile\">\n					<xf:option value=\"{$profileId}\" label=\"{{ $profile.Provider.title !== $profile.title ? $profile.Provider.title . \' - \' . $profile.title : $profile.Provider.title }}\" />\n				</xf:foreach>\n			</xf:checkboxrow>\n\n			<xf:checkboxrow name=\"extra_group_ids\" value=\"{$upgrade.extra_group_ids}\" listclass=\"listColumns\"\n				label=\"{{ phrase(\'additional_user_groups\') }}\"\n				explain=\"{{ phrase(\'additional_user_groups_explain\') }}\">\n				<xf:options source=\"$userGroups\" />\n			</xf:checkboxrow>\n\n			<xf:if is=\"$upgrades is not empty\">\n				<xf:checkboxrow name=\"disabled_upgrade_ids\" value=\"{$upgrade.disabled_upgrade_ids}\" listclass=\"listColumns\"\n					label=\"{{ phrase(\'disabled_user_upgrades\') }}\"\n					explain=\"{{ phrase(\'disabled_user_upgrades_explain\') }}\">\n					<xf:options source=\"$upgrades\" />\n				</xf:checkboxrow>\n			</xf:if>\n\n			<xf:checkboxrow>\n				<xf:option name=\"can_purchase\" selected=\"$upgrade.can_purchase\">{{ phrase(\'can_be_purchased\') }}</xf:option>\n			</xf:checkboxrow>\n		</div>\n		<xf:submitrow icon=\"save\" sticky=\"true\" />\n	</div>\n</xf:form>', 0x[encoded data, 65150 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
(510, 0x61646d696e, 0x757365725f757067726164655f657870697265645f6c697374, 0, '<xf:title>{{ phrase(\'expired_user_upgrades\') }}{{ $userUpgrade ? \': \' . $userUpgrade.title : \'\' }}</xf:title>\n\n<xf:form action=\"{{ link(\'user-upgrades/expired\', $userUpgrade) }}\" class=\"block\">\n	<div class=\"block-container\">\n		<div class=\"block-body\">\n			<xf:formrow label=\"{{ phrase(\'filter_by_user\') }}\" rowtype=\"input\">\n				<xf:textbox name=\"username\" class=\"input--inline\" ac=\"single\" />\n				<xf:button type=\"submit\">{{ phrase(\'filter\') }}</xf:button>\n			</xf:formrow>\n		</div>\n	</div>\n</xf:form>\n\n<xf:if is=\"$expiredUpgrades is not empty\">\n	<div class=\"block\">\n		<div class=\"block-container\">\n			<div class=\"block-body\">\n				<xf:datalist data-xf-init=\"responsive-data-list\">\n					<xf:datarow rowtype=\"header\">\n						<xf:cell><a href=\"{{ link(\'user-upgrades/expired\', $userUpgrade, {\'order\': \'username\', \'direction\': ($linkParams.order == \'username\' && $linkParams.direction == \'desc\') ? \'asc\' : \'desc\'} + $linkParams) }}\">{{ phrase(\'user\') }}</a></xf:cell>\n						<xf:cell>{{ phrase(\'upgrade_title\') }}</xf:cell>\n						<xf:cell>{{ phrase(\'payment_profile\') }}</xf:cell>\n						<xf:cell><a href=\"{{ link(\'user-upgrades/expired\', $userUpgrade, {\'order\': \'start_date\', \'direction\': ($linkParams.order == \'start_date\' && $linkParams.direction == \'desc\') ? \'asc\' : \'desc\'} + $linkParams) }}\">{{ phrase(\'start_date\') }}</a></xf:cell>\n						<xf:cell><a href=\"{{ link(\'user-upgrades/expired\', $userUpgrade, {\'order\': \'end_date\', \'direction\': ($linkParams.order == \'end_date\' && $linkParams.direction == \'desc\') ? \'asc\' : \'desc\'} + $linkParams) }}\">{{ phrase(\'end_date\') }}</a></xf:cell>\n					</xf:datarow>\n					<xf:foreach loop=\"$expiredUpgrades\" value=\"$expiredUpgrade\">\n						<xf:datarow rowclass=\"dataList-row--noHover\">\n							<xf:cell>\n								<xf:username user=\"{$expiredUpgrade.User}\" defaultname=\"{{ phrase(\'unknown_user\') }}\" href=\"{{ link(\'users/edit\', $expiredUpgrade.User) }}\" />\n							</xf:cell>\n							<xf:cell>\n								<a href=\"{{ link(\'user-upgrades/edit\', $expiredUpgrade.Upgrade) }}\">{$expiredUpgrade.Upgrade.title}</a>\n							</xf:cell>\n							<xf:cell>\n								<xf:set var=\"$paymentProfile\" value=\"{$expiredUpgrade.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=\"{$expiredUpgrade.start_date}\" /></xf:cell>\n							<xf:cell>{{ $expiredUpgrade.end_date ? date($expiredUpgrade.end_date) : phrase(\'permanent\') }}</xf:cell>\n						</xf:datarow>\n					</xf:foreach>\n				</xf:datalist>\n			</div>\n			<div class=\"block-footer\">\n				<span class=\"block-footer-counter\">{{ display_totals($expiredUpgrades, $totalExpired) }}</span>\n			</div>\n		</div>\n\n		<xf:pagenav page=\"{$page}\" perpage=\"{$perPage}\" total=\"{$totalExpired}\"\n			link=\"user-upgrades/expired\" data=\"{$userUpgrade}\" params=\"{$linkParams}\"\n			wrapperclass=\"block-outer block-outer--after\" />\n	</div>\n<xf:else />\n	<div class=\"blockMessage\">{{ phrase(\'no_results_found\') }}</div>\n</xf:if>', 0x[encoded data, 64394 characters], 0x5846, 2030010, '2.3.0 Alpha', 1748686057);
