website/include/footer.php

34 lines
1.2 KiB
PHP
Raw Normal View History

2020-10-13 17:11:32 +02:00
<?php
include "../internal/mysql.php";
?>
<div id="blueBar"></div>
<div id="footerContent">
<div>
<a href="/datenschutzerklaerung.html">Datenschutzerkl&auml;rung</a><br>
<a href="/bildquellen.html">Bildquellen</a><br>
2020-10-17 22:20:35 +02:00
<a href="/impressum.php">Impressum</a><br>
2020-10-13 17:11:32 +02:00
</div>
2020-11-17 20:40:31 +01:00
<div id="newestPost">
2020-10-13 17:11:32 +02:00
<h3>Neueste Beitr&auml;ge:</h3>
<?php
$result = $conn->query("SELECT * FROM posts order by id desc limit $footerMaxPost");
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$title = $row["title"];
$id = $row["id"];
echo("<a href=\"/post.php?id=$id\">$title</a><br>");
}
}
?>
</div>
<div class="center">
<p class="center">
<a href="https://www.instagram.com/jonasled1/"><i class="fab fa-instagram fa-2x"></i></a><i class="footerIconSpacer"></i>
<a href="https://www.thingiverse.com/jonasled/designs/"><i class="fas fa-cubes fa-2x"></i></a><i class="footerIconSpacer"></i>
<a href="https://paypal.me/jonasled/"><i class="fab fa-paypal fa-2x"></i></a>
</p>
</div>
</div>