Erste lauffähige Umgebung

This commit is contained in:
2017-01-09 07:12:57 +00:00
parent b974059208
commit 30efdc809c
25 changed files with 1770 additions and 193 deletions

View File

@@ -129,11 +129,27 @@ class NavigationView
if ($this->isEditable)
{
$this->navigationHtml .= '<li' . $liClass . '><a ' . $aClass . 'href="' . $linkPrefix . '/index.php?siteID=' . $navItem['navID'] . '">' . $navItem['navName'] . $span . '</a>';
$link = $linkPrefix . '/index.php?siteID=' . $navItem['navID'];
$target = '';
if($navItem['navType'] === 'material')
{
$registry = Registry::getInstance();
$link = $registry->editorConfig['mediaPrefix'] . $navItem['navID'] . '/' . $navItem['navLink'];
$target = ' target="_blank"';
}
$this->navigationHtml .= '<li' . $liClass . '><a ' . $aClass . $target . 'href="' . $link . '">' . $navItem['navName'] . $span . '</a>';
}
else
{
$this->navigationHtml .= '<li' . $liClass . '><a ' . $aClass . 'href="' . $linkPrefix . '/' . $navItem['navLink'] . '">' . $navItem['navName'] . $span . '</a>';
$link = $linkPrefix . '/' . $navItem['navLink'];
$target = '';
if($navItem['navType'] === 'material')
{
$registry = Registry::getInstance();
$link = $registry->editorConfig['mediaPrefix'] . $navItem['navID'] . '/' . $navItem['navLink'];
$target = ' target="_blank"';
}
$this->navigationHtml .= '<li' . $liClass . '><a ' . $aClass . $target . 'href="' . $link . '">' . $navItem['navName'] . $span . '</a>';
}
if (isset($this->orderedNavigation[$navItem['navID']]))
{