summaryrefslogtreecommitdiff
path: root/tools.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-01-19 22:03:03 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-01-19 22:03:03 +0000
commite5188e9418ed183d5d1a2ad4d3148f3578f2ead1 (patch)
tree89cd98939d217768bbfeafe2268c6fa388a41395 /tools.cpp
parent359faf6c427f3ced6ec938e8b029b5f614eed4eb (diff)
downloadvdr-plugin-live-e5188e9418ed183d5d1a2ad4d3148f3578f2ead1.tar.gz
vdr-plugin-live-e5188e9418ed183d5d1a2ad4d3148f3578f2ead1.tar.bz2
- 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.
Diffstat (limited to 'tools.cpp')
-rw-r--r--tools.cpp5
1 files changed, 5 insertions, 0 deletions
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", "<br/>" );
+}
+
string StringEscapeAndBreak( string const& input )
{
stringstream plainBuilder;