<?php

	require($_SERVER['DOCUMENT_ROOT'].'/engine/engine.php');

			$query = "SELECT 
					  banners.id,
					  banners.titulo,
					  banners.imagen,
					  banners.descripcion,
					  banners.link,
					  banners.delay
					FROM
					 banners"; 
			 
			$banners = $engine->DB->QueryToArray($query);

?>

<Banner 
	bannerWidth=""
	bannerHeight=""
	bannerBackgroundColor=""
	bannerLoopCount=""
	bannerCornerRadius="5"
	buttonsVerticalMargin="7"
	buttonsHorizontalMargin="15"

	textEmbed="yes"
	textBoldAll="yes"
	textSize="14"
	textColor=""
	textAreaWidth=""
	textLineSpacing="6"	
	textLetterSpacing="-0.5"	
	textMarginLeft="12"
	textMarginBottom="5"
	textBackgroundBlur="yes"
	textBackgroundColor="000000"
	textBackgroundTransparency="45"	
		
	transitionType="5"
	transitionVertical="no"
	transitionDirection="0"
	
	transitionRandomEffects="no"
	transitionDelayTimeFixed="2" 
	transitionDelayTimePerWord=".5"
	transitionSpeed="8"
	transitionBlur="yes"		
	
	showTimerClock="yes"
	showNextButton="yes"
	showBackButton="yes"
	showNumberButtons="no"
	showNumberButtonsAlways=""
	showNumberButtonsHorizontal="no"
	showNumberButtonsAscending="no"
	showPlayPauseOnTimer="yes"
	
	alignButtonsLeft="no"
	alignTextTop="no"
	
	autoPlay="yes"	
	imageResizeToFit="yes"
	imageRandomizeOrder="yes"
>
	<?php foreach ($banners as $banner):?>
        <item image="http://<?=DOMINIO?>/templates/<?=TEMPLATE?>/banner/<?=$banner['imagen']?>" link="" target="_self" delay="<?=$banner['delay']?>" textBlend="no"></item>
    <?php endforeach;?>
</Banner>