I've been trying to add an EXIF info section (similar to the lightbox-style EXIF window in the "Zenpage-default" theme) to the "cimi" theme. I've edited the image.php file, adding:
<link rel="stylesheet" href="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/thickbox.css" type="text/css" />
<script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/thickbox.js" type="text/javascript"></script>
AND
<?php
if (getImageEXIFData()) { echo "<div id=\"exif_link\">
".gettext("Image Info")."</div>";
printImageMetadata('', false);
}
?>
However, the EXIF data shows up just fine, but it is never hidden, as in the zenpage-default theme. I know I'm doing something wrong, but I'm not sure what. Can anyone help me determine how to add this EXIF info link functionality to the "cimi" theme. Thanks!
Comments
`
<?php if (!defined('WEBPATH')) die(); ?>
<?php include ('theme-functions.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php printGalleryTitle(); ?> | <?=getAlbumTitle();?> | <?=getImageTitle();?>
/zen.css" type="text/css" />
/js/thickbox.css" type="text/css" />
/js/thickbox.js" type="text/javascript">
<?php printPreloadScript(); ?>
<?php zenJavascript(); ?>
<?php printAdminToolbox(); ?>
" title="Gallery Index"><?=getGalleryTitle();?>
<?php if (hasNextImage()) { ?>
" title="Next Image">Next Image
<?php } else { ?>
<?php } ?>
<?php if (hasPrevImage()) { ?>
" title="Previous Image">Previous Image
<?php } else { ?>
<?php } ?>
" title="<?=getImageTitle();?>"> <?php printDefaultSizedImageAlt(getImageTitle()); ?>
<?php if (getImageDesc() !='') { ?>
<?printImageDesc(true); ?>
<?}?>
<?php<br />
if (getImageEXIFData()) {
echo "
printImageMetadata('', false);
}
?>
<? if (isset($error)) { ?>
There was an error submitting your comment. Name, a valid e-mail address, and a comment are required.
<? } else { ?>
<? }?>
" />
" />
<?php while (next_comment()): ?>
<?php printCommentAuthorEmail(); ?>
<?=getCommentDate();?>, <?=getCommentTime();?> <?php printEditCommentLink('Edit', ' | ', ''); ?>
<?=getCommentBody();?>
<?php endwhile; ?>
`
I appreciate the help you've both given thus far. Hopefully you can tell me what I'm doing wrong? THANKS!!!
`
Image Info
`
Note: I had to put "aa href" in the code above so you could see my full link code. I wasn't sure how to do it otherwise so this forum didn't parse it as an actual link...
`
/js/thickbox.css" type="text/css" />
/js/thickbox.js" type="text/javascript">
`
This is found on top of the default theme's image.php for example.
Still searching as to why I can never display my EXIF data in the hidden state...