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. --- tools.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools.cpp') diff --git a/tools.cpp b/tools.cpp index 9445c93..1cdd447 100644 --- a/tools.cpp +++ b/tools.cpp @@ -95,6 +95,11 @@ string StringWordTruncate(const string& input, size_t maxLen, bool& truncated) return result.substr(0, pos); } +string StringFormatBreak(string const& input) +{ + return StringReplace( input, "\n", "
" ); +} + string StringEscapeAndBreak( string const& input ) { stringstream plainBuilder; -- cgit v1.2.3