﻿<?php header('Content-type: text/xml'); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */

  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home/afft/domains/afft.com.au/public_html/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records
  list($home_page_imagesRecords, $home_page_imagesMetaData) = getRecords(array(
    'tableName'   => 'home_page_images',
  ));

?>
<data>
  <debug>0</debug><licence><![CDATA[!-nSIU2gySpG}Sce&mCUp#pou%*'VEqU]]></licence>
  <settings>
    <folder_images>images</folder_images>
    <folder_fonts>fonts</folder_fonts>
    <background>
      <color transparent="true">0xffffff</color>
    </background>
    <start_slide>1</start_slide>
    <auto_play>true</auto_play>
    <branding align_to="stage" align_pos="TR" x="-10" y="10">
      <remove_logo_loader>true</remove_logo_loader>
      <remove_right_menu_info>true</remove_right_menu_info>
      <remove_right_menu_licence>false</remove_right_menu_licence>
    </branding>
    <camera x="0" y="0" z="0" angleX="0" angleY="0" angleZ="0"/>
  </settings>
  <fonts/>
  <preloader type="linear" align_to="stage" align_pos="MC" width="200" height="20" x="0" y="0">
    <background padding="5">
      <tweenShow tint="0x2185C5" alpha="0.85"/>
      <tweenOver alpha="1"/>
      <tweenHide alpha="0"/>
    </background>
    <loader>
      <tweenShow tint="0xFFFFFF" alpha="0.8"/>
      <tweenOver tint="0xFFFFFF" alpha="1"/>
      <tweenHide tint="0xFFFFFF" alpha="0"/>
    </loader>
  </preloader>
  <controls/>
  <defaults>
    <slide time="5" color="0x000000">
      <image align_pos="MC" x="0" y="0" scaleX="1" scaleY="1"/>
      <link target="_blank"/>
      <description>
        <link target="_blank"/>
      </description>
    </slide>
    <transition type="3D" columns="6" rows="6" type2D="slide" flipAngle="180" flipOrder="45" flipShader="none" flipOrderFromCenter="false" flipDirection="left" flipColor="0x878787" flipBoxDepth="10" flipDepth="50" flipEasing="Sine.easeOut" flipDuration=".6" flipDelay=".15" flipDelayRandomize=".5"/>
  </defaults>
  <slides width="723" height="273" align_pos="MC" x="0" y="0">
    <?php foreach ($home_page_imagesRecords as $record): ?>
       <?php $upload = @$record['images'][0]; ?>
       <?php if (!$upload) { continue; } ?>
    <slide>
      <url><?php echo $upload['urlPath'] ?></url>
      <link target="_self"/>
      <description/>
      <image x="0" y="0" scaleX="1" scaleY="1" align_pos="MC"/>
    </slide>
    <transition />
      <?php endforeach ?>
  </slides>
</data>