public function setHelper($array) { $produtos = $this->getData($array); $html = ''; $html .= $this->options['produto_container'] ? '<div id="produto_container">' : ''; $html .= "<{$array['container']} id='{$array['container_id']}' class='{$array['container_class']}' " . parent::setContainerAttrs($array['container_attr']) . ">"; foreach ($produtos as $key => $value) { $item = $this->setThumbnail($array, $value); $item .= $this->setInfo($array, $value); $html .= parent::replaceWraper(2, array('produto_item ' . $this->options['item_class'], $item), $this->options['item_wrap']); if (($key + 1) % $array['quantidade_itens'] == 0) { $html .= '<br clear="all"/>'; } } $html .= "</{$array['container']}>"; $html .= $this->options['produto_container'] ? '</div>' : ''; if (!isset($array['relacionados']) && !$this->options['destaque'] && !$this->options['lancamento']) { $html .= $this->getPagination($array['categoria'], $array['pagina']); } return $html; }