summaryrefslogtreecommitdiff
path: root/pages/menu.ecpp
blob: a36a01aeb19ee3a1f9dc9a1f5b5ac1e0d11f74cf (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
<%pre>
#include <vdr/plugin.h>
#include <vdr/config.h>
</%pre>
<%args>
active;
</%args>
<%request scope="page">
std::string set_active;
</%request>
<{
	set_active = active;
}>
<div class="menu">
	<a href="whats_on.html?type=now" <& menu.setactive current=("now") &>><$ tr("What's on now?") $></a> |
	<a href="whats_on.html?type=next" <& menu.setactive current=("next") &>><$ tr("What's on next?") $></a> |
	<a href="schedule.html" <& menu.setactive current=("schedule") &>><$ tr("Schedule") $></a> |
	<a href="timers.html" <& menu.setactive current=("timers") &>><$ tr("Timers") $></a> |
	<a href="recordings.html" <& menu.setactive current=("recordings") &>><$ tr("Recordings") $></a> |
	<a href="remote.html" <& menu.setactive current=("remote") &>><$ tr("Remote Control") $></a> 
</div>

<%def setactive>
<%args>
current;
</%args>
<{ if (current== set_active) { }>
class="active"
<{ } }>
</%def>