141 lines
7.9 KiB
PHP
141 lines
7.9 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
date_default_timezone_set('Europe/Berlin');
|
|
require_once __DIR__ . '/util/dashboard_helpers.php';
|
|
|
|
$pdo = require __DIR__ . '/../../general_files/ini/database.php';
|
|
$content = dashboard_fetch_content($pdo, dashboard_now());
|
|
$pdo = null;
|
|
|
|
$service = $content['service'];
|
|
$announcements = $content['announcements'];
|
|
$posters = $content['posters'];
|
|
$monthImages = $content['month_images'];
|
|
$stylesheetVersion = (int) filemtime(__DIR__ . '/stylo.css');
|
|
$scriptVersion = (int) filemtime(__DIR__ . '/dashboard.js');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>NAK Reinickendorf</title>
|
|
<link rel="icon" type="image/svg+xml" href="/intranet_repo/projects/_central/img/nak-logo.svg">
|
|
<link rel="shortcut icon" href="/intranet_repo/projects/_central/img/favicon.ico">
|
|
<link rel="stylesheet" href="stylo.css?v=<?= $stylesheetVersion ?>">
|
|
<link href="https://fonts.googleapis.com/css2?family=SUSE:wght@400;700&display=swap" rel="stylesheet">
|
|
<script src="dashboard.js?v=<?= $scriptVersion ?>" defer></script>
|
|
</head>
|
|
<body>
|
|
<div class="content-board">
|
|
<div class="content-column-right">
|
|
<div class="content-column-right-upper-box">
|
|
<div class="content-column-right-upper-box-right">
|
|
<div class="content-item-time">
|
|
<div class="time"><div id="uhrzeit"></div></div>
|
|
<div class="date" style="text-align: center" data-dashboard-date><?= dashboard_html($content['date_label']) ?></div>
|
|
</div>
|
|
|
|
<div class="content-item-daily">
|
|
<div class="header-sticky-note"><div>Heutige Ansagen</div></div>
|
|
<div class="news-container">
|
|
<div class="news-scroll">
|
|
<?php foreach ($announcements as $announcement): ?>
|
|
<div class="news-box">
|
|
<div class="news-date">
|
|
<?= dashboard_html($announcement['date_label']) ?>
|
|
<?php if ($announcement['end_label'] !== ''): ?>
|
|
<br><?= dashboard_html($announcement['end_label']) ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div>
|
|
<?= dashboard_html($announcement['title']) ?>
|
|
<?php if ($announcement['subtitle'] !== ''): ?>
|
|
<div class="news-subtitle"><?= dashboard_html($announcement['subtitle']) ?></div>
|
|
<?php endif; ?>
|
|
<?php if ($announcement['meta'] !== ''): ?>
|
|
<div class="news-subtitle"><i><?= dashboard_html($announcement['meta']) ?></i></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-column-right-upper-box-left">
|
|
<div class="content-item-middle-top">
|
|
<div class="header-sticky-note"><div>Bibelwort</div></div>
|
|
<div class="bible"><?= dashboard_html($service['bibelwort']) ?></div>
|
|
<div class="verse"><?= dashboard_html($service['bibelvers']) ?></div>
|
|
</div>
|
|
|
|
<div class="content-column-double-item">
|
|
<div class="content-item">
|
|
<div class="header-sticky-note"><div>Eingangslied</div></div>
|
|
<div class="GB"><?= dashboard_html($service['eingang_nummer']) ?></div>
|
|
<div class="GB-title"><?= dashboard_html($service['eingang_titel']) ?></div>
|
|
</div>
|
|
|
|
<div class="content-item">
|
|
<div class="header-sticky-note"><div>Temperatur</div></div>
|
|
<div class="temperature">
|
|
<div class="container"><div id="wetter"></div></div>
|
|
<div class="container">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 -5 60 60" width="64px" height="64px" baseProfile="basic" aria-hidden="true">
|
|
<polygon fill="#66e1ff" points="46,22.11 46,24.42 43,26.15 43,34.24 25,44.63 14,38.28 14,35.97 12,34.81 10,35.97 7,34.24 7,20.38 4,20.96 4,18.65 22,8.26 34,5.95"/>
|
|
<polygon fill="#4292a6" points="25,30.774 28,34.815 43,26.155 43,34.238 25,44.63"/>
|
|
<polygon fill="#ff5757" points="16,18.649 4,20.959 4,18.649 16,16.34 28,32.506 28,34.815"/>
|
|
<polygon fill="#4292a6" points="34,8.257 22,10.566 22,8.257 34,5.947 46,22.113 46,24.423"/>
|
|
<polygon fill="#e64e4e" points="4,18.649 22,8.257 34,5.947 16,16.34"/>
|
|
<polygon fill="#cc4545" points="28,32.506 46,22.113 34,5.947 16,16.34"/>
|
|
<polygon fill="#b33d3d" points="28,32.506 46,22.113 46,24.423 28,34.815"/>
|
|
<polygon fill="#4292a6" points="17,34.238 22,37.124 22,31.351 17,28.464"/>
|
|
<polygon fill="#4292a6" points="10,35.97 12,34.815 12,27.887 10,26.732"/>
|
|
<polygon fill="#4ad8ff" points="19,33.083 22,34.815 22,31.351 19,29.619"/>
|
|
<polygon fill="#52b1cc" points="17,34.238 22,37.124 22,34.815 19,33.083"/>
|
|
<polygon fill="#ff5757" points="12,34.815 14,35.97 14,29.041 12,27.887"/>
|
|
</svg>
|
|
<div class="text-indoor" id="temperature_txt"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-item-bottom-box">
|
|
<div class="header-sticky-note"><div>Aushänge</div></div>
|
|
<div class="aushang-flex">
|
|
<?php if ($posters === []): ?>
|
|
<p style="text-align: left">Keine Aushänge vorgeplant.</p>
|
|
<?php else: ?>
|
|
<?php foreach ($posters as $poster): ?>
|
|
<img src="<?= dashboard_html($poster['url']) ?>" alt="<?= dashboard_html($poster['alt']) ?>" height="95%">
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-column-left">
|
|
<div class="content-item-video">
|
|
<div class="video-container" aria-label="Leer"></div>
|
|
</div>
|
|
|
|
<div class="content-item-month">
|
|
<div class="header-sticky-note"><div>Monatsplan</div></div>
|
|
<div class="content-item-month-cell">
|
|
<?php foreach ($monthImages as $image): ?>
|
|
<img src="<?= dashboard_html($image['url']) ?>" data-month-page="<?= (int) $image['page'] ?>" alt="Monatsplan Seite <?= (int) $image['page'] ?>">
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|