ZenphotoThe simpler media website CMS
I'm using zpbootstrap, and have pages displaying sub-album thumbnails. The Titles display underneath the thumbnails, but I also wish to display the Descriptions. Can I do this? (Sorry if I've missed the answer in the User Guide).
Comments
You will need to modify the theme. Within the
next_albumloop on a theme'salbum.phpyou can use any function that also works for the album itself. Examples in the included basic theme and on the demo theme linked from the theming tutorial.I see different possibilities and I'm not sure which is best. Try this:
In inc_print_image_thumb.php find the first occurrence of
<div class="hidden caption">(line 31) and remove thehiddenclassso it becomes
<div class="caption">.Then at the bottom of the page find:
<a href="<?php echo html_encode(getImageURL()); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>"> <h5><?php printBareImageTitle(); ?></h5> </a>and change it into a conditional:
<a href="<?php echo html_encode(getImageURL()); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>"> <?php if ( !isImagePhoto() ) { ?> <h5><?php printBareImageTitle(); ?></h5> <?php } ?> </a>This is not thoroughly tested and may have unwanted side effects.