From acf2a34694fceea6a15b7d3dc9dec061f68b6ae9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 30 Nov 2003 15:46:09 +0000 Subject: - Color-coded static nodes: they'll have a gray background to differentiate them from non-static nodes and to make the visitor scroll down for fresh content. --- themes/xtemplate/xtemplate.theme | 3 ++- themes/xtemplate/xtemplate.xtmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'themes') diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme index 182ac7048..2bc36e7af 100644 --- a/themes/xtemplate/xtemplate.theme +++ b/themes/xtemplate/xtemplate.theme @@ -24,7 +24,7 @@ function xtemplate_help($section) { switch ($section) { case 'admin/system/themes#description': - $output = t("A template driven theme"); + $output = t('A template driven theme'); break; } @@ -39,6 +39,7 @@ function xtemplate_node($node, $main = 0, $page = 0) { "title" => ucfirst($node->title), "author" => format_name($node), "date" => format_date($node->created), + "classes" => ($main && $node->static) ? 'node static-node' : 'node', "content" => ($main && $node->teaser) ? $node->teaser : $node->body)); if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) { diff --git a/themes/xtemplate/xtemplate.xtmpl b/themes/xtemplate/xtemplate.xtmpl index 73af28cf2..8db5d2959 100644 --- a/themes/xtemplate/xtemplate.xtmpl +++ b/themes/xtemplate/xtemplate.xtmpl @@ -51,7 +51,7 @@ -
+

{title}

-- cgit v1.2.3