Example #1
0
" title="Gallery Index"><?php 
echo getGalleryTitle();
?>
</a> | <?php 
printParentBreadcrumb();
printAlbumBreadcrumb();
?>
 | <?php 
printImageTitle();
?>
</span></h2>
	</div>

<div id="imgnav_tlg">
		<?php 
if (hasPrevImage()) {
    ?>
		<div style="float:left;">
		<a href="<?php 
    echo getPrevImageURL();
    ?>
">&laquo; previous photo</a>
		</div>
		<?php 
}
if (hasNextImage()) {
    ?>
		<div style="float:right;">
		<a href="<?php 
    echo getNextImageURL();
    ?>
Example #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 
}
Example #3
0
?>
</h2>
	</div>

	<div class="imgnav">
		<?php 
if (hasPrevImage()) {
    ?>
		<a href="<?php 
    echo getPrevImageURL();
    ?>
" title="Previous Image">&laquo; prev</a>

		<?php 
}
if (hasPrevImage() && hasNextImage()) {
    ?>
		|

		<?php 
}
if (hasNextImage()) {
    ?>
		<a href="<?php 
    echo getNextImageURL();
    ?>
" title="Next Image">next &raquo;</a>
		<?php 
}
?>
	</div>
/**
 * @deprecated
 */
function printPreloadScript()
{
    deprecated_function_notify(gettext('printPreloadScript is deprecated. It is a helper for a specific theme and should be placed within that theme\'s "functions.php" script.'));
    global $_zp_current_image;
    $size = getOption('image_size');
    if (hasNextImage() || hasPrevImage()) {
        echo "<script type=\"text/javascript\">\n// <!-- <![CDATA[\n";
        if (hasNextImage()) {
            $nextimg = $_zp_current_image->getNextImage();
            echo "  nextimg = new Image();\n  nextimg.src = \"" . $nextimg->getSizedImage($size) . "\";\n";
        }
        if (hasPrevImage()) {
            $previmg = $_zp_current_image->getPrevImage();
            echo "  previmg = new Image();\n  previmg.src = \"" . $previmg->getSizedImage($size) . "\";\n";
        }
        echo "</script>\n\\ ]]> -->\n";
    }
}
/**
 * Prints out the javascript to preload the next and previous images
 *
 */
function printPreloadScript()
{
    global $_zp_current_image;
    $size = getOption('image_size');
    if (hasNextImage() || hasPrevImage()) {
        echo "<script type=\"text/javascript\">\n";
        if (hasNextImage()) {
            $nextimg = $_zp_current_image->getNextImage();
            echo "  nextimg = new Image();\n  nextimg.src = \"" . $nextimg->getSizedImage($size) . "\";\n";
        }
        if (hasPrevImage()) {
            $previmg = $_zp_current_image->getPrevImage();
            echo "  previmg = new Image();\n  previmg.src = \"" . $previmg->getSizedImage($size) . "\";\n";
        }
        echo "</script>\n\n";
    }
}