From d9c334d0126dfa49f2ff15a81612251dea862acb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 19 Jun 2010 12:42:21 +0000 Subject: [PATCH] Rewritten to make use of EL --- surfbar.php | 13 +++---------- templates/de/html/surfbar/surfbar_frame_stats.tpl | 14 +++++++------- .../de/html/surfbar/surfbar_frame_textlinks.tpl | 2 +- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/surfbar.php b/surfbar.php index fb6a5dd02c..e835e927dd 100644 --- a/surfbar.php +++ b/surfbar.php @@ -127,14 +127,8 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in // Prepare content $content = array( - 'points' => translateComma($points), - 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(), - 'reload' => (getConfig('surfbar_stats_reload') * 1000), - 'c_total' => translateComma(getConfig('surfbar_total_counter')), - 'c_today' => translateComma(getConfig('surfbar_daily_counter')), - 'c_yester' => translateComma(getConfig('surfbar_yester_counter')), - 'c_week' => translateComma(getConfig('surfbar_weekly_counter')), - 'c_month' => translateComma(getConfig('surfbar_monthly_counter')), + 'points' => $points, + 'reload' => (getConfig('surfbar_stats_reload') * 1000) ); // Load template for "stats" page @@ -142,8 +136,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestParameterSet('frame')) && (in } elseif ((isGetRequestParameterSet('frame')) && (getRequestParameter('frame') == 'textlinks')) { // Prepare content $content = array( - 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(), - 'reload' => (getConfig('surfbar_stats_reload') * 1000) + 'reload' => (getConfig('surfbar_stats_reload') * 1000) ); // Load template for "stats" page diff --git a/templates/de/html/surfbar/surfbar_frame_stats.tpl b/templates/de/html/surfbar/surfbar_frame_stats.tpl index ffcf5ecfd3..56d990f74a 100644 --- a/templates/de/html/surfbar/surfbar_frame_stats.tpl +++ b/templates/de/html/surfbar/surfbar_frame_stats.tpl @@ -1,13 +1,13 @@
- Guthaben: $content[points] {?POINTS?} - - Jetzt Online: $content[online] - - Seitenaufrufe: Heute:$content[c_today] - - Gestern:$content[c_yester] - - Woche:$content[c_week] - - Monat:$content[c_month] - - Gesamt:$content[c_total] + Guthaben: {%pipe,translateComma=$content[points]%} {?POINTS?} - + Jetzt Online: {%pipe,SURFBAR_DETERMINE_TOTAL_ONLINE%} - + Seitenaufrufe: Heute:{%config,translateComma=surfbar_daily_counter%} - + Gestern:{%config,translateComma=surfbar_yester_counter%} - + Woche:{%config,translateComma=surfbar_weekly_counter%} - + Monat:{%config,translateComma=surfbar_monthly_counter%} - + Gesamt:{%config,translateComma=surfbar_total_counter%}
diff --git a/templates/de/html/surfbar/surfbar_frame_textlinks.tpl b/templates/de/html/surfbar/surfbar_frame_textlinks.tpl index ef147b3071..5aafa18023 100644 --- a/templates/de/html/surfbar/surfbar_frame_textlinks.tpl +++ b/templates/de/html/surfbar/surfbar_frame_textlinks.tpl @@ -1,7 +1,7 @@
- Jetzt Online: $content[online] - + Jetzt Online: {%pipe,SURFBAR_DETERMINE_TOTAL_ONLINE%} - Ihr Textlink hier? - Ihr Textlink hier? - -- 2.39.2