36,7 → 36,12 |
foreach ($json as $x) { |
if ($static_node_id == $x['id']) echo '<b>'; |
if (isset($x['indent'])) echo str_repeat(' ', $x['indent']*5); |
$cur_lang = OIDplus::getCurrentLang(); |
if ($cur_lang != OIDplus::DEFAULT_LANGUAGE) { |
echo '<a href="?lang='.$cur_lang.'&goto='.urlencode($x['id']).'">'; |
} else { |
echo '<a href="?goto='.urlencode($x['id']).'">'; |
} |
if (!empty($x['icon'])) echo '<img src="'.$x['icon'].'" alt=""> '; |
echo htmlentities($x['text']).'</a><br>'; |
if ($static_node_id == $x['id']) echo '</b>'; |