<?xml version="1.0" encoding="UTF-8"?>
<extension type="module" client="site" method="upgrade">
	<name>mod_finder</name>
	<author>Joomla! Project</author>
	<creationDate>2011-08</creationDate>
	<copyright>(C) 2011 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_FINDER_XML_DESCRIPTION</description>
	<namespace path="src">Joomla\Module\Finder</namespace>
	<files>
		<filename module="mod_finder">mod_finder.php</filename>
		<folder>src</folder>
		<folder>tmpl</folder>
	</files>
	<languages>
		<language tag="en-GB">language/en-GB/mod_finder.ini</language>
		<language tag="en-GB">language/en-GB/mod_finder.sys.ini</language>
	</languages>
	<help key="Site_Modules:_Smart_Search" />
	<config>
		<fields name="params" addfieldprefix="Joomla\Component\Finder\Administrator\Field">
			<fieldset name="basic">
				<field
					name="searchfilter"
					type="searchfilter"
					label="MOD_FINDER_FIELDSET_BASIC_SEARCHFILTER_LABEL"
					default=""
				/>

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

				<field
					name="show_advanced"
					type="list"
					label="MOD_FINDER_FIELDSET_BASIC_SHOW_ADVANCED_LABEL"
					default="0"
					filter="integer"
					validate="options"
					>
					<option value="2">MOD_FINDER_FIELDSET_BASIC_SHOW_ADVANCED_OPTION_LINK</option>
					<option value="1">JSHOW</option>
					<option value="0">JHIDE</option>
				</field>

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

				<field
					name="alt_label"
					type="text"
					label="MOD_FINDER_FIELDSET_ADVANCED_ALT_LABEL"
				/>

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

				<field
					name="opensearch"
					type="radio"
					layout="joomla.form.field.radio.switcher"
					label="MOD_FINDER_FIELD_OPENSEARCH_LABEL"
					default="1"
					filter="integer"
					>
					<option value="0">JNO</option>
					<option value="1">JYES</option>
				</field>

				<field
					name="opensearch_name"
					type="text"
					label="MOD_FINDER_FIELD_OPENSEARCH_TEXT_LABEL"
					showon="opensearch:1"
				/>

				<field
					name="set_itemid"
					type="menuitem"
					label="MOD_FINDER_FIELDSET_ADVANCED_SETITEMID_LABEL"
					filter="integer"
					>
					<option value="0">MOD_FINDER_SELECT_MENU_ITEMID</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>
