<?xml version="1.0" encoding="UTF-8"?>
<extension type="module" version="3.0" client="site" method="upgrade">
	<name>JS FlexSlider</name>
	<author>JoomSpirit</author>
	<creationDate>October 2012</creationDate>
	<copyright>Copyright 2012 JoomSpirit</copyright>
	<license>GNU General Public License version 2 or later</license>
	<authorEmail>contact@joomspirit.com</authorEmail>
	<authorURL>http://www.joomspirit.com</authorURL>
	<version>2.1</version>
	<description>     
    	<![CDATA[ 
		<link rel="stylesheet" href="../modules/mod_js_flexslider/css_admin.css" type="text/css" />
		This free module allows you to display a responsive slideshow based on the fexslider JQuery script.
		]]>
	</description>
	
	<files>
		<filename>mod_js_flexslider.xml</filename>
		<filename module="mod_js_flexslider">mod_js_flexslider.php</filename>
		<filename>helper.php</filename>
		<filename>css_admin.css</filename>
		<filename>index.html</filename>
		<folder>tmpl</folder>
		<folder>assets</folder>
	</files>
	
	<config>
		<fields name="params">
		
			<fieldset name="general" label="General settings">
	
				<field name="load_jquery" type="radio" default="1" label="Enable jQuery 1.8.2 ?" description="Turn on or off included jQuery version 1.8.2.">
					<option value="1">Yes</option>
					<option value="0">No</option>
				</field>		

				<field name="pauseOnHover" type="radio" default="true" label="Pause on hover" description="Pause the slideshow when hovering over slider, then resume when no longer hovering">
					<option value="true">Yes</option>
					<option value="false">No</option>
				</field>
				
				<field name="initDelay" type="text" default="0" label="Initialisation delay" description="Set an initialization delay, in milliseconds "/>				

				<field name="randomize" type="radio" default="false" label="Randomize slide order" description="">
					<option value="true">Yes</option>
					<option value="false">No</option>
				</field>				
								
				<field name="target" type="list" default="_blank" label="Target" description="Choose to open the link in a new browser window or the same window">
					<option value="_blank">New window</option>
					<option value="_self">Same window</option>
				</field>
					
			</fieldset>

			<fieldset name="minheight" label="Min Height">
			
				<field name="enable_minheight" type="radio" default="no" label="Enable this option" description="This option is usefull to display an empty space before the loading of the first image.">
					<option value="yes">Yes</option>
					<option value="no">No</option>
				</field>
			
				<field name="min_height" type="text" default="380" label="Minimum height of the slideshow in pixels when the screen resolution is large" description="generally, put the height of your images. If you choose the Theme 'Slide vertical', it will be the height of your images less than 25 pixels" />
			
			</fieldset>

			<fieldset name="maintheme" label="Slideshow Theme">
			
				<field name="slide_theme" type="radio" default="false" label="Slideshow theme" description="Slide theme display is ideal for slide transition. Choose Custom theme if you want use the options below.">
					<option value="true">Slide theme</option>
					<option value="false">Custom theme</option>
				</field>

				<field name="bg_color" type="text" default="#ffffff" label="Background color of the slideshow" description="Enter 'transparent' or the hexadecimal code color : default : #ffffff "/>				
			
			</fieldset>
			

			<fieldset name="customtheme" label="Options of Custom theme">
									
				<field name="theme_shadow" type="list" default="theme-shadow-normal" label="Shadow around the slideshow" description="If you choose Large shadow , a margin of 10 pixels will be around the slideshow">
					<option value="theme-without-shadow">No</option>
					<option value="theme-shadow-normal">Shadow normal (4px)</option>
					<option value="theme-shadow-large">Shadow large (15px)</option>
				</field>
				
				<field name="theme_border" type="list" default="00" label="Border around the slideshow" description="">
					<option value="00">None</option>
					<option value="01">2 pixels</option>
					<option value="02">4 pixels</option>
					<option value="03">7 pixels</option>
					<option value="04">10 pixels</option>
				</field>
				
				<field name="theme_border_radius" type="list" default="00" label="Border radius around the slideshow" description="">
					<option value="00">None</option>
					<option value="01">4 pixels</option>
					<option value="02">8 pixels</option>
					<option value="03">12 pixels</option>
					<option value="04">24 pixels</option>
				</field>

			</fieldset>			

			<fieldset name="control" label="Control navigation">

				<field name="directionNav" type="list" default="default" label="Enable prev / next button" description="Display navigation for previous/next navigation ?">
					<option value="default">Yes default style</option>
					<option value="white-arrow">Yes white arrow</option>
					<option value="black-arrow">Yes black arrow</option>				
					<option value="false">No</option>					
				</field>
				
				<field type="spacer" />
				
				<field name="controlNav" type="radio" default="true" label="Control nav" description="Create navigation for paging control of each slide ?">
					<option value="true">Yes</option>	
					<option value="false">No</option>
				</field>
				
				<field name="positionNav" type="list" default="under" label="Position of control nav" description="">
					<option value="under">Under the slideshow</option>
					<option value="bottom">Bottom of the slideshow</option>
					<option value="top">Top of the slideshow</option>
				</field>
				
				<field name="colorNav" type="list" default="dark" label="Color of non active button" description="Choose 'dark' on a light background or 'light' on a dark background">
					<option value="dark">Dark</option>
					<option value="light">Light</option>
				</field>
			
				<field name="colorNavActive" type="list" default="black" label="Color of active button nav" description="">
					<option value="black">Black</option>
					<option value="green">Green</option>
					<option value="red">Red</option>
					<option value="orange">Orange</option>
					<option value="blue">Blue</option>
					<option value="white">White</option>
				</field>				
				
			</fieldset>	
				
				
			<fieldset name="transition" label="Transitions">	
				
				<field name="transition" type="radio" default="fade" label="Transition" description="Choose whether the slider will fade or slide between slides">
					<option value="slide">Slide</option>
					<option value="fade">Fade</option>
				</field>
				<field name="direction" type="radio" default="horizontal" label="Direction of slide transition" description="">
					<option value="horizontal">Horizontal</option>
					<option value="vertical">Vertical</option>
				</field>				

				<field name="animSpeed" type="text" default="2000" label="Animation speed (ms)" description="Speed of the transition (in ms)" />
				<field name="pauseTime" type="text" default="3500" label="Pause time (ms)" description="How long each slide is show (in ms)" />
				
			</fieldset>
			
			
			<fieldset name="captions" label="Captions">
			
				<field name="bg_caption" type="radio" default="black" label="Background color of caption text" description="">
					<option value="black">Black</option>
					<option value="white">White</option>
				</field>
				
				<field name="transparency_caption" type="list" default="2" label="Transparency of this background" description="">
					<option value="00">No transparency</option>
					<option value="01">Transparency 01</option>
					<option value="02">Transparency 02</option>
					<option value="03">Transparency 03</option>
					<option value="04">Transparency 04</option>
					<option value="05">Transparency 05</option>
					<option value="06">Transparency 06</option>
					<option value="09">100% Transparent</option>
				</field>				
				
				<field name="position_caption" type="radio" default="bottom" label="Position of caption text" description="">
					<option value="bottom">Bottom</option>
					<option value="top">Top</option>
				</field>
				
				<field name="text_align" type="radio" default="centered" label="text align" description="">
					<option value="left">Left</option>
					<option value="centered">Centered</option>
					<option value="right">Right</option>
				</field>
				
				<field name="color_caption" type="text" default="#dddddd" label="Color of caption text" description="Put the hexadecimal code : default : #dddddd "/>				
				
			</fieldset>
			
			<fieldset name="images" label="Images">
			
				<field name="image1" type="media" directory="stories" label="Image 1"/>
				<field name="image1alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image1cap" type="textarea" default="" label="Image 1 caption" description="Caption for first image" filter="raw"/>
				<field name="image1customlink" type="text" default="" label="Optionnal Image 1 link" description="Link for first slide"/>
				
				<field type="spacer" name="myspacer" />
				
				<field name="image2" type="media" directory="stories" label="Image 2"/>
				<field name="image2alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image2cap" type="textarea" default="" label="Image 2 caption" description="Caption for second image" filter="raw"/>
				<field name="image2customlink" type="text" default="" label="Optionnal Image 2 link" description="Link for second slide"/>
				
				<field type="spacer" name="myspacer2" />
				
				<field name="image3" type="media" directory="stories" label="Image 3"/>
				<field name="image3alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image3cap" type="textarea" default="" label="Image 3 caption" description="Caption for third image" filter="raw"/>
				<field name="image3customlink" type="text" default="" label="Optionnal Image 3 link" description="Link for third slide"/>
				
				<field type="spacer" name="myspacer3" />
				
				<field name="image4" type="media" directory="stories" label="Image 4"/>
				<field name="image4alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image4cap" type="textarea" default="" label="Image 4 caption" description="Caption for fourth image" filter="raw"/>
				<field name="image4customlink" type="text" default="" label="Optionnal Image 4 link" description="Link for fourth slide"/>
				
				<field type="spacer" name="myspacer4" />
				
				<field name="image5" type="media" directory="stories" label="Image 5"/>
				<field name="image5alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image5cap" type="textarea" default="" label="Image 5 caption" description="Caption for fifth image" filter="raw"/>
				<field name="image5customlink" type="text" default="" label="Optionnal Image 5 link" description="Link for fifth slide"/>
				
				<field type="spacer" name="myspacer5" />
				
				<field name="image6" type="media" directory="stories" label="Image 6"/>
				<field name="image6alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image6cap" type="textarea" default="" label="Image 6 caption" description="Caption for sixth image" filter="raw"/>
				<field name="image6customlink" type="text" default="" label="Optionnal Image 6 Link" description="Link for sixth slide"/>
				
				<field type="spacer" name="myspacer6" />
				
				<field name="image7" type="media" directory="stories" label="Image 7"/>
				<field name="image7alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image7cap" type="textarea" default="" label="Image 7 caption" description="Caption for seventh image" filter="raw"/>
				<field name="image7customlink" type="text" default="" label="Optionnal Image 7 Link" description="Link for seventh slide"/>
				
				<field type="spacer" name="myspacer7" />
				
				<field name="image8" type="media" directory="stories" label="Image 8"/>
				<field name="image8alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image8cap" type="textarea" default="" label="Image 8 caption" description="Caption for eighth image" filter="raw"/>
				<field name="image8customlink" type="text" default="" label="Optionnal Image 8 Link" description="Link for eigth slide"/>
				
				<field type="spacer" name="myspacer8" />
				
				<field name="image9" type="media" directory="stories" label="Image 9"/>
				<field name="image9alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image9cap" type="textarea" default="" label="Image 9 caption" description="Caption for ninth image" filter="raw"/>
				<field name="image9customlink" type="text" default="" label="Optionnal Image 9 Link" description="Link for ninth slide"/>
				
				<field type="spacer" name="myspacer9" />
				
				<field name="image10" type="media" directory="stories" label="Image 10"/>
				<field name="image10alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image10cap" type="textarea" default="" label="Image 10 caption" description="Caption for tenth image" filter="raw"/>
				<field name="image10customlink" type="text" default="" label="Optionnal Image 10 Link" description="Link for tenth slide"/>
				
				<field type="spacer" name="myspacer10" />
				
				<field name="image11" type="media" directory="stories" label="Image 11"/>
				<field name="image11alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image11cap" type="textarea" default="" label="Image 11 caption" description="Caption for eleventh image" filter="raw"/>
				<field name="image11customlink" type="text" default="" label="Optionnal Image 11 Link" description="Link for eleventh slide"/>
				
				<field type="spacer" name="myspacer11" />
				
				<field name="image12" type="media" directory="stories" label="Image 12"/>
				<field name="image12alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image12cap" type="textarea" default="" label="Image 12 caption" description="Caption for twelfth image" filter="raw"/>
				<field name="image12customlink" type="text" default="" label="Optionnal Image 12 Link" description="Link for twelfth slide"/>
				
				<field type="spacer" name="myspacer12" />
				
				<field name="image13" type="media" directory="stories" label="Image 13"/>
				<field name="image13alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image13cap" type="textarea" default="" label="Image 13 caption" description="Caption for thirteenth image" filter="raw"/>
				<field name="image13customlink" type="text" default="" label="Optionnal Image 13 Link" description="Link for thirteenth slide"/>
				
				<field type="spacer" name="myspacer13" />
				
				<field name="image14" type="media" directory="stories" label="Image 14"/>
				<field name="image14alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image14cap" type="textarea" default="" label="Image 14 caption" description="Caption for fourteenth image" filter="raw"/>
				<field name="image14customlink" type="text" default="" label="Optionnal Image 14 Link" description="Link for fourteenth slide"/>
				
				<field type="spacer" name="myspacer14" />
				
				<field name="image15" type="media" directory="stories" label="Image 15"/>
				<field name="image15alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image15cap" type="textarea" default="" label="Image 15 caption" description="Caption for fifteenth image" filter="raw"/>
				<field name="image15customlink" type="text" default="" label="Optionnal Image 15 Link" description="Link for fifteenth slide"/>
				
				<field type="spacer" name="myspacer15" />
				
				<field name="image16" type="media" directory="stories" label="Image 16"/>
				<field name="image16alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image16cap" type="textarea" default="" label="Image 16 caption" description="Caption for sixteenth image" filter="raw"/>
				<field name="image16customlink" type="text" default="" label="Optionnal Image 16 Link" description="Link for sixteenth slide"/>
				
				<field type="spacer" name="myspacer16" />
				
				<field name="image17" type="media" directory="stories" label="Image 17"/>
				<field name="image17alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image17cap" type="textarea" default="" label="Image 17 caption" description="Caption for seventeenth image" filter="raw"/>
				<field name="image17customlink" type="text" default="" label="Optionnal Image 17 Link" description="Link for seventeenth slide"/>
				
				<field type="spacer" name="myspacer17" />
				
				<field name="image18" type="media" directory="stories" label="Image 18"/>
				<field name="image18alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image18cap" type="textarea" default="" label="Image 18 caption" description="Caption for eighteenth image" filter="raw"/>
				<field name="image18customlink" type="text" default="" label="Optionnal Image 18 Link" description="Link for eighteenth slide"/>
				
				<field type="spacer" name="myspacer18" />
				
				<field name="image19" type="media" directory="stories" label="Image 19"/>
				<field name="image19alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image19cap" type="textarea" default="" label="Image 19 caption" description="Caption for nineteenth image" filter="raw"/>
				<field name="image19customlink" type="text" default="" label="Optionnal Image 19 Link" description="Link for nineteenth slide"/>
				
				<field type="spacer" name="myspacer19" />
				
				<field name="image20" type="media" directory="stories" label="Image 20"/>
				<field name="image20alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image20cap" type="textarea" default="" label="Image 20 caption" description="Caption for twentieth image" filter="raw"/>
				<field name="image20customlink" type="text" default="" label="Optionnal Image 20 Link" description="Link for twentieth slide"/>
				
				<field type="spacer" name="myspacer20" />
				
				<field name="image21" type="media" directory="stories" label="Image 21"/>
				<field name="image21alt" type="text" default="" label="Alt text" description="Optionnal text for this image"/>
				<field name="image21cap" type="textarea" default="" label="Image 21 caption" description="Caption for twenty-first image" filter="raw"/>
				<field name="image21customlink" type="text" default="" label="Optionnal Image 21 Link" description="Link for twenty-first slide"/>
				
			</fieldset>

			<!-- Thanks to Fabian Becker for this new feature -->
			<fieldset name="imagedirectory" label="Image directory">
			
				<field name="imagefolder" type="folderlist" directory="images/" label="Folder" hide_default="true" description="The folder with your images must be in the folder 'Images' of your Joomla website." />
				
			</fieldset>
			
			<fieldset name="advanced">

				<field name="moduleclass_sfx" type="text" label="Module class suffix"
				description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"/>
				<field name="cache" type="list" default="1" label="Caching"
				description="COM_MODULES_FIELD_CACHING_DESC">
					<option value="1">JGLOBAL_USE_GLOBAL</option>
					<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>
				<field name="cache_time" type="text" default="900" 
				label="Cache time"
				description="COM_MODULES_FIELD_CACHE_TIME_DESC"/>
				<field name="cachemode" type="hidden" default="itemid">
					<option value="itemid"></option>
				</field>
			</fieldset>
		</fields>
	</config>
</extension>
