-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrichtar.php
23 lines (21 loc) · 1.01 KB
/
richtar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta property="og:image" content="http://www.richtarjakub.sk/images/logo-richtar-jakub.png">
<h2>Richtar Jakup live:</h2>
<?php
$day = date('w');
if ($day == 0)
{
echo "<img src='http://myfirstchat.com/storiescity/covers/48448.JPEG'>";
echo "<h3 style='color: red'>Closed. Very sad, Many tears, So no beer </h3>";
}
$beers = json_decode(file_get_contents("http://noskovic.sk/api_richtar.php"), TRUE);
$output = "";
foreach($beers['beers'] as $beer)
{
$output .= "<a href='{$beer[detail]}'>{$beer[name]}<img src='{$beer[image]}'></a><br>";
}
echo "<p style='float: left'>".$output."</p>";
?>
<img src="https://i.giphy.com/media/11oNXSmmBzNLA4/giphy.webp" style="float: right"/>
<br clear="both">
<p style="width: 100%; text-align: center">Made with <span style="color: #cb4154">♥</span> by nosko. Fork me on <a href="https://github.com/nosko/richtar"><img width="17px" height="17px" src="https://image.flaticon.com/icons/png/128/25/25231.png"></a></p>