Commit d07fd817 authored by Katrin Otto's avatar Katrin Otto

Anpassung für Startseite TUC

parent d7d67968
......@@ -147,7 +147,7 @@ function main_navigation($current_lang)
# get the naviagtion in current language
$navigation = $array_navigation[$current_lang];
$file_ending = $current_lang === 'de' ? '' : 'index.html.' . $current_lang;
$file_ending = $current_lang === 'de' ? '' : '.' . $current_lang;
# array for output
$html = array();
......@@ -169,7 +169,7 @@ function main_navigation($current_lang)
$html[] = '<span class="icon-bar"></span>'. PHP_EOL;
$html[] = '</button>'. PHP_EOL;
$html[] = '<a class="navbar-brand" href="' . $base_URL . '/' . $file_ending . '">' . $navigation['titel'] . '</a>'. PHP_EOL;
$html[] = '<a class="navbar-brand" href="' . $base_URL . $startpage . $file_ending . '">' . $navigation['titel'] . '</a>'. PHP_EOL;
$html[] = '</div>'. PHP_EOL;
$html[] = '<div class="collapse navbar-collapse" id="main_navigation">'. PHP_EOL;
$html[] = '<ul class="nav navbar-nav">'. PHP_EOL;
......@@ -180,8 +180,7 @@ function main_navigation($current_lang)
# check in which part we are and set active for styling the active part
$active = preg_match( '/' . $folder . '/' , $_SERVER[REQUEST_URI]) ? 'class="active"' : '';
# navigation items
$file_ending = $current_lang === 'de' ? '' : 'index.html.' . $current_lang;
$html[] = '<li ' . $active . ' ><a href="' . $base_URL . '/content/' . $folder . '/'. $file_ending . '">' . $left . '</a></li>'. PHP_EOL;
$html[] = '<li ' . $active . ' ><a href="' . $base_URL . '/content/' . $folder . '/index.html'. $file_ending . '">' . $left . '</a></li>'. PHP_EOL;
}
$html[] = '</ul>'. PHP_EOL;
......@@ -495,7 +494,7 @@ function get_popover($id, $text)
# Glossary + alphabetic navigation
function get_glossary()
{
global $glossary, $current_lang;
global $glossary, $current_lang, $see, $seeAlso;
# set local to order glossary array correct
if ($current_lang === 'cs')
......@@ -548,7 +547,7 @@ function get_glossary()
# check if more than one term is given
if($term['link'])
{
$html[] = ', s.a. ';
$html[] = ', ' . $seeAlso;
# write terms into an array
$text = array();
foreach(explode(' , ', $term['link']) as $v)
......@@ -560,7 +559,7 @@ function get_glossary()
}
elseif($term['main'])
{
$html[] = ', s. ';
$html[] = ', ' . $see;
$text = array();
foreach(explode(' , ', $term['main']) as $v)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment