Hi,

Zen is not compatible with the great module Clean Markup.
It is using $variables['title'] to set the block title markup as defined in the block configuration settings.

Because of following code in Zen's template.php, the title markup is erased.

function zen_process_block(&$variables, $hook) {
  // Drupal 7 should use a $title variable instead of $block->subject.
  $variables['title'] = isset($variables['block']->subject) ? $variables['block']->subject : '';
}

Would it be possible to make the next version compatible ?
Thanks !

Comments

seren10pity13 created an issue. See original summary.

johnalbin’s picture

Status: Active » Closed (won't fix)

Form the Clean Markup project page:

Note that [the theme] will override Clean Markup's block template: you will have to copy Clean Markup's block.tpl.php to your sub-theme.

It looks like there is no way to make a theme "compatible" with Clean Markup. You have to manually copy over the module's block.tpl.php. That's a bad design on their part.

seren10pity13’s picture

Hi,
Thanks for answering.

But I know I have to copy the template file, and I dit, that's not the point :
Even when using their template, this is not working with Zen, because Zen's process function erase the $variable['title'] to set it's own markup, so the markup defined in the module settings can't be applied, and the template file never recieves the right variable to do it's job...

Why did the process function redefine the title variable instead of using the default one in the first place ?
Thanks,

Seren