Commit acf2a346 authored by Dries's avatar Dries

- 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.
parent 9e623571
......@@ -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))) {
......
......@@ -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 -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment