First refactoring to PHP 8.1
This commit is contained in:
16
links.php
16
links.php
@@ -1,12 +1,7 @@
|
||||
<?php
|
||||
// Die Datei links.php
|
||||
|
||||
if (isset($_GET['section'])) {
|
||||
$section = $_GET['section'];
|
||||
}
|
||||
else {
|
||||
$section = "home";
|
||||
}
|
||||
$section = $_GET['section'] ?? "home";
|
||||
|
||||
echo "<ul>\n";
|
||||
|
||||
@@ -38,7 +33,7 @@
|
||||
}
|
||||
echo "level2\"><a href=\"index.php?section=putz\">Putz</a></li>\n";
|
||||
|
||||
// Element Dämmung
|
||||
// Element D<EFBFBD>mmung
|
||||
echo " <li class=\"";
|
||||
if ($section == 'daemm') {
|
||||
echo "aktiv";
|
||||
@@ -66,7 +61,7 @@
|
||||
}
|
||||
echo "><a href=\"index.php?section=info\">Info & Partner</a></li>\n";
|
||||
|
||||
// Element Sachverständigenwesen
|
||||
// Element Sachverst<EFBFBD>ndigenwesen
|
||||
echo " <li";
|
||||
if ($section == 'sach') {
|
||||
echo " class=\"aktiv\"";
|
||||
@@ -95,7 +90,4 @@
|
||||
echo "level2\"><a href=\"index.php?section=ausbau\">Ausbau</a></li>\n";
|
||||
|
||||
|
||||
echo "</ul>\n"
|
||||
|
||||
?>
|
||||
|
||||
echo "</ul>\n";
|
||||
|
||||
Reference in New Issue
Block a user