<?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)): ?>   
    <div id="t-the_process_carousel"> 
        <?php foreach ($items as $key => $item) : ?>
            <div class="t-single_process">
                <?php if(count($item->extra_fields)): ?>
                  <?php foreach ($item->extra_fields as $extraField): ?>
                        <?php if($extraField->value != '' and $extraField->type = 'link' ): ?>
                            <div class="t-glyp_icon"> 
                                <a class="glyph-item mega" aria-hidden="true" data-icon="<?php echo $extraField->text; ?>" data-js-prompt="<?php echo $extraField->text; ?>" href="<?php echo $extraField->url; ?>"></a>
                            </div>
                        <?php endif; ?>
                    <?php endforeach; ?>
                <?php endif; ?>
                <?php if($params->get('itemTitle')): ?>
                <h5 class="t-process_title"><?php echo $item->title; ?></h5>
                <?php endif; ?>
                <?php if($params->get('itemIntroText')): ?>
                <p><?php echo $item->introtext; ?></p>
                <?php endif; ?> 
                <?php if($params->get('itemReadMore')): ?>
                <a class="t-btn t-btn_bg" href="<?php echo $item->link; ?>">
                    <?php echo JText::_('K2_READ_MORE'); ?>
                </a>
                <?php endif; ?>
            </div>
        <?php endforeach; ?>
      </div>  
  <?php endif; ?>
