Could anyone help me out how to rewrite this bit from template-functions?
I want the script to print ` echo getAlbumPlace(); ` as the `printAlbumPlace()`, but only if there actually IS anything written in the "Place" field. Otherwise, print nothing.
`function getAlbumPlace() {
global $_zp_current_album;
return $_zp_current_album->getPlace();
}
function printAlbumPlace() {
echo getAlbumPlace();
}`
It's because I want to use Zenphoto to show my travel photos, AND my portfolio - both pages which need a slightly different layout. So I want the ` echo getAlbumPlace(); ` only to show on the travel-photos pages. Reason why I include the h3 tag is because there's a background image involved, which otherwise would stay awkwardly empty, in the non-travelphoto pages!
Many thanks in advance