website/include/footer.php

34 lines
No EOL
1.2 KiB
PHP

<?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>
<a href="/impressum.php">Impressum</a><br>
</div>
<div id="newestPost">
<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>