<?php if (hasPrevImage()) { ?> <div style="float:left;"> <a href="<?php echo getPrevImageURL(); ?> ">« previous photo</a> </div> <?php } if (hasNextImage()) { ?> <div style="float:right;"> <a href="<?php echo getNextImageURL(); ?> ">next photo »</a> </div> <?php } ?> <p style="margin:0px;padding:0px;clear: both; "> </p> </div> <div id="image"> <a class="gallery" href="<?php
?> <span>Prev</span><?php } ?> </div> <div id="next" <?php if (hasNextImage()) { echo 'class="active"'; } ?> > <?php if (hasNextImage()) { ?> <a href="<?php echo htmlspecialchars(getNextImageURL()); ?> ">Next</a><?php } else { ?> <span>Next</span><?php } ?> </div> <?php } ?> </div> <?php commentFormDisplay(); ?>
echo html_encode(getPrevImageURL()); ?> " title="<?php echo gettext("Previous Image"); ?> ">« <?php echo gettext("prev"); ?> </a><?php } ?> <?php if (hasNextImage()) { ?> <a class="image-next" href="<?php echo html_encode(getNextImageURL()); ?> " title="<?php echo gettext("Next Image"); ?> "><?php echo gettext("next"); ?> »</a><?php } ?> <span title="<?php echo gettext('Image Number/Total images'); ?> "><?php echo imageNumber() . '/' . getNumImages();
/** * Places a Paypal button on your form * * @param array $pricelist optional array of specific pricing for the image. * @param bool $pricelistlink set to true to include link for exposing pricelist * @param string $text The text to place for the link (defaults to "Price List") * @param string $textTag HTML tag for the link text. E.g. h3, ... * @param string $idtag the division ID for the price list. (NB: a div named $id appended with "_data" is */ function zenPaypal($pricelist = NULL, $pricelistlink = false, $text = NULL, $textTag = "l1", $idtag = "zenPaypalPricelist") { if (!is_array($pricelist)) { $pricelist = zenPaypalPricelistFromString(getOption('zenPaypal_pricelist')); } ?> <script language="javascript"> function paypalCalculateOrder(myform) { <?php $sizes = array(); $media = array(); foreach ($pricelist as $key => $price) { $itemparts = explode(':', $key); $media[] = $itemparts[1]; $sizes[] = $itemparts[0]; echo 'if (myform.os0.value == "' . $itemparts[0] . '" && myform.os1.value == "' . $itemparts[1] . '") {' . "\n"; echo 'myform.amount.value = ' . $price . ';' . "\n"; echo 'myform.item_name.value = "' . getImageTitle() . ' - Photo Size ' . $itemparts[0] . ' - ' . $itemparts[1] . '";' . "\n"; echo '}' . "\n"; } ?> } </script> <?php $locale = getOption('locale'); if (empty($locale)) { $locale = 'en_US'; } ?> <div id="BuyNow"> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" name="myform"> <input type="hidden" name="on0" value="Size"> <label>Size</label> <select name="os0"> <?php $media = array_unique($media); $sizes = array_unique($sizes); foreach ($sizes as $size) { echo '<option value="' . $size . '" selected>' . $size . "\n"; } ?> </select> <input type="hidden" name="on1" value="Color"> <label><?php echo gettext("Stock"); ?> </label> <select name="os1"> <?php foreach ($media as $paper) { echo '<option value="' . $paper . '" selected>' . $paper . "\n"; } ?> </select> <input type="image" src="https://www.paypal.com/<?php echo $locale; ?> /i/btn/x-click-butcc.gif" border="0" name="submit" onClick="paypalCalculateOrder(this.form)" alt=<?php gettext("Make payments with PayPal - it's fast, free and secure!"); ?> class="buynow_button"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="<?php echo getOption('zenPaypal_userid'); ?> "> <input type="hidden" name="item_name" value="Options Change Amount"> <input type="hidden" name="amount" value="1.00"> <input type="hidden" name="shipping" value="<?php echo getOption('zenPaypal_ship_cost'); ?> "> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="<?php echo getOption('zenPaypal_currency'); ?> "> <input type="hidden" name="return" value="<?php echo 'http://' . $_SERVER['SERVER_NAME'] . htmlspecialchars(getNextImageURL()); ?> "> <input type="hidden" name="cancel_return" value="<?php echo 'http://' . $_SERVER['SERVER_NAME'] . htmlspecialchars(getImageLinkURL()); ?> "> </form> <?php if ($pricelistlink) { zenPaypalPrintPricelist($pricelistlink, $text, $textTag, $idtag); } ?> </div> <?php }
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>« 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 »</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 }
<div class="imgprevious"> <?php global $_zp_current_image; if (hasPrevImage()) { $image = $_zp_current_image->getPrevImage(); echo '<a href="' . html_encode(getPrevImageURL()) . '" title="' . html_encode($image->getTitle()) . '">« ' . gettext('prev') . '</a>'; } else { echo '<div class="imgdisabledlink">« ' . gettext('prev') . '</div>'; } ?> </div> <div class="imgnext"> <?php if (hasNextImage()) { $image = $_zp_current_image->getNextImage(); echo '<a href="' . html_encode(getNextImageURL()) . '" title="' . html_encode($image->getTitle()) . '">' . gettext('next') . ' »</a>'; } else { echo '<div class="imgdisabledlink">' . gettext('next') . ' »</div>'; } ?> </div> </div> <!-- Logo --> <div id="logo2"> <?php printLogo(); ?> </div> </div>
<div class="imgprevious"> <?php global $_zp_current_image; if (hasPrevImage()) { $image = $_zp_current_image->getPrevImage(); echo '<a href="' . htmlspecialchars(getPrevImageURL()) . '" title="' . html_encode($image->getTitle()) . '">« ' . gettext('prev') . '</a>'; } else { echo '<div class="imgdisabledlink">« ' . gettext('prev') . '</div>'; } ?> </div> <div class="imgnext"> <?php if (hasNextImage()) { $image = $_zp_current_image->getNextImage(); echo '<a href="' . htmlspecialchars(getNextImageURL()) . '" title="' . html_encode($image->getTitle()) . '">' . gettext('next') . ' »</a>'; } else { echo '<div class="imgdisabledlink">' . gettext('next') . ' »</div>'; } ?> </div> </div> <!-- Logo --> <div id="logo2"> <?php printLogo(); ?> </div> </div>
<?php } else { ?> <span class="button prev-link"><i class="fa fa-caret-left"></i> <?php echo gettext("Prev Image"); ?> </span> <?php } ?> <?php if (hasNextImage()) { ?> <a class="button next-link" href="<?php echo html_encode(getNextImageURL()) . '#view'; ?> " title="<?php echo gettext("Next Image"); ?> "><?php echo gettext("Next Image"); ?> <i class="fa fa-caret-right"></i></a> <?php } else { ?> <span class="button next-link"><?php echo gettext("Next Image"); ?> <i class="fa fa-caret-right"></i></span>
if (hasPrevImage()) { $link = getPrevImageURL(); } else { $link = "#"; } echo "<li><a href=\"{$link}\" title=\"Previous Image\">«</a></li>\n"; /* for ($i = 1; $i <= $totalPages; $i++) { echo ($i == $currentPage)? '<li class="current">' : '<li>'; if ($i < 10) { $page = '0' . $i; } else { $page = $i; } printLinkHTML(getPageURL($i), $page, "Page $page"); echo "</li>\n"; } */ if (hasNextImage()) { $link = getNextImageURL(); } else { $link = "#"; } echo "<li><a href=\"{$link}\" title=\"Next Image\">»</a></li>"; ?> </ul> </div> <div id="imageList"> <?php printCustomSizedImage(getImageTitle(), 320); ?> </div> <div id="text">
<div id="fullplate-navigation"> <ul> <?php if (hasPrevImage()) { echo "\t\t" . '<li id="previous"><a href="' . getPrevImageURL() . '" title="Previous Image"><img src="' . $_zp_themeroot . '/images/arrow_left.png" width="16" height="16" alt="left ' . 'arrow" /></a></li>' . "\n"; } else { echo "\t\t" . '<li> </li>' . "\n"; } if (in_context(ZP_IMAGE)) { echo "\t\t" . '<li><a class="gallery" href="' . getFullImageURL() . '" title="Full Size Image"><img src="' . $_zp_themeroot . '/images/arrow_out.png" width="16" height="16" alt="arrows ' . 'pointing out" /></a></li>' . "\n"; } else { echo "\t\t" . '<li> </li>' . "\n"; } if (hasNextImage()) { echo "\t\t" . '<li id="next"><a href="' . getNextImageURL() . '" title="Next Image"><img src="' . $_zp_themeroot . '/images/arrow_right.png" width="16" height="16" alt="right ' . 'arrow" /></a></li>' . "\n"; } else { echo "\t\t" . '<li> </li>' . "\n"; } ?> </ul> </div> <?php if (function_exists('printCommentForm')) { printCommentForm(); } ?>