-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
50 lines (43 loc) · 1.42 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Streams Calendar</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<header>
<div class="logo">
<img src="img/twitch.png" />
</div>
<div class="title">
<h1>Streams Calendar</h1>
<p>Times in GMT+2 (CEST)</p>
</div>
<div class="channel">
<span>twitch.tv/sabinico</span>
</div>
</header>
<section class="calendar">
<?php
include 'calendar.php';
foreach ($items as $item):
?>
<article class="item <?= @$item['featured']?'featured':''; ?> <?= @$item['disabled']?'disabled':''; ?>">
<div class="weekday"><?= $item['weekday']; ?></div>
<div class="game" style="background-image: url('<?= @$item['img']?$item['img']:'img/dbd_dwight.jpg'; ?>');">
<div class="logo"><img src="<?= $item['logo']; ?>" /></div>
<div class="caption"><span><?= $item['game']; ?></span></div>
</div>
<div class="schedule">
<div class="time"><span><?= @$item['start']?$item['start']:'21:00'; ?></span></div>
<div class="time"><span><?= @$item['end']?$item['end']:'00:00'; ?></span></div>
</div>
</article>
<?php
endforeach;
?>
</section>
</body>
</html>