<?php // no direct access

defined('_JEXEC') or die('Restricted access'); 
require_once("thumbLib/images.php");

?>

<?php foreach (array_chunk($list, $cols) as $row_id => $items) :  ?>

    <div class="row row<?php echo $row_id;?>">
	
		<?php foreach ($items as $col_id => $item) :  ?>
    
        
            <?php $parametro = new JParameter($item->attribs);$thumb = $parametro->get('thumb');?>
            
            <!--  CONTENIDO ITEM -->
            <div class="item col<?php echo $col_id;?>">
              
              <?php if ($thumb) : ?>
              <img src="<?php echo images::getImage($thumb,296,146,1); ?>" />
              <?php endif; ?>
              
              <?php if ($show_title) : ?>
              <a href="<?php echo modCategoriaHelper::get_link($item->id); ?>" <?php echo modCategoriaHelper::get_target($item->id); ?>> <?php echo $item->title; ?> </a>
              <?php endif; ?>
              
              <?php if ($show_date) : ?>
              <?php echo JHTML::Date($item->created, "%d/%m/%Y"); ?>
              <?php endif; ?>
              
              <?php if ($show_description) : ?>
              <p><?php echo modCategoriaHelper::cortar_texto($item->introtext,$params->get('caracteres')); ?></p>
              <?php endif; ?>
              
            </div>
            <!--  FIN CONTENIDO ITEM -->
        
        <?php endforeach; ?>
    
    </div>
    
<?php endforeach; ?>
