Ejemplo n.º 1
0
if (hasPrevImage()) {
    ?>
							<div id="prevalbum" class="slides">
								<a href="<?php 
    echo html_encode(getPrevImageURL());
    ?>
" title="<?php 
    echo gettext('Previous image');
    ?>
">
									<h2><?php 
    echo gettext('« Previous');
    ?>
</h2>
									<img src="<?php 
    echo html_encode(pathurlencode(getPrevImageThumb()));
    ?>
" />
								</a>
							</div>
							<?php 
}
?>
						<p><?php 
printImageDesc();
?>
</p>
						<?php 
printTags('links', gettext('Tags: '), NULL, '');
?>
						<?php 
Ejemplo n.º 2
0
function zp_side_bar()
{
    ?>
	<div id="sidebar">
		<?php 
    //-------------If you are in the Image Page
    if (in_context(ZP_IMAGE)) {
        ?>
				<div class="imgnav">
					<?php 
        if (hasPrevImage()) {
            ?>
					<div class="imgprevious"><a href="<?php 
            echo getPrevImageURL();
            ?>
" title="Previous Image"><img src="<?php 
            echo getPrevImageThumb();
            ?>
" /><br /><small>&laquo; prev  |</small></a></div>
					<?php 
        }
        if (hasNextImage()) {
            ?>
					<div class="imgnext"><a href="<?php 
            echo getNextImageURL();
            ?>
" title="Next Image"><img src="<?php 
            echo getNextImageThumb();
            ?>
" /><br /><small>| next &raquo;</small></a></div>
					<?php 
        }
        ?>
				</div> 
		<div id="sbinfo">
			<b>Album Name:</b> <?php 
        printAlbumTitle(true);
        ?>
<br />
			<b>Number of Photos:</b> <?php 
        echo getNumImages();
        ?>
<br />
			<b>Album Date:</b> <?php 
        printAlbumDate($before = "Date: ", $format = "%F");
        ?>
<br />
			<b>Album Description:</b> <?php 
        printAlbumDesc(true);
        ?>
<br />
			<b>Image Name:</b> <?php 
        echo getImageTitle();
        ?>
<br />
			<b>Image Description:</b> <?php 
        printImageDesc(true);
        ?>
<br />
		</div>
			<?php 
        //--------------- If you are in the Album Page
    } else {
        if (in_context(ZP_ALBUM)) {
            ?>
		<b>Album Name:</b> <?php 
            printAlbumTitle(true);
            ?>
<br />
		<b>Number of Pictures:</b> <?php 
            echo getNumImages();
            ?>
<br />
		<b>Album Date:</b> <?php 
            printAlbumDate($before = "Date: ", $format = "%F");
            ?>
<br /> 
		<b>Album Description:</b> <?php 
            printAlbumDesc(true);
            ?>
<br />		
<?php 
            //--------------- If you are in the Index Page
        } else {
            if (in_context(ZP_INDEX)) {
            }
        }
    }
    ?>

</div>
<?php 
}
Ejemplo n.º 3
0
}
if (hasPrevImage()) {
    ?>
					<div id="prev" class="slides">
						<h2><?php 
    echo gettext('&laquo; Previous');
    ?>
</h2>
						<a href="<?php 
    echo html_encode(getPrevImageURL());
    ?>
" title="<?php 
    echo gettext('Previous image');
    ?>
"><img src="<?php 
    echo html_encode(getPrevImageThumb());
    ?>
" /></a>
					</div>
					<?php 
}
?>
				<p><?php 
printImageDesc(true);
?>
</p>
				<?php 
printTags('links', gettext('Tags: '), NULL, '');
?>
				<?php 
if (getImageMetaData()) {