ersten php-code in index.html eingebaut, in index.php umbenannt

This commit is contained in:
+++ 2022-02-18 12:30:17 +01:00
parent 2048026c27
commit 8a1dab5d15

View file

@ -1,6 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="de"> <html lang="de">
<?php
try {
include_once '../src/getContent.php';
require_once '../src/getEvent.php';
} catch (Exception $ex) {
print_r($ex)
}
?>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="Hackspace, Jena, Technik, Elektronik, <meta name="keywords" content="Hackspace, Jena, Technik, Elektronik,
@ -38,9 +45,10 @@
<div id="headline" class="flex-box row"> <div id="headline" class="flex-box row">
<div id="header-left" class="flex-box row center"> <div id="header-left" class="flex-box row center">
<div id="status-icon" class="icon"> <div id="status-icon" class="icon">
<img class="icon-img" <?php getKrautButton($status); ?>
<!-- <img class="icon-img"
alt="Raumstatus Icon - Raum ist geschlossen" alt="Raumstatus Icon - Raum ist geschlossen"
src="./images/user-times.svg" /> src="./images/icons/user-times.svg" /> -->
</div> </div>
<div id="banner-div" class="flex-box column"> <div id="banner-div" class="flex-box column">
<a id="banner" href="#" <a id="banner" href="#"
@ -161,6 +169,11 @@
<li>Jitsi: <a <li>Jitsi: <a
href="https://kraut.space/lug">https://kraut.space/lug</a></li> href="https://kraut.space/lug">https://kraut.space/lug</a></li>
</ul> </ul>
<?php
printEventList();
?>
</div> </div>
<aside class="sidebar"> <aside class="sidebar">
@ -362,7 +375,7 @@
title="Springe zum Seitenanfang"> title="Springe zum Seitenanfang">
<img class="icon-img" <img class="icon-img"
alt="Pfeil nach oben" alt="Pfeil nach oben"
src="./images/arrow-up.svg" /> src="./images/icons/arrow-up.svg" />
</a> </a>
</div> </div>