<?xml version="1.0" encoding="UTF-8"?>
<extension type="module" client="site" method="upgrade">
	<name>mod_articles_popular</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_POPULAR_XML_DESCRIPTION</description>
	<namespace path="src">Joomla\Module\ArticlesPopular</namespace>
	<files>
		<folder module="mod_articles_popular">services</folder>
		<folder>src</folder>
		<folder>tmpl</folder>
	</files>
	<languages>
		<language tag="en-GB">language/en-GB/mod_articles_popular.ini</language>
		<language tag="en-GB">language/en-GB/mod_articles_popular.sys.ini</language>
	</languages>
	<help key="Site_Modules:_Articles_-_Most_Read" />
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field
					name="catid"
					type="category"
					label="JCATEGORY"
					extension="com_content"
					multiple="true"
					filter="intarray"
					layout="joomla.form.field.list-fancy-select"
				/>

				<field
					name="count"
					type="number"
					label="MOD_POPULAR_FIELD_COUNT_LABEL"
					default="5"
					filter="integer"
				/>

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

				<field
					name="basicspacer1"
					type="spacer"
					hr="true"
				/>

				<field
					name="date_filtering"
					type="list"
					label="MOD_POPULAR_FIELD_DATEFILTERING_LABEL"
					default="off"
					validate="options"
					>
					<option value="off">MOD_POPULAR_OPTION_OFF_VALUE</option>
					<option value="range">MOD_POPULAR_OPTION_DATERANGE_VALUE</option>
					<option value="relative">MOD_POPULAR_OPTION_RELATIVEDAY_VALUE</option>
				</field>

				<field
					name="date_field"
					type="list"
					label="MOD_POPULAR_FIELD_DATEFIELD_LABEL"
					default="a.created"
					showon="date_filtering:range,relative"
					validate="options"
					>
					<option value="a.created">MOD_POPULAR_OPTION_CREATED_VALUE</option>
					<option value="a.modified">MOD_POPULAR_OPTION_MODIFIED_VALUE</option>
					<option value="a.publish_up">MOD_POPULAR_OPTION_STARTPUBLISHING_VALUE</option>
				</field>

				<field
					name="start_date_range"
					type="calendar"
					label="MOD_POPULAR_FIELD_STARTDATE_LABEL"
					translateformat="true"
					showtime="true"
					filter="user_utc"
					showon="date_filtering:range"
				/>

				<field
					name="end_date_range"
					type="calendar"
					label="MOD_POPULAR_FIELD_ENDDATE_LABEL"
					translateformat="true"
					showtime="true"
					filter="user_utc"
					showon="date_filtering:range"
				/>

				<field
					name="relative_date"
					type="number"
					label="MOD_POPULAR_FIELD_RELATIVEDATE_LABEL"
					default="30"
					filter="integer"
					showon="date_filtering:relative"
				/>
			</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"
				/>

				<field
					name="cache"
					type="list"
					label="COM_MODULES_FIELD_CACHING_LABEL"
					default="1"
					filter="integer"
					validate="options"
					>
					<option value="1">JGLOBAL_USE_GLOBAL</option>
					<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>

				<field
					name="cache_time"
					type="number"
					label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
					default="900"
					filter="integer"
				/>

				<field
					name="cachemode"
					type="hidden"
					default="static"
					>
					<option value="static"></option>
				</field>

			</fieldset>
		</fields>
	</config>
</extension>
