Remove Credits header when there are no credits

I would like to have the 'Credits' header *not* display in the Exhibits plugin if there are no credits in /plugin/ExhibitBuilder/views/public/exhibits/summary.php.


You could rewrite it like:

<?php if($credits = exhibit('credits')): ?>
<p><?php echo html_escape($credits); ?></p>
<?php endif; ?>

You can do the same thing for description, replace "credits" with "description."

Thanks, this is a good catch. We'll likely add this to the next version of Exhibit Builder.

Thanks, that does the trick. I did a similar thing for 'Geolocations' when there is no geolocation too.