Пример #1
0
 /**
  * Render html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setText('');
     $layout = $this->getLayout();
     foreach ($this->getChildNames() as $child) {
         $this->addText($layout->renderElement($child, false));
     }
     return parent::_toHtml();
 }
Пример #2
0
 /**
  * Render html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setText('');
     $layout = $this->getLayout();
     foreach ($this->getChildNames() as $child) {
         /** @var Generic $childBlock */
         $childBlock = $layout->getBlock($child);
         if ($childBlock instanceof Generic) {
             $childBlock->setItem($this->getItem());
             $this->addText($layout->renderElement($child, false));
         }
     }
     return parent::_toHtml();
 }
Пример #3
0
 /**
  * Render html output
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setText('<li');
     $params = $this->getLiParams();
     if (!empty($params) && is_array($params)) {
         foreach ($params as $key => $value) {
             $this->addText(' ' . $key . '="' . addslashes($value) . '"');
         }
     } elseif (is_string($params)) {
         $this->addText(' ' . $params);
     }
     $this->addText('>' . $this->getInnerText() . '</li>' . "\r\n");
     return parent::_toHtml();
 }