From c97e7fe1805d2ac0f2f3aedc89611a237f0edfdc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 Feb 2003 08:10:07 +0000 Subject: - Small improvements to help people getting started with the xtemplate theme. --- themes/xtemplate/xtemplate.theme | 8 +------- themes/xtemplate/xtemplate.xtmpl | 6 +++--- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'themes') diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme index cde00817f..73b3c167a 100644 --- a/themes/xtemplate/xtemplate.theme +++ b/themes/xtemplate/xtemplate.theme @@ -2,10 +2,6 @@ class Theme_xtemplate extends BaseTheme { - var $primary_links = "edit me"; - var $secondary_links = "edit me"; - var $message = "edit me"; - function system($field) { $system["name"] = "xtemplate"; $system["description"] = "a template driven theme"; @@ -70,12 +66,10 @@ class Theme_xtemplate extends BaseTheme { $this->template->assign(array( "title" => ($title ? $title." | ". variable_get("site_name", "drupal") : variable_get("site_name", "drupal") ." | ". variable_get("site_slogan", "")), "head" => theme_head(), - "primary" => $this->primary_links, - "secondary" => $this->secondary_links + "links" => $this->links(link_page()) )); if (!arg(0)) { - $this->template->assign("message", $this->message); $this->template->parse("header.message"); } diff --git a/themes/xtemplate/xtemplate.xtmpl b/themes/xtemplate/xtemplate.xtmpl index be2869fd8..4c795cd56 100644 --- a/themes/xtemplate/xtemplate.xtmpl +++ b/themes/xtemplate/xtemplate.xtmpl @@ -18,8 +18,8 @@ -
{secondary}
-
{primary}
+
secondary links
+
primary links
{links}
@@ -28,7 +28,7 @@ -
{message}
+
Site description or mission statement - edit this text along with the primary and secondary links in the file 'themes/xtemplate/xtemplate.xtmpl'.
-- cgit v1.2.3