Commit 2a3bf449 authored by Dries's avatar Dries

- Patch #821202 by johnbarclay: Garland Block template needs to implement...

- Patch #821202 by johnbarclay: Garland Block template needs to implement theme_block_preprocess() to deal with attributes correctly.
parent de8128c8
<?php
// $Id$
?>
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php print render($title_prefix); ?>
<?php if (!empty($block->subject)): ?>
<h2 class="title"<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
<?php endif;?>
<?php print render($title_suffix); ?>
<div class="content"<?php print $content_attributes; ?>><?php print $content ?></div>
</div>
......@@ -113,6 +113,14 @@ function garland_preprocess_page(&$vars) {
$vars['site_name_and_slogan'] = $site_name_text . ' ' . $slogan_text;
}
/**
* Override or insert variables into the block template.
*/
function garland_preprocess_block(&$vars) {
$vars['title_attributes_array']['class'][] = 'title';
$vars['classes_array'][] = 'clearfix';
}
/**
* Override or insert variables into the page template.
*/
......
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