Closed (fixed)
Project:
Bootstrap
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2014 at 21:08 UTC
Updated:
23 Nov 2015 at 13:34 UTC
Jump to comment: Most recent
Hello,
I'm using Bootstrap theme (a subtheme of bootstrap to be exact) and the clean markup module that is very helpful to have a better control over the block and panels markup.
However, there is a small incompatibility between bootstrap theme with that module.
It's related to the block title, clean markup allow to change the markup for a block title, but bootstrap override it because of that function
/**
* Implements hook_process_block().
*/
function bootstrap_process_block(&$variables) {
// Drupal 7 should use a $title variable instead of $block->subject.
$variables['title'] = $variables['block']->subject;
}
in block.vars.php
If that code is only here to keep the block title in a $title variable instrad of $block-subject, I think it could be removed as it can break some others modules that deals with block titles.
Regards,
Alex
Comments
Comment #1
meecect commentedYes, I experienced this too. Commenting out that line fixes it. Maybe it should just check to see if $variables['title'] is set first before overriding it?
Comment #2
ishmael-sanchez commentedWhat about a conditional to check for that module before setting that variable?
Comment #3
markhalliwellNo patch...
Comment #4
markhalliwellComment #6
markhalliwell