<?php header('Content-type: application/xml; charset=utf-8'); ?><?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 = 'cms/lib/viewer_functions.php';
  $dirsToCheck = array('/chroot/home/mundoreg/mundoregio.com/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 from 'accesando_slider'
  list($accesando_sliderRecords, $accesando_sliderMetaData) = getRecords(array(
    'tableName'   => 'accesando_slider',
    'limit'       => '5',
    'orderBy'     => '',   // use default database order
    'loadUploads' => false,
    'allowSearch' => false,
  ));

?>
<slider>

    <?php foreach ($accesando_sliderRecords as $record): ?>

    <slide effectType="scale" horizontalSlices="6" verticalSlices="3" linkTarget="_self" slicePattern="spiralCenterToMarginCW" sliceDelay="80" captionSize="35">
      <path><img src="<?php echo $upload['urlPath'] ?>" /></path>
      <link><?php echo $record['_link'] ?></link>
      <caption><![CDATA[<?php echo $record['contenido'] ?>]]></caption>
    </slide>
    <?php endforeach ?>
	
</slider>