summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 22:39:24 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 22:39:24 +0000
commit84cb44c69833659fad30de073da5079ddfd5f6fb (patch)
tree5f079da7013e018f7b4ce96d1f718c332bf771ca /themes
parent951ed45e276ae26a290db209a4e91a8b22193acd (diff)
downloadbrdo-84cb44c69833659fad30de073da5079ddfd5f6fb.tar.gz
brdo-84cb44c69833659fad30de073da5079ddfd5f6fb.tar.bz2
#51153, Boxes may be themed without a title; don't spit the header., patch by Morbus
Diffstat (limited to 'themes')
-rw-r--r--themes/bluemarine/box.tpl.php2
-rw-r--r--themes/engines/phptemplate/box.tpl.php4
-rw-r--r--themes/pushbutton/box.tpl.php2
3 files changed, 6 insertions, 2 deletions
diff --git a/themes/bluemarine/box.tpl.php b/themes/bluemarine/box.tpl.php
index 1e5280c3f..a66bd27df 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 e19ffba88..56667e767 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 053c88f70..cf48ffa13 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