From 9e4984588c7f70ddc8012859cd1e97a00c0829ad Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 10 Jun 2001 13:53:44 +0000 Subject: Changes - created a BaseTheme class in theme.inc. - added links($links = array(), $status = 0, $node = 0) to BaseTheme. - modified all themes to extend from BaseTheme. - modiefied theme_link() to take advantage of $theme->links(). - theme_morelink() does not require a $theme argument. Todo - add the other standard variables and functions to BaseTheme. - some themes could use some more modifications. Weird - marvin.theme still has a story() function. --- themes/example/example.theme | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'themes/example/example.theme') diff --git a/themes/example/example.theme b/themes/example/example.theme index 20e567173..ad8a92cff 100644 --- a/themes/example/example.theme +++ b/themes/example/example.theme @@ -9,7 +9,7 @@ *********************************************************************/ - class Theme { + class Theme extends BaseTheme { // General colorset that can be used for this theme var $foreground = "#000000"; var $background = "#FFFFFF"; @@ -30,7 +30,7 @@ @@ -50,7 +50,7 @@ } // close header function - function node($node, $main = 0) { + function node($node, $main = 0, $links = 0) { ?> @@ -83,8 +83,7 @@ -- cgit v1.2.3
links($links, $main, $node); ?>