function ji_show_thumb() { /* $cw - crop width $ch - crop height $iw - image width $ih - image height */ $iw = $cw = THM_WIDTH; $ih = $ch = THM_HEIGHT; ?> <li> <a href="<?php echo getAlbumURL(); ?> " title="<?php echo getAlbumTitle(); ?> "><img src="<?php echo getCustomAlbumThumb(null, $iw, $ih, $cw, $ch); ?> " alt="<?php echo getAlbumTitle(); ?> " width="<?php echo $iw; ?> " height="<?php echo $ih; ?> " /> <span><?php echo getNumImages() . ' images'; if (getAlbumDesc() == '') { echo '<br /><br />[' . getAlbumTitle() . ']'; } else { echo '<br /><br />' . getAlbumDesc(); } ?> </span></a> </li> <?php }
function m9GetRSS($option) { global $_zp_current_album; $host = htmlentities($_SERVER['HTTP_HOST'], ENT_QUOTES, 'UTF-8'); $lang = getOption('locale'); switch ($option) { case 'gallery': return 'http://' . $host . WEBPATH . '/rss.php?lang=' . $lang; case 'album': return 'http://' . $host . WEBPATH . '/rss.php?albumtitle=' . urlencode(getAlbumTitle()) . '&albumname=' . urlencode($_zp_current_album->getFilename()) . '&lang=' . $lang; case 'collection': return 'http://' . $host . WEBPATH . '/rss.php?albumtitle=' . urlencode(getAlbumTitle()) . '&folder=' . urlencode($_zp_current_album->getFilename()) . '&lang=' . $lang; case 'comments': return 'http://' . $host . WEBPATH . '/rss-comments.php?lang=' . $lang; case 'comments-image': return 'http://' . $host . WEBPATH . '/rss-comments.php?id=' . $_zp_current_image->getID() . '&title=' . urlencode(getImageTitle()) . '&type=image&lang=' . $lang; case 'comments-album': return 'http://' . $host . WEBPATH . '/rss-comments.php?id=' . $_zp_current_album->getID() . '&title=' . urlencode(getAlbumTitle()) . '&type=album&lang=' . $lang; case 'albums-rss': return 'http://' . $host . WEBPATH . '/rss.php?lang=' . $lang . '&albumsmode'; } }
<br clear="all" /> <?php $x = 0; while (next_album()) { ?> <div class="album"> <div class="albumthumb"><a href="<?php echo getAlbumURL(); ?> " title="<?php echo getBareAlbumTitle(); ?> " rel="lightbox-album"> <?php printAlbumThumbImage(getAlbumTitle(), "reflect"); ?> </a> </div> <div class="albumtitle"><h1><a href="<?php echo getAlbumURL(); ?> " title="<?php echo getBareAlbumTitle(); ?> "> <?php printAlbumTitle(); ?> </a></h1>
// Slimbox does not do video if (is_null($firstImage)) { $lastImage = imageNumber(); $firstImage = $lastImage; } else { $lastImage++; } ?> <!-- Image thumbnails or no flash --> <div class="image"> <div class="imagethumb"> <?php $annotate = annotateImage(); if ($personality == 'Slimbox') { echo "<a href=\"" . htmlspecialchars(getCustomImageURL(550, null)) . "\""; echo "rel=\"lightbox[" . getAlbumTitle() . "]\"\n"; } else { echo '<a href="' . htmlspecialchars(getImageLinkURL()) . '"'; } echo " title=\"" . $annotate . "\">\n"; printImageThumb($annotate); echo "</a>"; ?> </div> </div> <?php } } echo '<div class="clearage"></div>'; if (function_exists('printSlideShowLink') && $personality != 'Smoothgallery') { echo "<p align=\"center\">";
/** * Prints the RDF trackback url information for external clients to autodiscover. * This code is invisible and within comments on the theme page. * * For theme usage. * */ function printTrackbackRDF() { global $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_current_album, $_zp_current_image; // check if Zenpage is there... if (getOption('zp_plugin_zenpage')) { if (is_NewsArticle()) { $trackback = $this->getTrackbackURL($_zp_current_zenpage_news); $title = getNewsTitle(); $permalink = $this->getPermalinkURL($_zp_current_zenpage_news, $host); } if (is_Pages()) { $trackback = $this->getTrackbackURL($_zp_current_zenpage_page); $title = getPageTitle(); $permalink = $this->getPermalinkURL($_zp_current_zenpage_page); } } if (in_context(ZP_ALBUM)) { $trackback = $this->getTrackbackURL($_zp_current_album); $title = getAlbumTitle(); $permalink = $this->getPermalinkURL($_zp_current_album); } if (in_context(ZP_IMAGE)) { $trackback = $this->getTrackbackURL($_zp_current_image); $title = getImageTitle(); $permalink = $this->getPermalinkURL($_zp_current_image); } echo $this->rdf_autodiscover("", $title, "", $permalink, $trackback, ""); }
/** * Returns the RSS link for use in the HTML HEAD * * @param string $option type of RSS: "Gallery" feed for the whole gallery * "Album" for only the album it is called from * "Collection" for the album it is called from and all of its subalbums * "Comments" for all comments * "Comments-image" for comments of only the image it is called from * "Comments-album" for comments of only the album it is called from * @param string $linktext title of the link * @param string $lang optional to display a feed link for a specific language. Enter the locale like "de_DE" (the locale must be installed on your Zenphoto to work of course). If empty the locale set in the admin option or the language selector (getOption('locale') is used. * * * @return string * @since 1.1 */ function getRSSHeaderLink($option, $linktext = '', $lang = '') { global $_zp_current_album; $host = htmlentities($_SERVER["HTTP_HOST"], ENT_QUOTES, 'UTF-8'); if (empty($lang)) { $lang = getOption("locale"); } switch ($option) { case "Gallery": return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss.php?lang=" . $lang . "\" />\n"; case "Album": return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss.php?albumtitle=" . urlencode(getAlbumTitle()) . "&albumname=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n"; case "Collection": return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss.php?albumtitle=" . urlencode(getAlbumTitle()) . "&folder=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n"; case "Comments": return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss-comments.php?lang=" . $lang . "\" />\n"; case "Comments-image": return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss-comments.php?id=" . getImageID() . "&title=" . urlencode(getImageTitle()) . "&type=image&lang=" . $lang . "\" />\n"; case "Comments-album": return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"http://" . $host . WEBPATH . "/rss-comments.php?id=" . getAlbumID() . "&title=" . urlencode(getAlbumTitle()) . "&type=album&lang=" . $lang . "\" />\n"; } }
<?php $albumsPerPage = getOption('albums_per_page'); $count = 1; while (next_album() && $count <= $albumsPerPage) { ?> <div class="image"> <a href="<?php echo getAlbumURL(); ?> " title="<?php if (getAlbumDesc() == "") { echo getAlbumTitle(); } else { echo getAlbumTitle() . ' - ' . getAlbumDesc(); } ?> "><img src="<?php echo getCustomAlbumThumb(0, 100, 100); ?> " alt="<?php echo 'Album ' . ($count + ($currentPage - 1) * $albumsPerPage) . ' of ' . getNumAlbums(); ?> " width="100" height="100"<?php if ($pc_AjaxFx) { echo ' onLoad="new Effect.Fade(this, {from: 1 , to: .5, queue: \'parallel\', duration: .3});"
$("a.thickbox").colorbox({ maxWidth:"98%", maxHeight:"98%", close: '<?php echo gettext("close"); ?> ' }); }); // ]]> --> </script> <?php } ?> <?php printRSSHeaderLink('Album', getAlbumTitle()); ?> </head> <body> <?php zp_apply_filter('theme_body_open'); ?> <div style="margin-top: 16px;"><!-- somehow the thickbox.css kills the top margin here that all other pages have... --> </div> <div id="main"> <div id="header"> <h1><?php echo getGalleryTitle(); ?> </h1>
?> "><?php printAlbumTitle(); ?> </a></h3> </div> <div id="album_box"> <div id="album_position"><a href="<?php echo getAlbumURL(); ?> " title="View album: <?php echo getAlbumTitle(); ?> "><?php printAlbumThumbImage(getAlbumTitle()); ?> </a></div> </div> <div class="albumdesc"> <?php printAlbumDate("Date Taken: "); ?> <p><?php printAlbumDesc(); ?> </p> </div> <p style="margin:0px;padding:0px;clear: both; "> </p> </div>
<?php require_once 'theme_functions.php'; define("AREA", GALLERY); TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . " slideshow", "slideshow"); include_once 'template.php';
?> " title="<?php printf(gettext('View album: %s'), sanitize(getAlbumTitle())); ?> "> <?php printCustomAlbumThumbImage(getAlbumTitle(), 85, NULL, NULL, 85, 85); ?> </a> <div class="albumdesc"> <h3> <a href="<?php echo getAlbumLinkURL(); ?> " title="<?php printf(gettext('View album: %s'), sanitize(getAlbumTitle())); ?> "> <?php printAlbumTitle(); ?> </a> </h3> <br /> <small><?php printAlbumDate(); ?> </small> </div> <p style="clear: both;"></p> </div>
<?php $f = $_REQUEST['f']; if (isset($f) && $f == 'xml') { require_once 'theme_functions.php'; include 'tiles/album/fetch-thumbs.php'; } else { require_once 'theme_functions.php'; MenuUtil::setArea(THEME_GALLERY); TileSet::init(getAlbumTitle(), "album"); include_once 'template.php'; }
<?php require_once 'theme_functions.php'; define("AREA", GALLERY); TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . ' : ' . getImageTitle(), "album"); include_once 'template.php';
/** * Returns the RSS link for use in the HTML HEAD * * @param string $option type of RSS: "Gallery" feed for the whole gallery * "Album" for only the album it is called from * "Collection" for the album it is called from and all of its subalbums * "Comments" for all comments * "Comments-image" for comments of only the image it is called from * "Comments-album" for comments of only the album it is called from * @param string $linktext title of the link * @param string $lang optional to display a feed link for a specific language. Enter the locale like "de_DE" (the locale must be installed on your Zenphoto to work of course). If empty the locale set in the admin option or the language selector (getOption('locale') is used. * * * @return string * @since 1.1 */ function getRSSHeaderLink($option, $linktext = '', $lang = '') { global $_zp_current_album; $host = html_encode($_SERVER["HTTP_HOST"]); $protocol = SERVER_PROTOCOL . '://'; if ($protocol == 'https_admin') { $protocol = 'https://'; } if (empty($lang)) { $lang = getOption("locale"); } switch ($option) { case "Gallery": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&lang=" . $lang . "\" />\n"; } case "Album": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&albumname=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n"; } case "Collection": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&folder=" . urlencode($_zp_current_album->getFolder()) . "&lang=" . $lang . "\" />\n"; } case "Comments": if (getOption('RSS_comments')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&lang=" . $lang . "\" />\n"; } case "Comments-image": if (getOption('RSS_comments')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&id=" . getImageID() . "&title=" . urlencode(getImageTitle()) . "&type=image&lang=" . $lang . "\" />\n"; } case "Comments-album": if (getOption('RSS_comments')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&id=" . getAlbumID() . "&title=" . urlencode(getAlbumTitle()) . "&type=album&lang=" . $lang . "\" />\n"; } case "AlbumsRSS": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss-comments&lang=" . $lang . "&albumsmode\" />\n"; } } }
/** * Places Google Checkout Options on your page. * * @param array $pricelist optional array of specific pricing for the image. */ function googleCheckout($pricelist = NULL) { if (!is_array($pricelist)) { $pricelist = GoogleCheckoutPricelistFromString(getOption('GoogleCheckout_pricelist')); } ?> <div id="GoogleCheckout" class="product"> <input type="hidden" class="product-image" value="<?php echo getImageThumb(); ?> " /> <input type="hidden" class="product-title" value="Album: <?php echo getAlbumTitle(); ?> Photo: <?php echo getImageTitle(); ?> " /> <input type="hidden" class="product-shipping" value="<?php echo getOption('googleCheckout_ship_cost'); ?> " /> Size/Finish: <select class="product-attr-sizefinish"> <option googlecart-set-product-price=""></option> <?php foreach ($pricelist as $key => $price) { ?> <option googlecart-set-product-price="<?php echo $price; ?> "><?php echo $key; ?> </option> <?php } ?> </select><br /> Price: <span class="product-price">Choose Size/Finish</span><br /> How Many: <input type="text" class="googlecart-quantity" value="1" style="width:20px;" /> <span class="googlecart-add-button"></span> </div> <?php }
/** * Prints an encapsulated title of the current album. * If you are logged in you can click on this to modify the title on the fly. * * @author Ozh */ function printAlbumTitle() { echo html_encodeTagged(getAlbumTitle()); }
/** * @deprecated * @since 1.4.2 */ function getRSSHeaderLink($option, $linktext = '', $lang = '') { deprecated_functions::notify(gettext('Use the template function <code>getRSSLink()</code> instead. NOTE: While this function gets a full html link <code>getRSSLink()</code> just returns the URL.')); global $_zp_current_album; $host = html_encode($_SERVER["HTTP_HOST"]); $protocol = PROTOCOL . '://'; if (empty($lang)) { $lang = getOption("locale"); } switch ($option) { case "Gallery": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&lang=" . $lang . "\" />\n"; } case "Album": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&albumname=" . urlencode($_zp_current_album->getFileName()) . "&lang=" . $lang . "\" />\n"; } case "Collection": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss&albumtitle=" . urlencode(getAlbumTitle()) . "&folder=" . urlencode($_zp_current_album->getFileName()) . "&lang=" . $lang . "\" />\n"; } case "Comments": if (getOption('RSS_comments')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&lang=" . $lang . "\" />\n"; } case "Comments-image": if (getOption('RSS_comments')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&id=" . getImageID() . "&title=" . urlencode(getImageTitle()) . "&type=image&lang=" . $lang . "\" />\n"; } case "Comments-album": if (getOption('RSS_comments')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&id=" . getAlbumID() . "&title=" . urlencode(getAlbumTitle()) . "&type=album&lang=" . $lang . "\" />\n"; } case "AlbumsRSS": if (getOption('RSS_album_image')) { return "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode($linktext) . "\" href=\"" . $protocol . $host . WEBPATH . "/index.php?rss=comments&lang=" . $lang . "&albumsmode\" />\n"; } } }
<a title="<?php echo html_encode(getAlbumDesc()); ?> " href="<?php echo htmlspecialchars(getAlbumURL()); ?> "> <img src="<?php echo getCustomAlbumThumb(298, NULL, NULL, 298, 178, NULL, NULL, false); ?> " alt="<?php echo html_encode(getAlbumTitle() . ' (' . getAlbumDate(getOption('date_format')) . ')'); ?> " /> <span><?php echo getAlbumTitle() . '<br />(' . getAlbumDate(getOption('date_format')) . ')'; ?> </span> </a> </li> <?php } ?> </ul> </div> <div id="rightbox"> <div id="login"> <?php if (!zp_loggedin() && function_exists('printUserLogin_out')) { printUserLogin_out(); }
echo getCustomImageURL(NULL, 298, 187, 298, 187, NULL, NULL, true); ?> " alt="<?php echo html_encode(getImageTitle()); ?> " /> </a> </li> <?php } ?> </ul> <div class="data"> <?php if (getAlbumTitle()) { echo '<div class="c"><h4 class="box title">' . getAlbumTitle() . '</h4></div>'; } ?> <?php if (getAlbumDesc()) { echo '<div class="c"><div class="box desc">' . getAlbumDesc() . '</div></div>'; } ?> <?php if (getAlbumDate()) { echo '<div class="c"><small class="box date">' . getAlbumDate('%d.%m.%y %H:%M') . '</small></div>'; } ?> </div> </div> <?php
// force UTF-8 Ø if (!defined('WEBPATH')) { die; } ?> <!DOCTYPE html> <html> <head> <title><?php printGalleryTitle(); ?> | <?php echo getAlbumTitle(); ?> | <?php echo getImageTitle(); ?> </title> <meta http-equiv="content-type" content="text/html; charset=<?php echo LOCAL_CHARSET; ?> " /> <link rel="stylesheet" href="<?php echo $_zp_themeroot; ?> /zen.css" type="text/css" /> <?php zp_apply_filter('theme_head');
echo gettext('Gallery Index'); ?> "><?php echo getGalleryTitle(); ?> </a> » <?php printParentBreadcrumb("", " » ", " » "); ?> <a href="<?php echo html_encode(getAlbumLinkURL()); ?> " title="<?php gettext('Album Thumbnails'); ?> "><?php echo html_encode(getAlbumTitle()); ?> </a> » <?php printImageTitle(true); ?> </h2> <?php printCodeblock(1); ?> <div id="image_container"> <?php $fullimage = getFullImageURL(); if (!empty($fullimage)) { ?> <a href="<?php echo html_encode($fullimage);
?> <div id="albums"> <?php setOption('albums_per_page', 12, false); while (next_album()) { ?> <div class="album"> <a class="albumthumb" href="<?php echo getAlbumURL(); ?> " title="<?php printf(gettext('View album: %s'), getBareAlbumTitle()); ?> "> <?php printCustomAlbumThumbImage(getAlbumTitle(), 85, NULL, NULL, 85, 85); ?> </a> <div class="albumdesc"> <h3> <a href="<?php echo getAlbumURL(); ?> " title="<?php printf(gettext('View album: %s'), getBareAlbumTitle()); ?> "> <?php printAlbumTitle(); ?> </a>
<?php require_once 'theme_functions.php'; TileSet::init(getAlbumTitle(), "pages"); include_once 'template.php';