From e5188e9418ed183d5d1a2ad4d3148f3578f2ead1 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 19 Jan 2007 22:03:03 +0000 Subject: - Added new class epgEvent. Sie epg_events.h. This class collects epg data from other structures. It can the be used to appent to the page a hidden section with full epg datas for the epg-popup boxes. - Changed whats_on to uses this new feature. - No description in the event boxes any more. A mouse over tooltip shows a shortened version of the description. A click on 'more' displays a full epg box. - Added tip parameter to ajax_action_href. The text is displayed as tooltip when hoovering over the link. - Adapted style.css to make event boxes smaller. --- pages/pageelems.ecpp | 41 +++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) (limited to 'pages/pageelems.ecpp') diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 932184b..61089b1 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -4,41 +4,23 @@ #include "tools.h" using namespace std; +using namespace vdrlive; +<# ---------------------------------------------------------------------- #> + <%def doc_type> +<# ---------------------------------------------------------------------- #> + <%def logo> -<# -<%def header_box> -<%args> -content[]; -component; - -<{ -}> -
-
-
-
-% for(content_type::const_iterator it = content.begin(); it != content.end(); ++it) { - <$ *it $> -% } -% if (!component.empty()) { - <& (component) &> -% } -
-
-
-
- -#> +<# ---------------------------------------------------------------------- #> <%def event_timer> <%args> @@ -48,20 +30,27 @@ component; /> +<# ---------------------------------------------------------------------- #> + <%def ajax_js> +<# ---------------------------------------------------------------------- #> + <%def ajax_action_href> <%args> string action; + string tip; string param; string image; string alt = ""; - <$ alt $> + if (!tip.empty()) { <& tooltip.hint text=(tip) &> <%cpp> } ><$ alt $> +<# ---------------------------------------------------------------------- #> + <%def epg_tt_box> <%args> string boxId; @@ -85,7 +74,7 @@ component;
<$ (title) $>
<$ (short_descr) $>
- <$ (long_descr) $> + <{ reply.out() << StringEscapeAndBreak(long_descr); }>
-- cgit v1.2.3