Make impressum and privacy links able to open in a new tab
This commit is contained in:
10
index.php
10
index.php
@@ -19,6 +19,7 @@
|
||||
$modular_setting = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='modularwindow'"))["value"];
|
||||
$privacy = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='privacy'"))["value"];
|
||||
$impressum = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='impressum'"))["value"];
|
||||
$newtab = mysqli_fetch_assoc(mysqli_query($con, "SELECT value FROM settings WHERE type='newtab'"))["value"];
|
||||
|
||||
$groups = mysqli_query($con, "SELECT priority, name, id FROM groups ORDER BY priority DESC");
|
||||
$services = mysqli_query($con, "SELECT priority, groupid, name, id, status FROM services ORDER BY priority DESC");
|
||||
@@ -259,7 +260,14 @@ echo '</div>';
|
||||
<!-- FOOTER -->
|
||||
<footer class="footer">
|
||||
<p class="footer">Powered by <a class="underline" href="http://git.thiemoo.at/Givou/WebStatus.git" target="_blank">WebStatus</a></p>
|
||||
<p class="footer-subtext"><a href="<?php echo $impressum; ?>">Impressum</a> | <a href="<?php echo $privacy; ?>">Privacy policity</a></p>
|
||||
<?php
|
||||
if($newtab === "new tab") {
|
||||
echo '<p class="footer-subtext"><a target="_blank" href="'.$impressum.'">Impressum</a> | <a target="_blank" href="'.$privacy.'">Privacy policity</a></p>';
|
||||
} else {
|
||||
echo '<p class="footer-subtext"><a href="'.$impressum.'">Impressum</a> | <a href="'.$privacy.'">Privacy policity</a></p>';
|
||||
}
|
||||
|
||||
?>
|
||||
<p class="footer-subtext">Made with <span class="footer-heart"><i class="fa fa-heart"></i></span> by <a target"_blank" href="thiemoo.at">Givou</a></p>
|
||||
</footer>
|
||||
|
||||
|
Reference in New Issue
Block a user