Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
hope i'm not wrong here:
I saw that page.tpl.php have a conditional printing of "content-header" div.
The problem is that its conditioned on any content in $breadcrumb or $title or $help or $messages while it doesn't do anything later with $title, not does it seem to belong here in any case. I think this is a simple bug and the if conditional should be (around line 127 - my page.tpl.php is modified):
<?php if ($breadcrumb or $help or $messages):
?>
Please correct me if I'm wrong.
If you need me to submit a patch just let me know.
Boaz.
Comments
Comment #1
boaz_r CreditAttribution: boaz_r commentedok, just to fix myself:
there is a point in checking $title cause the check determines several div's faith.
Still, I've added right the line with "
if ($help or $messages):
, with a matching closing "endif" statement, to avoid printing of empty div that is used for messages and "help" text (div with id="content-info").again, patch is providable by me.
Comment #2
tombigel CreditAttribution: tombigel commentedI think the editor cut off some of the text in your comment here.
You are right about these conditions to be a bit ugly, I need to find a 'prettier' way to print this box.
They are legacy from Zen or whatever theme I copied the idea from for Tendu 1.0
Comment #3
alonpeer CreditAttribution: alonpeer commentedIt seems that this was fixed in 6.x-2.x-dev. Am I right?