[geeklog-cvs] geeklog: More static pages template variables

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Dec 13 10:43:20 EST 2009


changeset 7529:ef992fabb489
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ef992fabb489
user: Dirk Haun <dirk at haun-online.de>
date: Sun Dec 13 11:11:23 2009 +0100
description:
More static pages template variables

diffstat:

 plugins/staticpages/functions.inc |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r a1495a04930e -r ef992fabb489 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Sun Dec 13 10:33:51 2009 +0100
+++ b/plugins/staticpages/functions.inc	Sun Dec 13 11:11:23 2009 +0100
@@ -320,6 +320,7 @@
         $profile_link = $_CONF['site_url']
                       . '/users.php?mode=profile&uid=' . $A['owner_id'];
 
+        $spage->set_var('lang_author', $LANG_STATIC['author']);
         $spage->set_var('start_author_anchortag',
                         '<a href="' . $profile_link . '">' );
         $spage->set_var('end_author_anchortag', '</a>');
@@ -401,7 +402,9 @@
     if ($A['sp_format'] <> 'blankpage') {
         $curtime = COM_getUserDateTimeFormat($A['sp_date']);
         if ($_SP_CONF['show_date'] == 1) {
-            $lastupdate = $LANG_STATIC['lastupdated']. ' ' . $curtime[0];
+            $lastupdate = $LANG_STATIC['lastupdated'] . ': ' . $curtime[0];
+            $spage->set_var('lang_updated', $LANG_STATIC['lastupdated']);
+            $spage->set_var('updated_date', $curtime[0]);
             $spage->set_var('lastupdate', $lastupdate);
         }
 
@@ -409,7 +412,10 @@
             if ($_SP_CONF['show_date'] == 1) {
                 $spage->set_var('info_separator', 'visible');
             }
-            $hits = COM_numberFormat($A['sp_hits']) . ' ' . $LANG_STATIC['hits'];
+            $num_hits = COM_numberFormat($A['sp_hits']);
+            $hits = $LANG_STATIC['hits'] . ': ' . $num_hits;
+            $spage->set_var('lang_hits', $LANG_STATIC['hits']);
+            $spage->set_var('hits_number', $num_hits);
             $spage->set_var('hits', $hits);
         }
     }



More information about the geeklog-cvs mailing list