From ce685cb78146f57afb4210d84c404cd11aeeccf3 Mon Sep 17 00:00:00 2001 From: Thomas Keil Date: Wed, 3 Jan 2007 20:52:18 +0000 Subject: Neu --- pages/event_widget.ecpp | 31 +++++++++++++++++++++++++++ pages/whats_on_next.ecpp | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 pages/event_widget.ecpp create mode 100644 pages/whats_on_next.ecpp diff --git a/pages/event_widget.ecpp b/pages/event_widget.ecpp new file mode 100644 index 0000000..eb97755 --- /dev/null +++ b/pages/event_widget.ecpp @@ -0,0 +1,31 @@ +<%pre> +#include +#include +#include +#include +#include +#include "tools.h" + +using namespace vdrlive; + + +<%args> +title; +short_description; +description; +channel_name; + + + + + + + + +
<$ channel_name $>
+   + +
<$ title $>
+
<$ short_description $>
+
<$ description $>
+
diff --git a/pages/whats_on_next.ecpp b/pages/whats_on_next.ecpp new file mode 100644 index 0000000..83dcfa0 --- /dev/null +++ b/pages/whats_on_next.ecpp @@ -0,0 +1,55 @@ +<%pre> +#include +#include +#include +#include +#include +#include "tools.h" + +using namespace vdrlive; + + +<%args> + +<{ + +cSchedulesLock schedulesLock; +const cSchedules* Schedules = cSchedules::Schedules(schedulesLock); + + +}> + + + VDR-Live - <$ tr("What's on next?") $> + + + +
+<& menu > +
+
+
+ <$ tr("What's on next?") $> +
+ +<{ + for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) { + if (!Channel->GroupSep()) { + const cSchedule *Schedule = Schedules->GetSchedule(Channel); + if (Schedule) { + const cEvent *Event = Schedule->GetFollowingEvent(); + if (Event) { + std::string title(Event->Title() ? Event->Title() : ""); + std::string short_description(Event->ShortText() ? Event->ShortText() : ""); + std::string description(Event->Description() ? Event->Description() : ""); +}> +<& event_widget title=(title) short_description=(short_description) description=(description) channel_name=(Channel->Name())> +<{ + } + } + } + } +}> +
+ + -- cgit v1.2.3