protected function setTabNav()
 {
     $item = '';
     foreach ($this->layout['tab_itens'] as $key => $value) {
         $item .= parent::replaceWraper(3, array($key == 0 ? 'active ' . $this->layout['nav_item_class'] : $this->layout['nav_item_class'], '#' . $value, strtoupper($value)), $this->layout['nav_item_wrap']);
     }
     return parent::replaceWraper(2, array($this->layout['nav_wrap_class'], $item), $this->layout['nav_wrap']);
 }
 protected function setAddCart()
 {
     $estoque = isset($this->layout['produto']->estoque) ? $this->layout['produto']->estoque : $this->layout['produto']->detalhes[0]['estoque'];
     if ($estoque > 0) {
         return parent::replaceWraper(3, array('addCart ' . $this->layout['add_cart_class'], $this->url_base . 'cart/insert', $this->layout['add_cart_text']), $this->layout['add_cart_wrap']);
     }
 }
 protected function setAddCart()
 {
     return parent::replaceWraper(3, array('addCart ' . $this->layout['add_cart_class'], $this->url_base . 'cart/insert', $this->layout['add_cart_text']), $this->layout['add_cart_wrap']);
 }
 protected function setNavigation($imagens)
 {
     $html = "<{$this->layout['navigation_container']}  class='{$this->layout['navigation_class']}'>";
     $item = '';
     foreach ($imagens as $key => $value) {
         $int = $key + 1;
         $item .= parent::replaceWraper(3, array($this->layout['navigation_item_id'], $this->layout['navigation_item_class'], $this->setImagem($value, 'navigation', '', '', $key)), $this->layout['navigation_item']);
     }
     $html .= parent::replaceWraper(2, array($this->layout['navigation_wrap_class'], $item), $this->layout['navigation_wrap']);
     $html .= "</{$this->layout['navigation_container']}>";
     return $html;
 }