diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-06-10 13:53:44 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-06-10 13:53:44 +0000 |
commit | 9e4984588c7f70ddc8012859cd1e97a00c0829ad (patch) | |
tree | 69a1616107eca8348d2b12870859ac10894423ab /themes/example/example.theme | |
parent | 10c96ede0a8ad30e1b1b5fd337fd8290af675852 (diff) | |
download | brdo-9e4984588c7f70ddc8012859cd1e97a00c0829ad.tar.gz brdo-9e4984588c7f70ddc8012859cd1e97a00c0829ad.tar.bz2 |
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.
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r-- | themes/example/example.theme | 9 |
1 files changed, 4 insertions, 5 deletions
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 @@ <TD ALIGN="right" COLSPAN="2"> <?php - print theme_link(" | "); + print theme_link(); ?> </TD> @@ -50,7 +50,7 @@ } // close header function - function node($node, $main = 0) { + function node($node, $main = 0, $links = 0) { ?> <TABLE BORDER="1" CELLSPACING="0" CELLPADDING="3" WIDTH="100%"> @@ -83,8 +83,7 @@ <TR> <TD COLSPAN="2"> <?php - if ($main) - echo theme_morelink($this, $node); + if ($main || $links) echo $this->links($links, $main, $node); ?> </TD> |