<?xml version="1.0" encoding="UTF-8"?>
	
<!-- 

	adverts widget settiings

	projectConfigFile:	project configs file (for feed specific settings)
	alwaysShown:		should the adverts always be shown? e.g. when a banner (touches & onShowDialog etc. won't close it if so)
	name:				a unique name for this instance of the plugin: for creating the feed folder and for showing onShowDialog etc (see StateManager.xml)
	feedId:				element name of the source feed settings in project specific ConfigFile	
						the id MUST start with one of the following (as it is used to determine which feed interface to create in code)
						"doohad" 		- download playlist from doohad, as configured in "doohad" section of project specific ConfigFile
						"screensaver" 	- make single item playlist using the screensaver that was downloaded from wayfinder CMS with the map
						"broadsign" 	- broadsign shows ads, this plugin hide/shows wayfinder when broadsign show/hidden + 
						                  shows emergency messages (tells broadsign to hide)
						"clearchannel" 	- download playlist from clearchannel, as configured in "clearchannel" section of project specific ConfigFile
	attractorId:		element name of the attractors settings in project specific ConfigFile (will contain and advert area and one or more attractors)
	sync (bool):		attempt to sync content between other advert plugins using the same feedid i.e. when plugin shown it will play the same item as 
						the previously visible one.
	defaultPlaylist:	if no feed items or messages found, use the default playlist, that has this node name, from the project specific ConfigFile
						leave it blacnk to NOT use a default playlist
	adType: 			if interface supports it, only use ads of this type 
						e.g. doohad uses it in-code to distinguish between "ad-loop" and "ad-banner" items in the same feed
						e.g. clear channel uses it as a url variable (%%adtype%%) in the project configs to distinguish diff. full/banner feed urls
						
		
	* To use the Advert Plugin for "messages only":
	  - enable the Advert plugin
	  - feedId="" (so not adverts are shown)
	  - defaultPlaylist="" (so doesn't show the default playlist in the configs file when there are no messages to play)		
		
-->

<Adverts
		style="Container" 
		styleFile="never send\_configs\plugins\AdvertsStyle.xml"
		languageFile="never send\_configs\plugins\languageFile.xml"								
		projectConfigFile="%%Folder.Project%%\configs.xml"
		alwaysShown="false"	
		name="FullScreenAds"		
		feedId="%%Adverts.FeedId%%"		
		attractorId="%%Adverts.AttractorId%%"		
		sync="%%Adverts.Sync%%"
		defaultPlaylist="%%Adverts.DefaultPlaylist%%"
		adType="%%Adverts.AdType%%"		
>


	<!--	
		
		area of the advert ****
		
		
	-->
	<area 
		x="%%Adverts.X%%" 
		y="%%Adverts.Y%%" 
		width="%%Adverts.Width%%" 
		height="%%Adverts.Height%%" 
	/>


	<!-- 

		transitions
	  
		transition: 		how to animate between adverts
								0=none
								1=x-fade
								2=push left 
								3=push right
								4=push down
								5=push up
		transitionspeed:	of the above animation, in milliseconds		
		
	-->
	<transitions
		
		type="%%Adverts.Transition%%" 
		speed="500"
		
	/>
	
	
	<!-- 
	
		messages
		
		mediumFrequency:	medium priority messages are shown in between ads at this frequency
										e.g. 1 plays ad-msg-ad-msg, 2 ad-ad-msg-ad-ad-msg etc.
										NOTE that high priority REPLACE all ads so have no frequency
		lowFrequency:			low priority messages are shown in between ads at this frequency
										see above	
		duration:					how long message is shown for
		iconPos:					top (portrait) or left (landscape) of the iconPos
		gapIconText:				gap between icon and textStyle
										NOTE if portrait text is below the icon, if landscape it is to the right of it
										NOTE portrait text is centered, landscape text is left aligned
		gapText:					gap between the text lines
		titleStyle:					title style
		subtitleStyle				subtitle style
		textStyle:					text style
		
		NOTE: messages are built depending on their version and may or may not use the above settings
		
		
		**** MESSAGES: TODO - Part implemented based on Rotterdam format. Needs more info to proceed. See https://app.clickup.com/t/2561453/PRD-2945
		**** NOTE that there is no downloader witten yet so they're only shown if you manually put a file in!
		
	-->
	<messages
			mediumFrequency="1"
			lowFrequency="2"
			duration="%%Doohad.Message.Duration%%"
			iconPos="%%Doohad.Message.IconPos%%"
			gapIconText="%%Doohad.Message.GapIconText%%"
			gapText="%%Doohad.Message.GapText%%"
			titleStyle="Msg_Title"
			subtitleStyle="Msg_Subtitle"
			textStyle="Msg_Text"
	/>
	
</Adverts>
