diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-18 23:48:14 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-18 23:48:14 +0000 |
commit | f6f71da928b975fd39afee1d639b495bcdeff9b8 (patch) | |
tree | 03e3e64d26080184ab28d90445e6fa2f2d99c091 /pages/pageelems.ecpp | |
parent | 440d211c5084980e959ed269d468900d69a82cc2 (diff) | |
download | vdr-plugin-live-f6f71da928b975fd39afee1d639b495bcdeff9b8.tar.gz vdr-plugin-live-f6f71da928b975fd39afee1d639b495bcdeff9b8.tar.bz2 |
- Setup option to use Ajax technology. If turned off no javascript is
loaded but almost all functionality is exposed via single html pages.
This can speed up loading over slow links at the cost of a
fancy interface.
- Infobox is only available with Ajax features enabled but can still be
switched on/off when Ajax is active.
- Added posibility to turn off the logo. When also infobox is turned off
the menu line appears at the top of the page. This is helpful
for PDA based browsers and low resolution screens.
Diffstat (limited to 'pages/pageelems.ecpp')
-rw-r--r-- | pages/pageelems.ecpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 9fee05b..6de3bfc 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -34,12 +34,25 @@ int update_status(1); <# ---------------------------------------------------------------------- #> <%def logo> +<%cpp> + if (LiveSetup().GetShowLogo() + || (LiveSetup().GetUseAjax() && LiveSetup().GetShowInfoBox())) { +</%cpp> <div class="page_header"> +<%cpp> + if (LiveSetup().GetShowLogo()) { +</%cpp> <a href="<$ LiveSetup().GetStartScreenLink()$>"> <img src="<$ LiveSetup().GetThemedLink("img", "logo.png") $>" alt="VDR Live!" class="logo"></img></a> -<%cpp>if (LiveSetup().GetShowInfoBox()) { </%cpp><& infobox &><%cpp> } </%cpp> +<%cpp> + } +</%cpp> +<%cpp>if (LiveSetup().GetUseAjax() && LiveSetup().GetShowInfoBox()) { </%cpp><& infobox &><%cpp> } </%cpp> </div> <div style="clear: both"></div> +<%cpp> + } +</%cpp> </%def> <# ---------------------------------------------------------------------- #> @@ -123,6 +136,7 @@ int update_status(1); <# ---------------------------------------------------------------------- #> <%def ajax_js> +<%cpp>if (LiveSetup().GetUseAjax()) { </%cpp> <script type="text/javascript" src="js/mootools/mootools.v1.11.js"></script> <script type="text/javascript" src="js/live/liveajax.js"></script> <script type="text/javascript" src="js/live/infowin.js"></script> @@ -139,6 +153,7 @@ int update_status(1); }); --></script> <%cpp> } </%cpp> +<%cpp> } </%cpp> </%def> <# ---------------------------------------------------------------------- #> |