<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.1" client="site" method="upgrade">
	<name>mod_articles_popular</name>
	<author>Joomla! Project</author>
	<creationDate>July 2006</creationDate>
	<copyright>Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.</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>
	<files>
		<filename module="mod_articles_popular">mod_articles_popular.php</filename>
		<folder>tmpl</folder>
		<filename>helper.php</filename>
	</files>
	<languages>
		<language tag="en-GB">en-GB.mod_articles_popular.ini</language>
		<language tag="en-GB">en-GB.mod_articles_popular.sys.ini</language>
	</languages>
	<help key="JHELP_EXTENSIONS_MODULE_MANAGER_MOST_READ" />
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field
					name="catid"
					type="category"
					label="JCATEGORY"
					description="MOD_POPULAR_FIELD_CATEGORY_DESC"
					extension="com_content"
					multiple="true"
					filter="int_array"
				/>

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

				<field
					name="show_front"
					type="radio"
					label="MOD_POPULAR_FIELD_FEATURED_LABEL"
					description="MOD_POPULAR_FIELD_FEATURED_DESC"
					class="btn-group btn-group-yesno"
					default="1"
					filter="integer"
					>
					<option value="1">JSHOW</option>
					<option value="0">JHIDE</option>
				</field>

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

				<field
					name="date_filtering"
					type="list"
					label="MOD_POPULAR_FIELD_DATEFILTERING_LABEL"
					description="MOD_POPULAR_FIELD_DATEFILTERING_DESC"
					default="off"
					>
					<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"
					description="MOD_POPULAR_FIELD_DATEFIELD_DESC"
					default="a.created"
					showon="date_filtering:range,relative"
					>
					<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"
					description="MOD_POPULAR_FIELD_STARTDATE_DESC"
					translateformat="true"
					showtime="true"
					size="22"
					filter="user_utc"
					showon="date_filtering:range"
				/>

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

				<field
					name="relative_date"
					type="number"
					label="MOD_POPULAR_FIELD_RELATIVEDATE_LABEL"
					description="MOD_POPULAR_FIELD_RELATIVEDATE_DESC"
					default="30"
					filter="integer"
					showon="date_filtering:relative"
				/>
			</fieldset>

			<fieldset name="advanced">
				<field
					name="layout"
					type="modulelayout"
					label="JFIELD_ALT_LAYOUT_LABEL"
					description="JFIELD_ALT_MODULE_LAYOUT_DESC"
				/>

				<field
					name="moduleclass_sfx"
					type="textarea"
					label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
					description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"
					rows="3"
				/>

				<field
					name="cache"
					type="list"
					label="COM_MODULES_FIELD_CACHING_LABEL"
					description="COM_MODULES_FIELD_CACHING_DESC"
					default="1"
					filter="integer"
					>
					<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"
					description="COM_MODULES_FIELD_CACHE_TIME_DESC"
					default="900"
					filter="integer"
				/>

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

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