summaryrefslogtreecommitdiffstats
path: root/zen
diff options
context:
space:
mode:
authorJohnAlbin2008-09-14 12:41:20 +0000
committerJohnAlbin2008-09-14 12:41:20 +0000
commit0bcb1dd5f7043245373486caef43a975b4473004 (patch)
tree934efa0c13f67efe11644ff87789fce41c027608 /zen
parent35c16bc5d8975fc3c6ec364c81880a8a31a56908 (diff)
Changed $block_classes to $classes.
Diffstat (limited to 'zen')
-rw-r--r--zen/block.tpl.php5
-rw-r--r--zen/template.php14
2 files changed, 11 insertions, 8 deletions
diff --git a/zen/block.tpl.php b/zen/block.tpl.php
index abb4891..a84d5fe 100644
--- a/zen/block.tpl.php
+++ b/zen/block.tpl.php
@@ -12,6 +12,9 @@
* - $block->module: Module that generated the block.
* - $block->delta: This is a numeric id connected to each module.
* - $block->region: The block region embedding the current block.
+ * - $classes: A set of CSS classes for the DIV wrapping the block.
+ Possible values are: block-MODULE, region-odd, region-even, odd, even,
+ region-count-X, and count-X.
*
* Helper variables:
* - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
@@ -26,7 +29,7 @@
* @see template_preprocess_block()
*/
?>
-<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="block <?php print $block_classes; ?>"><div class="block-inner">
+<div id="block-<?php print $block->module . '-' . $block->delta; ?>" class="<?php print $classes; ?>"><div class="block-inner">
<?php if ($block->subject): ?>
<h2 class="title"><?php print $block->subject; ?></h2>
diff --git a/zen/template.php b/zen/template.php
index 372fbbe..e6e857d 100644
--- a/zen/template.php
+++ b/zen/template.php
@@ -221,13 +221,13 @@ function zen_preprocess_block(&$vars, $hook) {
$block = $vars['block'];
// Special classes for blocks.
- $block_classes = array();
- $block_classes[] = 'block-' . $block->module;
- $block_classes[] = 'region-' . $vars['block_zebra'];
- $block_classes[] = $vars['zebra'];
- $block_classes[] = 'region-count-' . $vars['block_id'];
- $block_classes[] = 'count-' . $vars['id'];
- $vars['block_classes'] = implode(' ', $block_classes);
+ $classes = array('block');
+ $classes[] = 'block-' . $block->module;
+ $classes[] = 'region-' . $vars['block_zebra'];
+ $classes[] = $vars['zebra'];
+ $classes[] = 'region-count-' . $vars['block_id'];
+ $classes[] = 'count-' . $vars['id'];
+ $vars['classes'] = implode(' ', $classes);
$vars['edit_links_array'] = array();
$vars['edit_links'] = '';