[geeklog-cvs] geeklog: Added breadcrumb support to staticpage plugin.

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jan 12 14:21:00 EST 2012


changeset 8474:09dd0a29311e
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/09dd0a29311e
user: Tom <websitemaster at cogeco.net>
date: Thu Jan 12 14:19:57 2012 -0500
description:
Added breadcrumb support to staticpage plugin.

diffstat:

 plugins/staticpages/functions.inc              |  2 ++
 plugins/staticpages/templates/staticpage.thtml |  1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 37ebe4bfb2ac -r 09dd0a29311e plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Thu Jan 12 14:18:36 2012 -0500
+++ b/plugins/staticpages/functions.inc	Thu Jan 12 14:19:57 2012 -0500
@@ -346,6 +346,8 @@
         if (XHTML != '') {
             $spage->set_var('xmlns', ' xmlns="http://www.w3.org/1999/xhtml"');
         }
+        
+        $spage->set_var('breadcrumb_trail', TOPIC_breadcrumbs('staticpages', $page));
 
         $author_name = COM_getDisplayName($A['owner_id']);
         $author_username = DB_getItem($_TABLES['users'], 'username',
diff -r 37ebe4bfb2ac -r 09dd0a29311e plugins/staticpages/templates/staticpage.thtml
--- a/plugins/staticpages/templates/staticpage.thtml	Thu Jan 12 14:18:36 2012 -0500
+++ b/plugins/staticpages/templates/staticpage.thtml	Thu Jan 12 14:19:57 2012 -0500
@@ -1,3 +1,4 @@
+{breadcrumb_trail}
 {content}
 <p class="aligncenter">{lastupdate}<span style="padding-left:5px;padding-right:5px;visibility:{info_separator}">|</span>{hits} {print_icon}{edit_icon}</p>
 {commentbar}



More information about the geeklog-cvs mailing list