This repository has been archived by the owner on Dec 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschedule.php
131 lines (122 loc) · 4.9 KB
/
schedule.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
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
131
<?php
/**
* Template Name: Schedule
* Description: Schedule page, with the full schedule below the content.
*/
get_header(); ?>
<div class="main-content">
<div class="row schedule-category-images">
<?php
$show_categories = array();
$show_categories[] = array('name' => 'After Dark', 'slug' => 'shows', 'anchor' => '#afterdark', 'link' => 'afterdark.jpg');
$show_categories[] = array('name' => 'Culture', 'slug' => 'shows', 'anchor' => '#culture', 'link' => 'culture.jpg');
$show_categories[] = array('name' => 'Daytime', 'slug' => 'shows', 'anchor' => '#daytime', 'link' => 'daytime.jpg');
$show_categories[] = array('name' => 'News', 'slug' => 'shows', 'anchor' => '#news', 'link' => 'news.jpg');
$show_categories[] = array('name' => 'Sport', 'slug' => 'shows', 'anchor' => '#sport', 'link' => 'sport.jpg');
foreach($show_categories as $show) {
echo "<div class='show-photo'>";
echo " <a href=" . get_permalink( get_page_by_path( $show['slug'] ) ) . $show['anchor'] . ">";
echo " <img src='" . get_template_directory_uri() . "/images/schedule/" . $show['link'] . "'>";
echo " </a>";
echo "</div>";
}
?>
</div>
<div class="entry-content">
<?php the_title( '<h1>', '</h1>' ); ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post();
// Include the page content template.
the_content();
// End the loop.
endwhile;
?>
<div class="filter-container">
<h2>Filter</h2>
<label for="schedule-category-select">Show Category</label>
<select autocomplete="off" name="schedule-category-select" class="select schedule-category-select">
<option value="all">All</option>
<option value="after-dark">After Dark</option>
<option value="culture">Culture</option>
<option value="daytime">Daytime</option>
<option value="news">News</option>
<option value="sport">Sport</option>
</select>
<div class="search-filter-container">
<label for="schedule-category-filter-search">Search</label>
<input autocomplete="off" type="text" name="schedule-category-filter-search" class="txt schedule-category-filter-search">
</div>
</div>
</div>
<div class="schedule">
<ul class="day-names">
<li class="day-name">Monday</li>
<li class="day-name">Tuesday</li>
<li class="day-name">Wednesday</li>
<li class="day-name">Thursday</li>
<li class="day-name">Friday</li>
<li class="day-name">Saturday</li>
<li class="day-name">Sunday</li>
</ul>
<div class="timetable">
<ul class="times">
<li>Midnight</li>
<li>1am</li>
<li>2am</li>
<li>3am</li>
<li>4am</li>
<li>5am</li>
<li>6am</li>
<li>7am</li>
<li>8am</li>
<li>9am</li>
<li>10am</li>
<li>11am</li>
<li>Noon</li>
<li>1pm</li>
<li>2pm</li>
<li>3pm</li>
<li>4pm</li>
<li>5pm</li>
<li>6pm</li>
<li>7pm</li>
<li>8pm</li>
<li>9pm</li>
<li>10pm</li>
<li>11pm</li>
</ul>
<ul class="days">
<li class="day monday">
<h1 class="inline-day-name">Monday</h1>
<ul class="slots"></ul>
</li>
<li class="day tuesday">
<h1 class="inline-day-name">Tuesday</h1>
<ul class="slots"></ul>
</li>
<li class="day wednesday">
<h1 class="inline-day-name">Wednesday</h1>
<ul class="slots"></ul>
</li>
<li class="day thursday">
<h1 class="inline-day-name">Thursday</h1>
<ul class="slots"></ul>
</li>
<li class="day friday">
<h1 class="inline-day-name">Friday</h1>
<ul class="slots"></ul>
</li>
<li class="day saturday">
<h1 class="inline-day-name">Saturday</h1>
<ul class="slots"></ul>
</li>
<li class="day sunday">
<h1 class="inline-day-name">Sunday</h1>
<ul class="slots"></ul>
</li>
</ul>
</div>
</div>
</div>
<?php get_footer(); ?>