-
Notifications
You must be signed in to change notification settings - Fork 0
/
program.php
executable file
·225 lines (214 loc) · 8.42 KB
/
program.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<?php // The header includes the head tag and start of body
require "includes/head.php";
?>
<meta property="og:title" content="<?php echo $META['shortName'];?> program"/>
<meta name="twitter:title" content="<?php echo $META['shortName'];?> program"/>
<title>
<?php echo $META['shortName'];?> Program
</title>
<style>
#renderedProgram .track1Event,
#renderedProgram .track2Event,
#renderedProgram .mutualEvent {
padding: 1rem;
}
ul.nav .nav-link:hover {
background-color: #eeeeee;
}
</style>
</head>
<body>
<?php require "includes/nav.php"; ?>
<main class="container p-4">
<h2 class="indPageTitle">
Program
</h2>
<!-- NOTE: below is placeholder content derived from the Crypto 2016 conference. remove and replace with your own content when ready. this code is here to give you an idea of what the structure of this page has looked like in the past
<p>
All track 1 events at this fictitious conference will
take place in Corwin Pavilion, while all track 2 events
are in Lotte Lehmann Hall, unless otherwise noted. Track
1 events have a green background and track 2 events have
an orange background. Events for everyone or those that
are not assigned to a particular track have a light blue
background.
</p>
-->
<div class="row">
<div id="renderedProgram" class="col-12">
<!-- Handlebars script that will render the program template based on the program.json file -->
<script id="program-template" type="text/x-handlebars-template">
<div role="navigation">
<ul class="nav nav-tabs nav-justified">
{{#each days}}
<li role="presentation" class="nav-item">
<a href="#day-{{date}}" class="nav-link">
{{formatDate date}}
</a>
</li>
{{/each}}
</ul>
</div>
{{#each days}}
<div class="row" id="day-{{date}}">
<div class="col-12 col-sm-5">
<hr />
<h3 class="pageSubtitle">
{{formatDate date}}
</h3>
</div>
</div>
{{#each timeslots}}
<div class="row">
<div class="col-2">
<p class="timeSlot">
{{starttime}}-{{endtime}}
</p>
</div>
{{#if twosessions}}
<div class="col-10 col-sm-5">
<div class="track1Event">
<h5 class="text-center">
{{sessions.0.session_title}}
{{#if sessions.0.session_url}}
<a href="{{sessions.0.session_url}}"><img class="sessionInfoIcon" src="images/icons/info.svg" title="Session Info"></a>
{{/if}}
</h5>
{{#if sessions.0.location.name}}
<p class="dualTrackDescr">
{{sessions.0.location.name}}
</p>
{{/if}}
{{#if sessions.0.moderator}}
<p class="dualTrackDescr">
{{sessions.0.moderator}}
</p>
{{/if}}
{{#each sessions.0.talks}}
<p class="talkTitle">
{{title}}
</p>
<p class="dualTrackDescr">
{{#each authors}}
<span class="authorName">{{this}}</span>
{{/each}}
</p>
{{#if paperUrl}}
<span class="talkMedia">
Media: <a href="{{paperUrl}}"><img class="talkMediaIcon" src="images/icons/file.svg" title="Paper"></a>
</span>
{{/if}}
{{#if slidesUrl}}
<span class="talkMedia">
<a href="{{slidesUrl}}"><img class="talkMediaIcon" src="images/icons/presentation.svg" title="Slides"></a>
</span>
{{/if}}
{{/each}}
</div>
</div>
<!-- This is visible only on mobile, when sessions wrap -->
<div class="col-2 d-sm-block d-md-none">
<p class="timeSlot">
{{starttime}}-{{endtime}}
</p>
</div>
<div class="col-10 col-sm-5">
<div class="track2Event">
<h5 class="text-center">
{{sessions.1.session_title}}
{{#if sessions.1.session_url}}
<a href="{{sessions.1.session_url}}"><img class="sessionInfoIcon" src="images/icons/info.svg" title="Session Info"></a>
{{/if}}
</h5>
{{#if sessions.1.location.name}}
<p class="dualTrackDescr">
{{sessions.1.location.name}}
</p>
{{/if}}
{{#if sessions.1.moderator}}
<p class="dualTrackDescr">
{{sessions.1.moderator}}
</p>
{{/if}}
{{#each sessions.1.talks}}
<p class="talkTitle">
{{title}}
</p>
<p class="dualTrackDescr">
{{#each authors}}
<span class="authorName">{{this}}</span>
{{/each}}
</p>
{{#if paperUrl}}
<span class="talkMedia">
Media: <a href="{{paperUrl}}"><img class="talkMediaIcon" src="images/icons/file.svg" title="Paper"></a>
</span>
{{/if}}
{{#if slidesUrl}}
<span class="talkMedia">
<a href="{{slidesUrl}}"><img class="talkMediaIcon" src="images/icons/presentation.svg" title="Slides"></a>
</span>
{{/if}}
{{/each}}
</div>
</div>
{{else}}
<div class="col-10">
<div class="mutualEvent">
<h5>
{{sessions.0.session_title}}
{{#if sessions.0.session_url}}
<a href="{{sessions.0.session_url}}"><img class="sessionInfoIcon" src="images/icons/info.svg" title="Session Info"></a>
{{/if}}
</h5>
{{#if sessions.0.location.name}}
<p class="eventDescr">
{{sessions.0.location.name}}
</p>
{{/if}}
{{#if sessions.0.moderator}}
<p class="eventDescr">
{{sessions.0.moderator}}
</p>
{{/if}}
{{#each sessions.0.talks}}
<p class="mutualEventTalkTitle">
{{title}}
</p>
<p class="eventDescr">
{{#each authors}}
<span class="authorName">{{this}}</span>
{{/each}}
</p>
{{#if paperUrl}}
<span class="talkMedia">
Media: <a href="{{paperUrl}}"><img class="talkMediaIcon" src="images/icons/file.svg" title="Paper"></a>
</span>
{{/if}}
{{#if slidesUrl}}
<span class="talkMedia">
<a href="{{slidesUrl}}"><img class="talkMediaIcon" src="images/icons/presentation.svg" title="Slides"></a>
</span>
{{/if}}
{{/each}}
</div>
</div>
{{/if}}
</div>
{{/each}}
{{/each}}
</script>
</div>
</div>
</main>
<?php include "includes/footer.php"; ?>
<!-- Handlebars -->
<script src="https://iacr.org/libs/js/handlebars/handlebars-v4.1.0.js" type="text/javascript"></script>
<!-- Personal scripts -->
<script src="./js/tooltips.js"></script>
<script src="./js/program.js"></script>
</body>
</html>