summaryrefslogtreecommitdiff
path: root/pages/menu.ecpp
blob: 2989e99b8b8b7bc6f6a0d8f6cfa62c1438bcddd7 (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
<%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>
<%cpp> if (current== set_active) { </%cpp>class="active"<%cpp> } </%cpp>
</%def>