/** * Render * * @return void * @access public */ function render_html() { $url = $this->getAttribute('url'); $cssClass = $this->getAttribute('cssClass'); $wrapStart = ''; $wrapEnd = ''; if (!is_null($this->getAttribute('wrapTag'))) { if (!is_null($cssClass)) { $wrapperCssClass = ' class="' . $cssClass . '"'; } else { $wrapperCssClass = ''; } $wrapStart = '<' . $this->getAttribute('wrapTag') . $wrapperCssClass . '>'; $wrapEnd = '</' . $this->getAttribute('wrapTag') . '>'; } if (is_null($url)) { $output = org_glizy_helpers_Link::makeLink2($this->getAttribute('routeUrl'), $this->_content, array('class' => $cssClass, 'id' => $this->getId())); } else { $output = org_glizy_helpers_Link::makeSimpleLink($this->_content['label'], $url, '', $cssClass, '', array('target' => $this->getAttribute('target'), 'icon' => $this->getAttribute('icon'), 'id' => $this->getId())); } $this->addOutputCode($wrapStart . $output . $wrapEnd); }