Skip to content
Snippets Groups Projects
Commit 8f8e8ff7 authored by Tim Steiner's avatar Tim Steiner
Browse files

In the WdnTemplate helper, allow a link to be defined as a string in addition...

In the WdnTemplate helper, allow a link to be defined as a string in addition to the existing array definition.
parent c33a6449
Branches
No related tags found
No related merge requests found
......@@ -185,6 +185,7 @@ EOF;
}
$html = '<ul>' . PHP_EOL;
foreach ($links as $link) {
if (is_array($link)) {
$html .= '<li>'
. (isset($link['href']) ? '<a href="' . $this->_processUrl($link['href']) . '">' : '')
. $link['text']
......@@ -193,6 +194,11 @@ EOF;
$html .= PHP_EOL . $this->_processLinks($link['children']);
}
$html .= '</li>' . PHP_EOL;
} else {
$html .= '<li>'
. $link
. '</li>' . PHP_EOL;
}
}
$html .= '</ul>' . PHP_EOL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment