diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-28 16:44:07 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-28 16:44:07 +0000 |
commit | 2df43894e2f24cb6a39e6cf11a3b39f3c4b70193 (patch) | |
tree | 7290e373de00adc8796333b848e9cd3ca5d4612b /themes | |
parent | cb756bcf08bb5e1288539c06aa16905cda06af9c (diff) | |
download | brdo-2df43894e2f24cb6a39e6cf11a3b39f3c4b70193.tar.gz brdo-2df43894e2f24cb6a39e6cf11a3b39f3c4b70193.tar.bz2 |
#306358 by dvessel, JohnAlbin, and flobruit: Add a single $classes string (and corresponding $classes_array) for all dynamic classes in template files.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/garland/block.tpl.php | 2 | ||||
-rw-r--r-- | themes/garland/comment.tpl.php | 2 | ||||
-rw-r--r-- | themes/garland/maintenance-page.tpl.php | 2 | ||||
-rw-r--r-- | themes/garland/node.tpl.php | 2 | ||||
-rw-r--r-- | themes/garland/page.tpl.php | 2 | ||||
-rw-r--r-- | themes/garland/style.css | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/themes/garland/block.tpl.php b/themes/garland/block.tpl.php index a14afe4d6..730b2d4b2 100644 --- a/themes/garland/block.tpl.php +++ b/themes/garland/block.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?> -<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="clearfix block block-<?php print $block->module ?>"> +<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?> clearfix"> <?php if (!empty($block->subject)): ?> <h2><?php print $block->subject ?></h2> diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php index 3f96b1e2d..e2edf0dc0 100644 --- a/themes/garland/comment.tpl.php +++ b/themes/garland/comment.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?> -<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' ' . $status; print ' ' . $zebra; ?>"> +<div class="<?php print $classes . ' ' . $zebra; ?>"> <div class="clearfix"> <?php if ($submitted): ?> diff --git a/themes/garland/maintenance-page.tpl.php b/themes/garland/maintenance-page.tpl.php index 5a86d1e65..74dc026cd 100644 --- a/themes/garland/maintenance-page.tpl.php +++ b/themes/garland/maintenance-page.tpl.php @@ -24,7 +24,7 @@ <?php print garland_get_ie_styles(); ?> <![endif]--> </head> - <body class="<?php print $body_classes ?>"> + <body class="<?php print $classes ?>"> <!-- Layout --> <div id="header-region" class="clearfix"><?php print $header; ?></div> diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php index 993a0fe6f..919f9a5d1 100644 --- a/themes/garland/node.tpl.php +++ b/themes/garland/node.tpl.php @@ -1,7 +1,7 @@ <?php // $Id$ ?> -<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>"> +<div id="node-<?php print $node->nid; ?>" class="<?php print $classes ?>"> <?php print $picture ?> diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index feda682ca..782532ad3 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -13,7 +13,7 @@ <?php print $ie_styles ?> <![endif]--> </head> - <body class="<?php print $body_classes ?>"> + <body class="<?php print $classes ?>"> <div id="header-region" class="clearfix"><?php print $header ?></div> diff --git a/themes/garland/style.css b/themes/garland/style.css index 0085cdbd4..a4ad47f50 100644 --- a/themes/garland/style.css +++ b/themes/garland/style.css @@ -690,14 +690,14 @@ ul.links li, ul.inline li { float: right; /* LTR */ } -.preview .node, .preview .comment, .sticky { +.preview .node, .preview .comment, .node-sticky { margin: 0; padding: 0.5em 0; border: 0; background: 0; } -.sticky { +.node-sticky { padding: 1em; background-color: #fff; border: 1px solid #e0e5fb; |