// FECHA OS ITENS echo $this->params->get('enable_slide') ? '</ul>' : '</div>'; } // INTRODUÇÕES DOS ARQUIVOS -> itens $introcount = count($this->intro_items); $counter = 0; if (!empty($this->intro_items)) { foreach ($this->intro_items as $key => &$item) { // vars $rowcount = (int) $key % (int) $this->columns + 1; $row = $counter / $this->columns; $itemState = $item->state == 0 ? ' system-unpublished' : ''; $this->item =& $item; // CLASSE INDICANDO A CATEGORIA // retira os acentos e espaços do nome da categoria $classCateg = str_replace(' ', '', baseHelper::removeAcentos(strtolower($this->item->category_title))); // inicia uma nova linha se for a primeira coluna if ($rowcount == 1) { $row = $counter / $this->columns; echo '<div class="items-row cols-' . (int) $this->columns . ' row-' . $row . ' row">'; } // MOSTRA O ITEM $grid = round(12 / $this->columns); echo ' <div class="col-sm-' . $grid . '"> <div class="item ' . $layout . ' ' . $classCateg . ' column-' . $rowcount . $itemState . ' clearfix" style="' . $itemHeight . '"> ' . $this->loadTemplate('intro') . ' </div><!-- end item --> </div><!-- end col --> '; $counter++;