- Patch #129640 by snufkin: generate the sticky css tag when necessary.

6.x
Dries Buytaert 2007-04-13 08:30:52 +00:00
parent 9dc7e99a42
commit 4a7b9e98f4
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ function chameleon_page($content, $show_blocks = TRUE) {
function chameleon_node($node, $teaser = 0, $page = 0) { function chameleon_node($node, $teaser = 0, $page = 0) {
$output = "<div class=\"node". ((!$node->status) ? ' node-unpublished' : '') ."\">\n"; $output = "<div class=\"node". ((!$node->status) ? ' node-unpublished' : '') . (($node->sticky) ? ' sticky' : '') ."\">\n";
if (!$page) { if (!$page) {
$output .= " <h2 class=\"title\">". ($teaser ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."</h2>\n"; $output .= " <h2 class=\"title\">". ($teaser ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."</h2>\n";