<xf:if is="in_array('users', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('users') }}</h3>
	<xf:macro id="import_macros::step_users_config" arg-config="{$stepConfig.users}" />

	<xf:textboxrow name="step_config[users][super_admins]" value="{$baseConfig.super_admins}"
		label="{{ phrase('xfi_super_admin_user_ids') }}"
		explain="{{ phrase('xfi_super_admin_user_ids_vbulletin_explain') }}"
		placeholder="$config['SpecialUsers']['superadministrators']" />
</xf:if>

<xf:if is="in_array('avatars', $steps) && $baseConfig.avatarpath">
	<h3 class="block-formSectionHeader">{{ phrase('avatars') }}</h3>
	<xf:textboxrow name="step_config[avatars][path]" value="{$stepConfig.avatars.path}"
		label="{{ phrase('xfi_import_avatars_path') }}"
		explain="{{ phrase('xfi_import_avatars_path_vbulletin_explain') }}" />
</xf:if>

<xf:if is="in_array('forums', $steps) && $vBulletin5">
	<h3 class="block-formSectionHeader">{{ phrase('forums') }}</h3>
	<xf:radiorow name="step_config[forums][import_everything]" value="{$stepConfig.forums.import_everything}">
		<xf:option value="1" label="{{ phrase('xfi_import_blogs_and_groups') }}" />
		<xf:option value="0" label="{{ phrase('xfi_import_forums_only') }}" />
		<xf:explain>{{ phrase('xfi_import_blogs_and_groups_vbulletin_explain') }}</xf:explain>
	</xf:radiorow>
</xf:if>

<xf:if is="in_array('attachments', $steps) && $baseConfig.attachpath">
	<h3 class="block-formSectionHeader">{{ phrase('attachments') }}</h3>
	<xf:textboxrow name="step_config[attachments][path]" value="{$stepConfig.attachments.path}"
		label="{{ phrase('import_attachments_path') }}"
		explain="{{ phrase('xfi_import_attachments_path_vbulletin_explain') }}" />
</xf:if>

<xf:if is="in_array('faq', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('xfi_import_faq_pages') }}</h3>
	<xf:radiorow name="step_config[faq][import_as]" value="{$stepConfig.faq.import_as}"
		label="{{ phrase('import_as') }}"
		explain="{{ phrase('xfi_import_faq_pages_explain')|nl2br }}">
		<xf:option value="help" label="{{ phrase('xfi_import_as_help_pages') }}"></xf:option>
		<xf:if is="!$retainIds">
			<xf:option value="page" label="{{ phrase('xfi_import_as_page_nodes_with_parent_node...') }}">
				<xf:select name="step_config[faq][parent_node_id]" value="{$stepConfig.faq.parent_node_id}" label="{{ phrase('parent_node') }}">
					<xf:option value="0">{{ phrase('(none)') }}</xf:option>
					<xf:foreach loop="$nodeTree.getFlattened(0)" value="$treeEntry">
						<xf:option value="{$treeEntry.record.node_id}">{{ repeat('--', $treeEntry.depth) }} {$treeEntry.record.title}</xf:option>
					</xf:foreach>
				</xf:select>
			</xf:option>
		<xf:else />
			<xf:option value="page" label="{{ phrase('xfi_import_as_page_nodes_with_parent_node...') }}">
				<xf:textbox name="step_config[faq][parent_node_title]" value="{$stepConfig.faq.parent_node_title}"
					maxlength="{{ max_length('XF:Node', 'title') }}"
					placeholder="{{ phrase('xfi_import_title_for_faq_parent_node...') }}" />
			</xf:option>
		</xf:if>
	</xf:radiorow>
</xf:if>

<xf:if is="in_array('notices', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('xfi_import_notices') }}</h3>
	<xf:radiorow name="step_config[notices][notice_type]" value="{$stepConfig.notices.notice_type}"
		label="{{ phrase('xfi_import_notices_as') }}">
		<xf:options source="$noticeTypes" />
	</xf:radiorow>
	<xf:radiorow name="step_config[notices][persistent_notice_type]" value="{$stepConfig.notices.persistent_notice_type}"
		label="{{ phrase('xfi_import_persistent_notices_as') }}"
		explain="{{ phrase('xfi_import_notices_explain') }}">
		<xf:options source="$noticeTypes" />
	</xf:radiorow>
</xf:if>

<xf:if is="in_array('smilies', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('smilies') }}</h3>
	<xf:macro id="import_macros::step_smilies_config" arg-config="{$stepConfig.smilies}" />
</xf:if>

<xf:if is="in_array('blogUsers', $steps) || in_array('blogEntries', $steps)">
	<h3 class="block-formSectionHeader">{{ phrase('xfi_import_blogs') }}</h3>
	<xf:if is="!$retainIds">
		<xf:selectrow name="step_config[blogUsers][parent_node_id]" value="{$stepConfig.blogUsers.parent_node_id}"
			label="{{ phrase('parent_node') }}"
			explain="{{ phrase('xfi_import_blogs_explain')|nl2br }}">
			<xf:foreach loop="$nodeTree.getFlattened(0)" value="$treeEntry">
				<xf:option
					value="{$treeEntry.record.node_id}"
					disabled="{{ $treeEntry.record.node_type_id != 'Forum' ? 'disabled' : '' }}">
					{{ repeat('--', $treeEntry.depth) }} {$treeEntry.record.title}
				</xf:option>
			</xf:foreach>
		</xf:selectrow>
	<xf:else />
		<xf:textboxrow name="step_config[blogUsers][parent_node_title]" value="{$stepConfig.blogUsers.parent_node_title}"
			label="{{ phrase('parent_node') }}"
			placeholder="{{ phrase('xfi_import_title_for_blogs_parent_node...') }}"
			explain="{{ phrase('xfi_import_blogs_retain_ids_explain')|nl2br }}"
			maxlength="{{ max_length('XF:Node', 'title') }}"/>
	</xf:if>
</xf:if>

<xf:if is="in_array('blogAttachments', $steps) && $baseConfig.blogattachpath">
	<h3 class="block-formSectionHeader">{{ phrase('xfi_import_blogs') }}</h3>
	<xf:textboxrow name="step_config[blogAttachments][path]" value="{$stepConfig.blogAttachments.path}"
		label="{{ phrase('import_attachments_path') }}"
		explain="{{ phrase('xfi_import_attachments_path_vbulletin_explain') }}" />
</xf:if>

<xf:if is="in_array('blogAttachmentsVB4', $steps) && $baseConfig.attachpath">
	<h3 class="block-formSectionHeader">{{ phrase('xfi_import_blogs') }}</h3>
	<xf:textboxrow name="step_config[blogAttachmentsVB4][path]" value="{$stepConfig.blogAttachmentsVB4.path}"
		label="{{ phrase('import_attachments_path') }}"
		explain="{{ phrase('xfi_import_attachments_path_vbulletin_explain') }}" />
</xf:if>