<?php
/**
 * @version		2.6.x
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.net
 * @copyright	Copyright (c) 2006 - 2014 JoomlaWorks Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

// no direct access
defined('_JEXEC') or die;
?>
<?php if(count($items)): ?>
<section id="t-slider<?php if($params->get('moduleclass_sfx')) echo ' '.$params->get('moduleclass_sfx'); ?>">
    <div class="t-slider_inner">
        <ul class="bxslider" id="t-banner_slider">   
            <?php foreach ($items as $key=>$item): ?>
            <li>
                <?php if($params->get('itemImage') && isset($item->image)): ?>
                  <img src="<?php echo $item->imageXLarge; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($item->title); ?>"/>
                <?php endif; ?>                      
                <div class="t-slider-content">
                <?php if($params->get('itemTitle')): ?>
                    <h2><?php echo $item->title; ?></h2>
                <?php endif; ?>
                <?php if($params->get('itemIntroText')): ?>
                  <h1><?php echo $item->introtext; ?></h1>
                <?php endif; ?>
                </div> 
                <?php if($params->get('itemExtraFields') && count($item->extra_fields)): ?>
                <div class="t-slide-button">
	                <?php foreach ($item->extra_fields as $extraField): ?>
					        <?php if($extraField->value != '' and $extraField->type != 'header'): ?>
                            <span class="moduleItemExtraFieldsValue"><?php echo $extraField->value; ?></span>
					        <?php endif; ?>
	                <?php endforeach; ?>   
                </div>
                <?php endif; ?> 
            </li>
            <?php endforeach; ?>       
        </ul>                        
    </div>
</section>
<?php endif; ?>