blob: 6cbc25e3ddaee1d2f75c97c070e33a48310a987e (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<?php
error_reporting(0);
require_once('boston_food_trucks.php');
$BostonFoodTrucks = new BostonFoodTrucks;
$schedule = $BostonFoodTrucks->schedule(array(
'days_of_week' => array(date('l')),
'times_of_day' => array('Lunch'),
'locations' => $BostonFoodTrucks->locations_downtown
));
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Downtown Boston Food Truck Schedule</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="assets/fonts/gandhi-sans-fontfacekit/stylesheet.css">
<link rel="stylesheet" href="assets/fonts/Hominis-fontfacekit/stylesheet.css">
<style>
body {
background-color: #f5f5f5;
font-family: GandhiSansRegular, Helvetica, sans-serif;
}
h1, h2 {
font: 3.5em/1.1em HominisNormal, serif;
text-align: center;
}
h2 { font-size: 2em; margin-top: -0.6em; }
div[role="main"] {
font-size: 1.3em;
}
table {
margin: 0 auto;
position: relative;
left: 1em;
}
table tr td { padding: 0.3em; }
table tr td.company { text-align: right; }
footer {
text-align: center;
margin: 1.2em 0 0.8em;
}
footer hr {
border: none;
background-color: #ccc;
height: 1px;
width: 25%;
margin: 0.7em auto;
}
a { color: #1A84B3; }
a:hover { color: #156A90; }
a:active { color: #10506D; }
@media only screen and (max-width: 960px) {
table { left: 0; }
table tr td.company {
display: inline;
text-align: left;
font-size: 1.2em;
}
table tr td.location {
display: block;
font-size: 0.8em;
margin-bottom: 0.7em;
}
}
@media only screen and (max-width: 488px) {
h1 { font-size: 2em; }
h2 { font-size: 1em; }
}
</style>
</head>
<body>
<header>
<h1>Downtown Boston Food Truck Schedule</h1>
<h2>Today at Lunch</h2>
</header>
<div role="main">
<table id="trucks">
<?php foreach ($schedule['food_trucks'] as $truck): ?>
<tr>
<td class="company">
<?php if ($truck['company_url']): ?>
<a href="<?= $truck['company_url'] ?>"><?= $truck['company'] ?></a>
<?php else: ?>
<?= $truck['company'] ?>
<?php endif; ?>
</td>
<td class="location">
<?= $truck['location'] ?>
</td>
</tr>
<?php endforeach; ?>
</table>
</div>
<footer>
<hr />
Created by <a href="http://teddywing.com">Teddy Wing</a> | <a href="https://github.com/teddywing/Boston-Food-Truck-Schedule-API">Boston Food Truck Schedule API</a>
</footer>
</body>
</html>
|