<?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 class="t-fun_facts_block"> 
        <div class="row">
            <?php foreach ($items as $key => $item) : ?>
            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 t-fact_single wow fadeIn" data-wow-duration="<?php echo( ( $key + 1 ) * 0.5 ) ;?>s">
                <div>
                    <?php if(count($item->extra_fields)): ?>
                      <?php foreach ($item->extra_fields as $extraField): ?>
                            <?php if($extraField->value != '' and $extraField->type = 'link' ): ?>
                                <i class="glyph-item mega" aria-hidden="true" data-icon="<?php echo $extraField->text; ?>" data-js-prompt="<?php echo $extraField->text; ?>"></i>
                            <?php endif; ?>
                        <?php endforeach; ?>
                    <?php endif; ?>
                    <?php if($params->get('itemIntroText')): ?>
                    <span class="t-fact_count t-counter"><?php echo $item->introtext; ?></span>
                    <?php endif; ?>
                    <?php if($params->get('itemTitle')): ?>
                    <span class="t-fact_title"><?php echo $item->title; ?></span>
                    <?php endif; ?> 
                </div>
            </div>
            <?php endforeach; ?>
        </div>
      </div>  
  <?php endif; ?>
