summaryrefslogtreecommitdiff
path: root/pages/menu.ecpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-01-14 03:01:38 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-01-14 03:01:38 +0000
commit92539715a3b8a963f52c6046c6030e3d233f08fd (patch)
treecf4ac6fbd4aefa2c5d5489a7616def691268ee00 /pages/menu.ecpp
parent8d0e380099110914177e05da96158b639b92f177 (diff)
downloadvdr-plugin-live-92539715a3b8a963f52c6046c6030e3d233f08fd.tar.gz
vdr-plugin-live-92539715a3b8a963f52c6046c6030e3d233f08fd.tar.bz2
Updated header lines.
Moved channel selection into menu line, when schedule is active.
Diffstat (limited to 'pages/menu.ecpp')
-rw-r--r--pages/menu.ecpp25
1 files changed, 18 insertions, 7 deletions
diff --git a/pages/menu.ecpp b/pages/menu.ecpp
index 2989e99..87978f5 100644
--- a/pages/menu.ecpp
+++ b/pages/menu.ecpp
@@ -4,20 +4,24 @@
</%pre>
<%args>
active;
+component;
</%args>
<%request scope="page">
std::string set_active;
+std::string set_component;
</%request>
<{
set_active = active;
+ if (!component.empty())
+ set_component = component;
}>
<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>
+ <a href="whats_on.html?type=now" <& menu.setactive current=("now") &>><$ tr("What's on now?") $></a> <& menu.component current=("now") &> |
+ <a href="whats_on.html?type=next" <& menu.setactive current=("next") &>><$ tr("What's on next?") $></a> <& menu.component current=("next") &> |
+ <a href="schedule.html" <& menu.setactive current=("schedule") &>><$ tr("Schedule") $></a> <& menu.component current=("schedule") &> |
+ <a href="timers.html" <& menu.setactive current=("timers") &>><$ tr("Timers") $></a> <& menu.component current=("timers") &> |
+ <a href="recordings.html" <& menu.setactive current=("recordings") &>><$ tr("Recordings") $></a> <& menu.component current=("recordings") &> |
+ <a href="remote.html" <& menu.setactive current=("remote") &>><$ tr("Remote Control") $></a> <& menu.component current=("remote") &>
</div>
<%def setactive>
@@ -25,4 +29,11 @@ std::string set_active;
current;
</%args>
<%cpp> if (current== set_active) { </%cpp>class="active"<%cpp> } </%cpp>
-</%def> \ No newline at end of file
+</%def>
+
+<%def component>
+<%args>
+current;
+</%args>
+<%cpp> if ((current== set_active) && (!set_component.empty())) { </%cpp><& (set_component) &><%cpp> } </%cpp>
+</%def>