summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-06-01 20:21:04 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-06-01 20:21:04 +0000
commit4781a18ce05be3fcef111611d07a655acc0cc334 (patch)
tree373ced5327a676b60869a1120bb17c9c73b901c4 /pages
parent883be2c8cade7d68dc743c17bedda6f675a787ba (diff)
downloadvdr-plugin-live-4781a18ce05be3fcef111611d07a655acc0cc334.tar.gz
vdr-plugin-live-4781a18ce05be3fcef111611d07a655acc0cc334.tar.bz2
- moved to uniform features detector
Diffstat (limited to 'pages')
-rw-r--r--pages/menu.ecpp5
-rw-r--r--pages/schedule.ecpp3
-rw-r--r--pages/whats_on.ecpp5
3 files changed, 8 insertions, 5 deletions
diff --git a/pages/menu.ecpp b/pages/menu.ecpp
index 2791b2d..e94e885 100644
--- a/pages/menu.ecpp
+++ b/pages/menu.ecpp
@@ -2,6 +2,7 @@
#include <string>
#include <vdr/plugin.h>
#include <vdr/config.h>
+#include "livefeatures.h"
#include "setup.h"
using namespace std;
@@ -34,7 +35,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
<a href="whats_on.html?type=now" <& menu.setactive current=("whats_on") &>><$ tr("What's on?") $></a> |
<a href="schedule.html" <& menu.setactive current=("schedule") &>><$ tr("Schedule") $></a> |
<a href="timers.html" <& menu.setactive current=("timers") &>><$ tr("Timers") $></a> |
-% if (LiveSetup().HaveEPGSearch()) {
+% if ( LiveFeatures< features::epgsearch >().Recent() ) {
<a href="searchepg.html" <& menu.setactive current=("searchepg") &>><$ tr("Search") $></a> |
<a href="searchtimers.html" <& menu.setactive current=("searchtimers") &>><$ tr("Searchtimers") $></a> |
% }
@@ -56,7 +57,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
<& menu.component current=("whats_on") &>
<& menu.component current=("schedule") &>
<& menu.component current=("timers") &>
-% if (LiveSetup().HaveEPGSearch()) {
+% if ( LiveFeatures< features::epgsearch >().Recent() ) {
<& menu.component current=("search") &>
<& menu.component current=("searchtimers") &>
% }
diff --git a/pages/schedule.ecpp b/pages/schedule.ecpp
index a02c32c..5357b3d 100644
--- a/pages/schedule.ecpp
+++ b/pages/schedule.ecpp
@@ -4,6 +4,7 @@
#include <vdr/epg.h>
#include <vdr/config.h>
#include "exception.h"
+#include "livefeatures.h"
#include "setup.h"
#include "tools.h"
#include "epg_events.h"
@@ -107,7 +108,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
% }
<tr class="<? active_line ? "active" ?>">
<td style="border-left: 1px solid black"><& pageelems.event_timer channelid=(channel_id) eventid=(event) &>
-% if (LiveSetup().HaveEPGSearch()) {
+% if ( LiveFeatures< features::epgsearch >().Recent() ) {
<a href="searchresults.html?searchplain=<$ StringUrlEncode(title) $>"><img src="/search.png" border="0" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a>
% }
<a href="http://akas.imdb.com/Tsearch?title=<$ StringUrlEncode(title) $>"><img src="imdb.png" border="0" alt="" <& tooltip.hint text=(tr("Find more at the Internet Movie Database.")) &>></img></a>
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp
index 0b274e1..bbbb73b 100644
--- a/pages/whats_on.ecpp
+++ b/pages/whats_on.ecpp
@@ -4,6 +4,7 @@
#include <vdr/epg.h>
#include <vdr/config.h>
#include <vdr/i18n.h>
+#include "livefeatures.h"
#include "setup.h"
#include "tools.h"
#include "epg_events.h"
@@ -136,7 +137,7 @@ if (type == "now") {
% if (type == "now") {
<& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channel_id) image="zap.png" alt="" &>
% }
-% if (LiveSetup().HaveEPGSearch()) {
+% if ( LiveFeatures< features::epgsearch >().Recent() ) {
<a href="searchresults.html?searchplain=<$ StringEscapeAndBreak(epgEvent->Title()) $>"><img src="search.png" border="0" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a>
% }
<a href="http://akas.imdb.com/Tsearch?title=<$ StringUrlEncode(epgEvent->Title()) $>"><img src="imdb.png" border="0" alt="" <& tooltip.hint text=(tr("Find more at the Internet Movie Database.")) &>></img></a>
@@ -159,7 +160,7 @@ if (type == "now") {
% if (type == "now") {
<& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channel_id) image="zap.png" alt="" &>
% }
-% if (LiveSetup().HaveEPGSearch()) {
+% if ( LiveFeatures< features::epgsearch >().Recent() ) {
<a href="searchresults.html?searchplain=<$ StringUrlEncode(epgEvent->Title()) $>"><img src="/search.png" border="0" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a>
% }
<a href="http://akas.imdb.com/Tsearch?title=<$ StringUrlEncode(epgEvent->Title()) $>"><img src="imdb.png" border="0" alt="" <& tooltip.hint text=(tr("Find more at the Internet Movie Database.")) &>></img></a>