]> git.mxchange.org Git - mailer.git/commitdiff
Rewritten to make use of EL
authorRoland Häder <roland@mxchange.org>
Sat, 19 Jun 2010 12:42:21 +0000 (12:42 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 19 Jun 2010 12:42:21 +0000 (12:42 +0000)
surfbar.php
templates/de/html/surfbar/surfbar_frame_stats.tpl
templates/de/html/surfbar/surfbar_frame_textlinks.tpl

index fb6a5dd02c7fdf057c51c92b7569a88e662047ba..e835e927dddf0ed613607da04f8d6fca88c17dc2 100644 (file)
@@ -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
index ffcf5ecfd3779a5a8b9589019288d7b7e794426a..56d990f74a6a7b900f3c9a96eafc8b6f059ad2f8 100644 (file)
@@ -1,13 +1,13 @@
 <table border="0" cellspacing="0" cellpadding="0" width="100%" id="surfbar_table">
 <tr>
        <td id="surfbar_td">
-               Guthaben: <span id="surfbar_points">$content[points] {?POINTS?}</span> -
-               Jetzt Online: <span id="surfbar_counter">$content[online]</span> -
-               Seitenaufrufe: Heute:<span id="surfbar_counter">$content[c_today]</span> -
-               Gestern:<span id="surfbar_counter">$content[c_yester]</span> -
-               Woche:<span id="surfbar_counter">$content[c_week]</span> -
-               Monat:<span id="surfbar_counter">$content[c_month]</span> -
-               Gesamt:<span id="surfbar_counter">$content[c_total]</span>
+               Guthaben: <span id="surfbar_points">{%pipe,translateComma=$content[points]%} {?POINTS?}</span> -
+               Jetzt Online: <span id="surfbar_counter">{%pipe,SURFBAR_DETERMINE_TOTAL_ONLINE%}</span> -
+               Seitenaufrufe: Heute:<span id="surfbar_counter">{%config,translateComma=surfbar_daily_counter%}</span> -
+               Gestern:<span id="surfbar_counter">{%config,translateComma=surfbar_yester_counter%}</span> -
+               Woche:<span id="surfbar_counter">{%config,translateComma=surfbar_weekly_counter%}</span> -
+               Monat:<span id="surfbar_counter">{%config,translateComma=surfbar_monthly_counter%}</span> -
+               Gesamt:<span id="surfbar_counter">{%config,translateComma=surfbar_total_counter%}</span>
        </td>
 </tr>
 </table>
index ef147b3071dd28291e3ed987926eb585eb4b2505..5aafa18023c986e20b3d4ec2469b653e2465ec86 100644 (file)
@@ -1,7 +1,7 @@
 <table border="0" cellspacing="0" cellpadding="0" width="100%" id="surfbar_table">
 <tr>
        <td id="surfbar_td">
-               Jetzt Online: <span id="surfbar_counter">$content[online]</span> -
+               Jetzt Online: <span id="surfbar_counter">{%pipe,SURFBAR_DETERMINE_TOTAL_ONLINE%}</span> -
                <!-- @TODO These are static lines and should be replaced by a filter (see ext-sponsor) //-->
                <a href="{%url=modules.php?module=index&amp;what=impressum%}" target="_blank">Ihr Textlink hier?</a> -
                <a href="{%url=modules.php?module=index&amp;what=impressum%}" target="_blank">Ihr Textlink hier?</a> -