summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-24 17:50:08 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-24 17:50:08 +0000
commita45fc1a20e1e9b8bf64c286db7a672d3954e88d9 (patch)
tree620f3318bdd4c9bb09b24c74f8e450a2e90c4be8 /includes
parent8b6e78075c9baf831bd49d8dc0b461401c5174d8 (diff)
downloadbrdo-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.inc10
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"]();