summaryrefslogtreecommitdiff
path: root/pages/menu.ecpp
diff options
context:
space:
mode:
authorThomas Keil <tkeil (at) datacrystal (dot) de>2007-01-13 19:54:00 +0000
committerThomas Keil <tkeil (at) datacrystal (dot) de>2007-01-13 19:54:00 +0000
commitfa0c9473db7ff372d4654f3a00dd039222c45189 (patch)
tree02019a8e85e43b39e09d74533e6aaead4496182b /pages/menu.ecpp
parent2072c668df9ad48586fd2750713da0be742dda6d (diff)
downloadvdr-plugin-live-fa0c9473db7ff372d4654f3a00dd039222c45189.tar.gz
vdr-plugin-live-fa0c9473db7ff372d4654f3a00dd039222c45189.tar.bz2
Changed overall menue structure
Diffstat (limited to 'pages/menu.ecpp')
-rw-r--r--pages/menu.ecpp32
1 files changed, 25 insertions, 7 deletions
diff --git a/pages/menu.ecpp b/pages/menu.ecpp
index 3d46df4..a36a01a 100644
--- a/pages/menu.ecpp
+++ b/pages/menu.ecpp
@@ -2,11 +2,29 @@
#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"><$ tr("What's on now?") $></a><br/>
- <a href="whats_on.html?type=next"><$ tr("What's on next?") $></a><br/>
- <a href="schedule.html"><$ tr("Schedule") $></a><br />
- <a href="timers.html"><$ tr("Timers") $></a><br />
- <a href="recordings.html"><$ tr("Recordings") $></a><br />
- <a href="remote.html"><$ tr("Remote Control") $></a>
- </div>
+ <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> \ No newline at end of file