Navbar::render

@return string
354898
public function render()
    {
        if ($this->nav->childNodes->count() || $this->textContent->count()) {
            return parent::render();
        }

        return '';
    }
224163
public function render() {
		$output = null;
		if ( $this->child_count() > 0 ) {
			$output .= '<div id="panel-' . esc_attr( $this->id() ) . '" class="uix-' . esc_attr( $this->type ) . '-inside ' . esc_attr( $this->wrapper_class_names() ) . '">';
			$output .= $this->label() . $this->description() . $this->navigation() . $this->panel_section();
			$output .= '</div>';
		} else {
			$output .= $this->panel_section();
		}
		$output .= $this->render_template();

		return $output;
	}
1258026
public function render()
    {
        $columns = $this->getColumns();

        $results = '';

        foreach ($columns as $column) {
            $results .= $this->getStub($column->getType()->getName(), $column->getName());
        }

        return $results;
    }
529484
public function render() {
		$result = \HTML::wizard([
			'type' => $this->options['wizard']['type'] ?? null,
			'step' => $this->options['input']['__wizard_step'] ?? null,
			'options' => $this->options['wizard']['options'] ?? []
		]);
		if (!empty($result)) {
			$result.= \HTML::hr();
		}
		return $result;
	}
1347515
protected function render(): string
    {
        switch ($this->mode) {
            case 'button':
                $html = '<button class="btn' . $this->classes() . '" type="submit"' .
                    (($this->disabled === true) ? ' disabled' : null) .
                    '>' . $this->label . '</button>';
                break;

            case 'input':
                $html = '<input class="btn' . $this->classes() . '" type="' .
                    $this->input_type . '" value="' .
                    $this->label . '" ' .
                    (($this->disabled === true) ? ' disabled ' : null) . '/>';
                break;

            default:
                $html = '<a href="' . (($this->uri !== null) ? $this->uri : '#') .
                    '" class="btn' . $this->classes() .
                    (($this->disabled === true) ? ' disabled' : null) .
                    '" role="button">' . $this->label . '</a>';
                break;
        }

        return $html;
    }
237313
protected function _render($nav) {
		extract($nav);
		$items = Navigation::order(Navigation::items($path));

		if (empty($items)) {
			return false;
		}

		$defaults = array($this->_tag => array(), $this->_tags[$this->_tag] => array(), 'a' => array());
		$list = array();

		foreach ($items as $key => $options) {
			$title = Inflector::humanize($key);
			extract($options);
			$htmlAttributes = Hash::merge($defaults, $htmlAttributes);

			Reveal::addRule('Page.current', array('self', '__isPageCurrent'), Router::normalize($url));
			if (Reveal::is('Page.current')) {
				$class = 'active';
				if (!empty($htmlAttributes[$this->_tags[$this->_tag]]['class'])) {
					$class = $htmlAttributes[$this->_tags[$this->_tag]]['class'] . ' ' . $class;
				}
				$htmlAttributes = Hash::merge($htmlAttributes, array($this->_tags[$this->_tag] => compact('class')));
			}

			if (method_exists($this->Html, 'icon') && !empty($icon) && count(explode(' ', $icon)) == 1) {
				$icon = $this->Html->icon($icon);
			}

			$title = $icon . $title;

			// Link-ify item's title when it does not match the current page.
			if (!empty($url)) {
				// Allow for link tag customization using `HtmlHelper::loadConfig()`.
				$configPath = dirname(__FILE__) . DS . 'Navigation' . DS;
				$reset = false;

				if (!empty($htmlAttributes['a']['tag'])) {
					$this->Html->loadConfig($htmlAttributes['a']['tag'], $configPath);
					$reset = true;
					unset($htmlAttributes['a']['tag']);
				}

				if (isset($url['prefix']) && false === $url['prefix'] && !empty($this->_View->request->prefix)) {
					$url[$this->_View->request->prefix] = false;
				}

				if (is_array($url) && !isset($url['plugin'])) {
					$url['plugin'] = null;
				}

				$title = $this->Html->link($title, $url, $htmlAttributes['a'], $confirmMessage);
				$reset && $this->Html->loadConfig('reset', $configPath);
			}

			if (!empty($children)) {
				// if (!)$title = $this->Html->tag('span', $title, array('class' => 'title'));
				$title .= $this->_render(array('path' => "$path.$key.children", 'attrs' => $htmlAttributes[$this->_tag]));
			}
			$list[] = $this->Html->tag($this->_tags[$this->_tag], $title, $htmlAttributes[$this->_tags[$this->_tag]]);
		}

		return $this->Html->tag($this->_tag, implode('', $list), $attrs);
	}
1353306
public function render() {
        $string = '';
        foreach (static::$_scripts as $script) {
            $method = '_render' . ucfirst($script['type']);
            $string .= $this->{$method}($script['value'], $script['attrs']);
        }
        return $string;
    }
1120047
protected function render() : string
    {
        $styles = $this->styles();
        if (strlen($styles) > 0) {
            $styles = 'style="' . trim($styles) . '"';
        }

        return '<div class="progress"><div class="progress-bar' . $this->classes() .
            '" role="progressbar" ' . $styles . ' aria-valuenow="' . $this->value .
            '" aria-valuemin="0" aria-valuemax="100">' .
            (($this->label !== null) ? $this->label : null) . '</div></div>';
    }
529003
public function render()
    {
        return Html::div( [
            $this->getPreviousPageButton(),
            $this->getPagesSelect(),
            $this->getNextPageButton(),
        ] )->addClass( 'pagination' );
    }
603723
public function render()
    {
        $htmlContent = '';
        foreach (self::$cssList->toArray() as $css) {
            if ($css[0] == 'css') {
                $htmlContent .= '<style type="text/css">' . $css[1] . '</script>' . PHP_EOL;
            } else {
                if (Configuration::read('html.css.test_file_existance') === true) {
                    $cssPath = APP_ROOT . '/public' . $css[1];
                    if (!file_exists($cssPath)) {
                        trigger_error('Css file "' . $cssPath . '" doesn\'t exist.', E_USER_WARNING);
                    }
                }
                $htmlContent .= '<link href="' . $css[1] . '" rel="stylesheet" type="text/css">' . PHP_EOL;
            }
        }
        return $htmlContent;
    }
181703
public function render() {

		$this->set_footers();

		add_action( 'admin_footer', array( $this, 'output_templates' ) );
		add_action( 'wp_footer', array( $this, 'output_templates' ) );

		$output = '<button ' . $this->build_attributes() . '>' . $this->struct['label'] . '</button>';

		$this->templates .= $this->render_modal_template();

		return $output;
	}
1060868
protected function render()
    {
        if (!isset($this->items[0])) {
            return '';
        }
        foreach ($this->items as $itemId => $item) {
            $item->setCollapsable(
                self::$id, 
                self::$id . $itemId, 
                in_array($itemId, $this->openedItems));
        }
        $this->setAttribute('id', self::$id);
        $this->addCssClass($this->itemType . '-group');
        return $this
            ->html('<div' . $this->getEltDecorationStr() . '>')
            ->html(implode("\n", $this->items))
            ->html('</div>')
            ->getHtml();
    }
892808
public static function render() {
		$loaded_classes = \Application::get(['application', 'loaded_classes']);
		self::$data['session'] = [];
		if (!empty($_SESSION)) {
			self::$data['session'] = [$_SESSION];
		}
		$application = \Application::get();
		$result = '<div class="container" dir="ltr">';
			$result.= '<table cellpadding="2" cellspacing="2" width="100%">';
				$result.= '<tr>';
					$result.= '<td>';
						$result.= '<table width="100%" class="numbers_debug_links">';
							$result.= '<tr>';
								$result.= '<td nowrap>&nbsp;' . \HTML::a(['value' => 'Hide All', 'href' => 'javascript:void(0);', 'onclick' => "$('.debuging_toolbar_class').hide();"]) . '&nbsp;</td>';
								foreach (self::$data as $k => $v) {
									if ($k == 'errors') {
										$count = count(\Object\Error\Base::$errors);
									} else if ($k == 'classes') {
										$count = count($loaded_classes);
									} else if ($k == 'application') {
										$count = count($application);
									} else if ($k == 'phpinfo') {
										$count = 1;
									} else {
										$count = count($v);
									}
									$result.= '<td nowrap>&nbsp;' . \HTML::a(['value' => ucwords($k) . ' (' . $count . ')', 'id' => "debuging_toolbar_{$k}_a", 'href' => 'javascript:void(0);', 'onclick' => "$('#debuging_toolbar_{$k}').toggle();"]) . '&nbsp;</td>';
								}
								$result.= '<td width="50%" align="right">' . \HTML::a(['href' => '/Numbers/Backend/System/Modules/Controller/DevPortal', 'value' => 'Dev. Portal']) . '</td>';
							$result.= '</tr>';
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';
				
				// errors
				$result.= '<tr id="debuging_toolbar_errors" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Errors (' . count(\Object\Error\Base::$errors) . ')</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							foreach (\Object\Error\Base::$errors as $k => $v) {
								$result.= '<tr>';
									$result.= '<td><b>' . \Object\Error\Base::$error_codes[$v['errno']] . ' (' . $v['errno'] . ') - ' . implode('<br/>', $v['error']) . '</b></td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td>File: ' . $v['file'] . ', Line: ' . $v['line'] . '</td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td><pre>' . $v['code'] . '</pre></td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td><pre>' . implode("\n", $v['backtrace']) . '</pre></td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// suppressed
				$result.= '<tr id="debuging_toolbar_suppressed" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Suppressed (' . count(self::$data['suppressed']) . ')</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							foreach (self::$data['suppressed'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td><b>' . \Object\Error\Base::$error_codes[$v['errno']] . ' (' . $v['errno'] . ') - ' . implode('<br/>', $v['error']) . '</b></td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td>File: ' . $v['file'] . ', Line: ' . $v['line'] . '</td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td><pre>' . $v['code'] . '</pre></td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// javascript
				$result.= '<tr id="debuging_toolbar_js" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Javascript Errors (' . count(self::$data['js']) . ')</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							foreach (self::$data['js'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td><b>' . implode('<br/>', $v['error']) . '</b></td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td>File: ' . $v['file'] . ', Line: ' . $v['line'] . '</td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
						$result.= '<div id="debuging_toolbar_js_data">';
							$result.= '&nbsp;';
						$result.= '</div>';
					$result.= '</td>';
				$result.= '</tr>';

				// benchmark
				$result.= '<tr id="debuging_toolbar_benchmark" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Benchmark (' . count(self::$data['benchmark']) . ')' . '</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							$result.= '<tr>';
								$result.= '<th>Name</th>';
								$result.= '<th>Time</th>';
								$result.= '<th>Start</th>';
								$result.= '<th>Total</th>';
								$result.= '<th>Memory</th>';
							$result.= '</tr>';
							foreach (self::$data['benchmark'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td>' . $v['name'] . '</td>';
									$result.= '<td align="right">' . $v['time'] . '</td>';
									$result.= '<td align="right">' . $v['start'] . '</td>';
									$result.= '<td align="right">' . $v['total'] . '</td>';
									$result.= '<td align="right">' . Format::memory($v['memory'], 'm') . '</td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// sql
				$result.= '<tr id="debuging_toolbar_sql" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Sql (' . count(self::$data['sql']) . ')' . '</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							foreach (self::$data['sql'] as $k => $v) {
								$temp = is_array($v['key']) ? implode('<br/>', $v['key']) : $v['key'];
								// header first
								$result.= '<tr>';
									$result.= '<th colspan="4" style="color: red;">Sql</th>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td valign="top" colspan="4"><pre style="width: 1130px;">' . $v['sql'] . '</pre></td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<th>Error</th>';
									$result.= '<th>Errno</th>';
									$result.= '<th>Num Rows</th>';
									$result.= '<th>Affected Rows</th>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td valign="top">' . implode('<br/>', $v['error']) . ' - ' . implode('<br/>', $v['error_original'] ?? []) . '</td>';
									$result.= '<td valign="top">' . $v['errno'] . '</td>';
									$result.= '<td valign="top">' . $v['num_rows'] . '</td>';
									$result.= '<td valign="top">' . $v['affected_rows'] . '</td>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<th>Key</th>';
									$result.= '<th>Structure</th>';
									$result.= '<th>Cache</th>';
									$result.= '<th>Time</th>';
								$result.= '</tr>';
								$result.= '<tr>';
									$result.= '<td valign="top">' . $temp . '</td>';
									$result.= '<td valign="top">' . \HTML::table(['options' => $v['structure']]) . '</td>';
									$result.= '<td valign="top">' . (!empty($v['cache']) ? 'Yes' : 'No Cache') . '</td>';
									$result.= '<td valign="top">' . $v['time'] . '</td>';
								$result.= '</tr>';
								// cache tags
								if (!empty($v['cache_tags'])) {
									$result.= '<tr>';
										$result.= '<th>Cache Tags</th>';
										$result.= '<td valign="top" colspan="7" style="max-width: 1000px; overflow: scroll;">' . nl2br(implode("\n", $v['cache_tags']), true) . '</td>';
									$result.= '</tr>';
								}
								// results second
								if (!empty($v['rows'])) {
									$temp2 = current($v['rows']);
									if (!is_array($temp2)) {
										$result.= '<tr>';
												$result.= '<td valign="top" colspan="8" style="max-width: 1000px; overflow: scroll;">' . print_r2($v['rows'], '', true) . '</td>';
											$result.= '</tr>';
									} else {
										$temp = array_keys($temp2);
										$header = array_combine($temp, $temp);
										if (!empty($header)) {
											$result.= '<tr>';
												$result.= '<td valign="top" colspan="8" style="max-width: 1000px; overflow: scroll;">' . \HTML::table(['header' => $header, 'options' => $v['rows']]) . '</td>';
											$result.= '</tr>';
										}
									}
								}
								// backtrace
								if (!empty($v['backtrace'])) {
									$result.= '<tr>';
										$result.= '<td valign="top" colspan="4"><pre style="width: 1130px;">' . strip_tags($v['backtrace']) . '</pre></td>';
									$result.= '</tr>';
								}
								// empty separator
								$result.= '<tr>';
									$result.= '<td valign="top" colspan="4">&nbsp;</td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// cache
				$result.= '<tr id="debuging_toolbar_cache" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Cache (' . count(self::$data['cache']) . ')' . '</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							$result.= '<tr>';
								$result.= '<th>Type</th>';
								$result.= '<th>Link</th>';
								$result.= '<th>Cache #</th>';
								$result.= '<th>Has Data</th>';
							$result.= '</tr>';
							foreach (self::$data['cache'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td valign="top">' . $v['type'] . '</td>';
									$result.= '<td valign="top">' . $v['link'] . '</td>';
									$result.= '<td valign="top">' . $v['cache_id'] . '</td>';
									$result.= '<td valign="top">' . ($v['have_data'] ? 'Yes' : 'No') . '</td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// dump
				$result.= '<tr id="debuging_toolbar_dump" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Dump (' . count(self::$data['dump']) . ')' . '</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							$result.= '<tr>';
								$result.= '<th>Name</th>';
								$result.= '<th>Dump</th>';
							$result.= '</tr>';
							foreach (self::$data['dump'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td valign="top">' . $v['name'] . '</td>';
									$result.= '<td valign="top"><pre>' . print_r($v['value'], true) . '</pre></td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// input
				$result.= '<tr id="debuging_toolbar_input" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Input (' . count(self::$data['input']) . ')' . '</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							$result.= '<tr>';
								$result.= '<th>Input</th>';
							$result.= '</tr>';
							foreach (self::$data['input'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td valign="top"><pre>' . print_r($v, true) . '</pre></td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// session
				$result.= '<tr id="debuging_toolbar_session" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Session (' . count(self::$data['session']) . ')' . '</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							$result.= '<tr>';
								$result.= '<th>Session</th>';
							$result.= '</tr>';
							foreach (self::$data['session'] as $k => $v) {
								$result.= '<tr>';
									$result.= '<td valign="top"><pre>' . print_r($v, true) . '</pre></td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// autoloaded classes
				$result.= '<tr id="debuging_toolbar_classes" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Loaded Classes (' . count($loaded_classes) . ')</h3>';
						$result.= '<table border="1" cellpadding="2" cellspacing="2" width="100%">';
							$result.= '<tr>';
								$result.= '<th>Class Name</th>';
								$result.= '<th>File</th>';
								$result.= '<th>Media</th>';
							$result.= '</tr>';
							foreach ($loaded_classes as $k => $v) {
								$result.= '<tr>';
									$result.= '<td><b>' . $v['class'] . '</b></td>';
									$result.= '<td>' . $v['file'] . '</td>';
									$result.= '<td>' . \HTML::table(['options' => $v['media']]) . '</td>';
								$result.= '</tr>';
							}
						$result.= '</table>';
					$result.= '</td>';
				$result.= '</tr>';

				// application
				$result.= '<tr id="debuging_toolbar_application" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Application (' . count($application) . ')</h3>';
						$result.= print_r2($application, 'Application Variables:', true);
					$result.= '</td>';
				$result.= '</tr>';

				// phpinfo
				$result.= '<tr id="debuging_toolbar_phpinfo" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>PHPInfo</h3>';
						\Helper\Ob::start();
						phpinfo();
						$str = \Helper\Ob::clean();
						$str = preg_replace( '%^.*<body>(.*)</body>.*$%ms', '$1', $str);
						$str.= <<<TTT
							<style type="text/css">
								#phpinfo table {
									border: 1px solid #000;
								}
								#phpinfo table tr {
									border-bottom: 1px solid #000;
								}
							</style>
TTT;
						$result.= '<div id="phpinfo">' . $str . '</div>';
					$result.= '</td>';
				$result.= '</tr>';

				// acls
				$result.= '<tr id="debuging_toolbar_acls" class="debuging_toolbar_class" style="display: none;">';
					$result.= '<td>';
						$result.= '<h3>Acls (' . count(\Debug::$data['acls']) . ')</h3>';
						$result.= print_r2(\Debug::$data['acls'], 'Acls', true);
					$result.= '</td>';
				$result.= '</tr>';

			$result.= '</table>';
		$result.= '</div>';
		return $result;
	}
302640
public function render() {
        $args = func_get_args();
        if (isset($args[0]) && is_string($args[0])) {
            $tpl = array_shift($args);
        } else {
            $tpl = get_class($this);
            $paths = explode('\\', $tpl);
            array_shift($paths);
            $className = array_pop($paths);
            $actionSuffix = 'Action';
            if (substr($className, strrpos($className, $actionSuffix)) === $actionSuffix) {
                $basename = substr($className, 0, -strlen($actionSuffix));
            } else {
                $basename = $className;
            }
            array_push($paths, $basename);
            foreach ($paths as &$path) {
                $path = Toolkit::to_snake_case($path);
            }
            unset($path);
            $tpl = implode(DIRECTORY_SEPARATOR, $paths);
        }
        if (isset($args[0]) && is_array($args[0])) {
            $params = array_shift($args);
        } else {
            $params = [];
        }
        if (isset($args[0]) && is_string($args[0])) {
            $cacheId = array_shift($args);
        } else {
            $cacheId = '';
        }

        return $this->view->render($tpl, $params, $cacheId);
    }
810083
public function render() {

		// check authentication

		if(!$this->authenticateMenu($this->menu)) {
			return '';
		}

		$request = Request::createFromGlobals();
		
		// if menu has not been prepared yet, do it now (caching avoids re-parsing for submenus)

		if(!in_array($this->menu, self::$primedMenus, true)) {

			// clear selected menu entries (which remain in the session)

			$this->clearSelectedMenuEntries($this->menu);

			// walk entire menu and add dynamic entries where necessary
			
			$this->completeMenu($this->menu);
			
			// prepare path segments to identify active menu entries

			$this->pathSegments = explode('/', trim($request->getPathInfo(), '/'));

			// skip script name

			if($this->rewriteActive && basename($request->getScriptName()) != 'index.php') {
				array_shift($this->pathSegments);
			}

			// skip locale if one found

			if(count($this->pathSegments) && Application::getInstance()->hasLocale($this->pathSegments[0])) {
				array_shift($this->pathSegments);
			}

			// walk tree until an active entry is reached

			$this->walkMenuTree($this->menu, (!count($this->pathSegments) || $this->pathSegments[0] === '') ? explode('/', $this->route->getPath()) : $this->pathSegments);

			// cache menu for multiple renderings

			self::$primedMenus[] = $this->menu;
		}

		$htmlId = $this->id . 'menu';

		// drill down to required submenu (if only submenu needs to be rendered)

		$m = $this->menu;

		if($this->level !== false) {

			$htmlId .= '_level_' . $this->level;

			if($this->level > 0) {

				while($this->level-- > 0) {
					$e = $this->menu->getSelectedEntry();
					if(!$e || !$e->getSubMenu()) {
						break;
					}
					$m = $e->getSubMenu();
				}

				if($this->level >= 0) {
					return '';
				}

			}
		}

		// output

		// instantiate renderer class, defaults to SimpleListRenderer

		if(!empty($this->decorator)) {
			$rendererName = $this->decorator;
		}
		else {
			$rendererName = 'SimpleList';
		}

		$className = __NAMESPACE__ . '\\Menu\\Renderer\\' . $rendererName . 'Renderer';

		$renderer = new $className($m);
		$renderer->setParameters($this->renderArgs);

		// enable or disable display of submenus

		$m->setShowSubmenus($this->level === false);

		// enable or disable always active menu

		$m->setForceActive(self::$forceActiveMenu);

		// if no container tag was specified, use a DIV element

		if(!isset($this->renderArgs['containerTag'])) {
			$this->renderArgs['containerTag'] = 'div';
		}

		// omit wrapper, if a falsy container tag was specified

		if($this->renderArgs['containerTag']) {
			return sprintf(
				'<%1$s%2$s>%3$s</%1$s>',
				$this->renderArgs['containerTag'],
				(isset($this->renderArgs['omitId']) && $this->renderArgs['omitId']) ? '' : (' id="' . $htmlId . '"'),
				$renderer->render()
			);
		}

		return $renderer->render();

	}
999769
public function renderAction()
    {
        $params     = $this->params();
        $navigation = $this->getServiceLocator()
                           ->get( 'Grid\Menu\Model\Menu\Model' )
                           ->findNavigation( $params->fromRoute( 'id' ) );

        $view = new ViewModel( array(
            'navigation' => $navigation,
            'class'      => $params->fromRoute( 'class' ),
        ) );

        return $view->setTerminal( true );
    }
1145388
public function render()
    {
        if ($this->icon instanceof Icon && $this->hasTextContent()) {
            $this->attributes->addAttributeClass('btn-icon');
        }

        $output[] = $this->open();

        if ($this->hasTextContent()) {
            $output[] = implode('', $this->textContent->getArrayCopy());
        }

        if ($this->hasChildNodes()) {
            $output[] = implode(PHP_EOL, $this->childNodes->getArrayCopy());
        }

        if ($this->icon instanceof Icon) {
            $output[] = $this->icon;
        }

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }