From 84cb44c69833659fad30de073da5079ddfd5f6fb Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> Date: Mon, 27 Feb 2006 22:39:24 +0000 Subject: [PATCH] #51153, Boxes may be themed without a title; don't spit the header., patch by Morbus --- themes/bluemarine/box.tpl.php | 2 +- themes/engines/phptemplate/box.tpl.php | 4 +++- themes/pushbutton/box.tpl.php | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/bluemarine/box.tpl.php b/themes/bluemarine/box.tpl.php index 1e5280c3fbb4..a66bd27dfff5 100644 --- a/themes/bluemarine/box.tpl.php +++ b/themes/bluemarine/box.tpl.php @@ -1,5 +1,5 @@ <div class="box"> - <h2 class="title"><?php print $title; ?></h2> + <?php if ($title) { ?><h2 class="title"><?php print $title; ?></h2><?php } ?> <div class="content"><?php print $content; ?></div> </div> diff --git a/themes/engines/phptemplate/box.tpl.php b/themes/engines/phptemplate/box.tpl.php index e19ffba88ff6..56667e76753b 100644 --- a/themes/engines/phptemplate/box.tpl.php +++ b/themes/engines/phptemplate/box.tpl.php @@ -1,4 +1,6 @@ <div class="box"> - <h2><?php print $title ?></h2> + <?php if ($title): ?> + <h2 class="title"><?php print $title ?></h2> + <?php endif; ?> <div class="content"><?php print $content ?></div> </div> diff --git a/themes/pushbutton/box.tpl.php b/themes/pushbutton/box.tpl.php index 053c88f70116..cf48ffa130aa 100644 --- a/themes/pushbutton/box.tpl.php +++ b/themes/pushbutton/box.tpl.php @@ -1,4 +1,6 @@ <div class="box"> + <?php if ($title): ?> <h2 class="title"><?php print $title ?></h2> + <?php endif; ?> <div class="content"><?php print $content ?></div> </div> \ No newline at end of file -- GitLab