From 61f451af59cc992b6aa88cbd183f121f5b3346a1 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Wed, 5 Aug 2009 16:42:38 -0400 Subject: [PATCH] CSS for the ToGo page; comments in template instead of final page. --- plugins/togo/templates/npl.tmpl | 53 ++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/plugins/togo/templates/npl.tmpl b/plugins/togo/templates/npl.tmpl index 4ccfb5c..3902133 100644 --- a/plugins/togo/templates/npl.tmpl +++ b/plugins/togo/templates/npl.tmpl @@ -2,10 +2,30 @@ "http://www.w3.org/TR/html4/loose.dtd"> - - pyTivo - ToGo + +pyTivo - ToGo + - + #set $tname = $tivoIP #for $tsn in $tivos @@ -13,9 +33,8 @@ #set $tname = $tivo_names[$tsn] #end if #end for -

pyTivo - ToGo - $tname

- - +

pyTivo - ToGo - $tname

+
@@ -28,28 +47,25 @@ #end if #if $folder != '' - + ## We are in a subfolder, offer the option to return to NPL #end if #set $i = 0 - - + ## i variable is used to alternate colors of row + ## loop through passed data printing row for each show or folder #for $row in $data #set $i += 1 - #if $i%2 - - #else - - #end if + #set $j = $i%2 + #if $row['ContentType'] == 'x-tivo-container/folder' - + ## This is a folder #else - + ## This is a show #if 'Icon' in $row #if $row['Icon'] == 'urn:tivo:image:expires-soon-recording' @@ -62,7 +78,7 @@ #end if #else - + ## No Icon listed in XML sheet #end if #else - + ## No URL was in links url in XML #end if #end if @@ -124,7 +140,6 @@ -
Back to Now Playing List
$row['Title'] $(row["TotalItems"]) Items $row["LastChangeDate"] @@ -110,7 +126,7 @@ #end if
-- 2.11.4.GIT