diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-24 17:50:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-24 17:50:08 +0000 |
commit | a45fc1a20e1e9b8bf64c286db7a672d3954e88d9 (patch) | |
tree | 620f3318bdd4c9bb09b24c74f8e450a2e90c4be8 /includes | |
parent | 8b6e78075c9baf831bd49d8dc0b461401c5174d8 (diff) | |
download | brdo-a45fc1a20e1e9b8bf64c286db7a672d3954e88d9.tar.gz brdo-a45fc1a20e1e9b8bf64c286db7a672d3954e88d9.tar.bz2 |
- themes now get there header/footer links through theme_link();
- tidied up example.theme
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index cc9909468..f7fe640dc 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -12,6 +12,16 @@ function theme_init() { return new Theme(); } +function theme_link($separator = " | ") { + $links = array("<A HREF=\"index.php\">". t("home") ."</A>", + "<A HREF=\"search.php\">". t("search") ."</A>", + "<A HREF=\"submit.php\">". t("submit") ."</A>", + "<A HREF=\"module.php?mod=diary\">". t("diary") ."</A>", + "<A HREF=\"account.php\">". t("account") ."</A>", + "<A HREF=\"module.php?mod=book\">". t("help") ."</A>"); + return implode($separator, $links); +} + function theme_menu($name, $module) { global $menu; if ($module["menu"]) $menu = ($menu) ? array_merge($menu, $module["menu"]()) : $module["menu"](); |