diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-30 15:46:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-30 15:46:09 +0000 |
commit | acf2a34694fceea6a15b7d3dc9dec061f68b6ae9 (patch) | |
tree | bd17bf8fbd96b1b37891bf15170efba9b8caf8ea | |
parent | 9e623571feaa92c02bced8a05457ed7df9a22be6 (diff) | |
download | brdo-acf2a34694fceea6a15b7d3dc9dec061f68b6ae9.tar.gz brdo-acf2a34694fceea6a15b7d3dc9dec061f68b6ae9.tar.bz2 |
- 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.
-rw-r--r-- | themes/xtemplate/xtemplate.theme | 3 | ||||
-rw-r--r-- | themes/xtemplate/xtemplate.xtmpl | 2 |
2 files changed, 3 insertions, 2 deletions
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 @@ <!-- END: header --> <!-- BEGIN: node --> - <div class="node"> + <div class="{classes}"> <!-- BEGIN: title --> <h2><a href="{link}">{title}</a></h2> <!-- END: title --> |