<?php //TODO push those global variables under zin namespace echo "var isAlbumPage = " . (AlbumUtil::isAlbumPage() ? "true" : "false") . ";\n" . "var maxImageIndex = " . AlbumUtil::getMaxImageIndex() . ", hasNextPage = " . (hasNextPage() ? "true" : "false") . ", hasPrevPage = " . (hasPrevPage() ? "true" : "false") . ", albumsPerPage = " . getOption('albums_per_page') . ", imagesPerPage = " . getOption('images_per_page') . ", enableFancybox = " . (getOption('simplicity2_enable_fancybox') ? 'true' : 'false') . ", enableUpDownKeys = " . (getOption('simplicity2_nav_enable_updown') ? 'true' : 'false') . ";\n"; ?>
" id="img-<?php echo $u; ?> " src="<?php echo getImageThumb(); ?> " width="95" height="95" /> </div> <?php $u++; } AlbumUtil::setMaxImageIndex($u > 0 ? $u : 0); ?> <?php //if ( $imageCount > 0 ) : while ($u < getOption('images_per_page')) { ?> <div class="image-thumb left opa20 <?php echo $u % 2 == 0 ? 'even' : 'odd'; ?> "> <img index="<?php echo $u; ?> " id="img-<?php
<?php global $_zp_themeroot, $_zp_current_album; $albumCount = count($_zp_current_album->getSubalbums()); $isAlbumPage = $albumCount > 0; ?> <div id="thumbs"> <div id="thumbs-navigation" <?php echo hasNextPage() ? "next='" . getNextPageUrl() . "'" : ""; echo hasPrevPage() ? "prev='" . getPrevPageUrl() . "'" : ""; ?> > <div id='bar'> <div class="nav-cell filler"><span> </span></div> <?php AlbumUtil::printNavigation($prevText, $nextText, false, 7, true); ?> <div class="nav-cell filler end"><span> </span></div> </div> </div> <?php if ($isAlbumPage) { $u = 0; while (next_album()) { $a = $_zp_current_album; $thumb = $a->getAlbumThumbImage(); $title = $a->getTitle(); $desc = $a->getDesc(); $customThumb = $thumb->getCustomImage(NULL, 202, 56, 202, 56, NULL, NULL, false); $url = getAlbumURL(); echo "\t<div class='thumb' index='{$u}' title='{$title}' location='{$customThumb}' url='{$url}'><description>{$desc}</description></div>\n";
<?php global $_zp_current_image; require_once 'theme_functions.php'; AlbumUtil::setCurrentAlbumPage(); $_highlight_image = $_zp_current_image->filename; include 'album.php';
<div> <div id="page-body" class="home"> <div id="site-description" class="opa30"> <?php echo getOption('simplicity2_main_page_text'); ?> </div> <div id="latest-stuff" class="opa60"> <div id="latest-header" class="shadow"><?php echo gettext("Previously on") . " " . "<a style='cursor:default;'>" . getGalleryTitle() . "</a>..."; ?> </div> <div id="images" class="left"> <?php $images = AlbumUtil::getLatestImages(getOption('simplicity2_home_images_number')); foreach ($images as $img) { $thumb = $img->getCustomImage(NULL, 105, 105, 105, 105, NULL, NULL, false); $link = $img->getLink(); echo "<div class='thumb'><a href='{$link}'><img src='{$thumb}' width='105' height='105'/></a></div>"; } ?> </div> <div id="latest-news" class="left"> <?php $n = getOption('simplicity2_home_news_number'); if (!isset($n) || !is_numeric($n)) { $n = 2; } $news = getLatestNews($n);
echo PersonalityUtil::getPersonaIconURL("rss", "{$_zp_themeroot}/resources/images/rss.png"); ?> " width="64" height="64"/> </a> <?php PersonalityUtil::printPersonalityIconSwitcher('rss', 'gallery-rss-icon'); ?> </div> <div class="text left"> </div> <div class="clear"></div> </div> <?php AlbumUtil::printCollage(); ?> <div> <div id="page-body"> <div id="site-description" class="gallery opa30"> <?php printGalleryDesc(); ?> </div> </div> </div> <div id="content-filler" class="gallery opa20" <?php echo getOption('simplicity2_printcollage') ? "" : "style='background-color: transparent'";
" object_id="<?php echo $_zp_current_image->id; ?> " src="<?php echo getImageThumb(); ?> " width="95" height="95" /> </div> <?php $u++; } AlbumUtil::setMaxImageIndex($u - 1); ?> <?php while ($u < getOption('images_per_page')) { ?> <div class="image-thumb left opa20 <?php echo $u % 2 == 0 ? 'even' : 'odd'; ?> "> <img index="<?php echo $u; ?> " id="img-<?php echo $u; ?>
static function setAlbumPage($i) { self::$theme_is_album_page = $i; }