<?xml version="1.0" encoding="UTF-8"?>
<extension type="module" client="site" method="upgrade">
	<name>mod_login</name>
	<author>Joomla! Project</author>
	<creationDate>2006-07</creationDate>
	<copyright>(C) 2006 Open Source Matters, Inc.</copyright>
	<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.0.0</version>
	<description>MOD_LOGIN_XML_DESCRIPTION</description>
	<namespace path="src">Joomla\Module\Login</namespace>
	<files>
		<filename module="mod_login">mod_login.php</filename>
		<folder>src</folder>
		<folder>tmpl</folder>
	</files>
	<languages>
		<language tag="en-GB">language/en-GB/mod_login.ini</language>
		<language tag="en-GB">language/en-GB/mod_login.sys.ini</language>
	</languages>
	<help key="Site_Modules:_Login" />
	<config>
		<fields name="params">
			<fieldset name="basic" addfieldprefix="Joomla\Component\Menus\Administrator\Field">
				<field
					name="pretext"
					type="textarea"
					label="MOD_LOGIN_FIELD_PRE_TEXT_LABEL"
					filter="safehtml"
					cols="30"
					rows="5"
				/>

				<field
					name="posttext"
					type="textarea"
					label="MOD_LOGIN_FIELD_POST_TEXT_LABEL"
					filter="safehtml"
					cols="30"
					rows="5"
				/>

				<field
					name="login"
					type="modal_menu"
					label="MOD_LOGIN_FIELD_LOGIN_REDIRECTURL_LABEL"
					description="MOD_LOGIN_FIELD_LOGIN_REDIRECTURL_DESC"
					disable="separator,alias,heading,url"
					select="true"
					new="true"
					edit="true"
					clear="true"
					>
					<option value="">JOPTION_SELECT_MENU_ITEM</option>
				</field>

				<field
					name="logout"
					type="modal_menu"
					label="MOD_LOGIN_FIELD_LOGOUT_REDIRECTURL_LABEL"
					description="MOD_LOGIN_FIELD_LOGOUT_REDIRECTURL_DESC"
					disable="separator,alias,heading,url"
					select="true"
					new="true"
					edit="true"
					clear="true"
					>
					<option value="">JOPTION_SELECT_MENU_ITEM</option>
				</field>

				<field
					name="customRegLinkMenu"
					type="modal_menu"
					label="MOD_LOGIN_FIELD_REGISTRATION_MENU_LABEL"
					disable="separator,alias,heading,url"
					select="true"
					new="true"
					edit="true"
					clear="true"
					>
					<option value="">JOPTION_SELECT_MENU_ITEM</option>
				</field>

				<field
					name="greeting"
					type="radio"
					layout="joomla.form.field.radio.switcher"
					label="MOD_LOGIN_FIELD_GREETING_LABEL"
					default="1"
					filter="integer"
					>
					<option value="0">JHIDE</option>
					<option value="1">JSHOW</option>
				</field>

				<field
					name="name"
					type="radio"
					layout="joomla.form.field.radio.switcher"
					label="MOD_LOGIN_FIELD_NAME_LABEL"
					default="0"
					filter="integer"
					showon="greeting:1"
					>
					<option value="0">MOD_LOGIN_VALUE_NAME</option>
					<option value="1">MOD_LOGIN_VALUE_USERNAME</option>
				</field>

				<field
					name="profilelink"
					type="radio"
					label="MOD_LOGIN_FIELD_PROFILE_LABEL"
					layout="joomla.form.field.radio.switcher"
					default="0"
					filter="integer"
					>
					<option value="0">JHIDE</option>
					<option value="1">JSHOW</option>
				</field>

				<field
					name="usetext"
					type="radio"
					layout="joomla.form.field.radio.switcher"
					label="MOD_LOGIN_FIELD_USETEXT_LABEL"
					default="0"
					filter="integer"
					>
					<option value="0">MOD_LOGIN_VALUE_ICONS</option>
					<option value="1">MOD_LOGIN_VALUE_TEXT</option>
				</field>
			</fieldset>

			<fieldset name="advanced">
				<field
					name="layout"
					type="modulelayout"
					label="JFIELD_ALT_LAYOUT_LABEL"
					class="form-select"
					validate="moduleLayout"
				/>

				<field
					name="moduleclass_sfx"
					type="textarea"
					label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
					rows="3"
					validate="CssIdentifier"
				/>
			</fieldset>
		</fields>
	</config>
</extension>
