I've been using Drupal for a while now but am just starting to get into PHP. So please excuse me if I ask my question badly. :)
The question is: How do I make the Block Title only appear if there is more than one block visible?
I am developing a site for some friends and I'm using HEAD (4.7's CVS) because I've been dieing to test drive it and decided this project would allow that. http://www.dirigobaseball.org/
This site will be mostly static for now. Only a few registered users. There is only one block visible to the Anonymous User. But obviously, the Navigation Block will appear once a user is logged in. And there is one Book that will display the Book Block when the Book is being viewed. (http://www.dirigobaseball.org/miscellaneous) For a total of three blocks possible, depending on what you are viewing or if you are logged in or not.
Currently, I have the Block Titles only visible if a user is logged in. Using a custom block.tpl.php and the following code:
<div class=" <?php print "block block-$block->module" ?> " id=" <?php print "block-$block->module-$block->delta"; ?> ">
<?php global $user;global $user;?>
<?php if ($user->uid): ?>
<h2> <?php print $block->subject ?> </h2>
<?php endif ?>
<div class="content"> <?php print $block->content ?> </div>
</div>
But what I want is for all the Titles to show up if more than one block is visible. Or if the user is logged in or if the Book Block is visible.