It's a lot of code, but here is my index.php-code. So you could see, what I did:
<?php
if (!defined('WEBPATH')) die();
$firstPageImages = normalizeColumns(3, 6);
setOption('images_per_page', getOption('images_per_page') - 1, false);
if ($firstPageImages > 0) { $firstPageImages = $firstPageImages - 1; }
setOption('thumb_crop_width', 89, false);
setOption('thumb_crop_height', 67, false);
global $_zp_current_image;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php printGalleryTitle() . " > " . getAlbumTitle();?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="<?php echo $_zp_themeroot ?>/css/master.css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); zenJavascript(); ?>
</head>
<body class="index">
<?php echo getGalleryTitle(); ?><?php if (getOption('Allow_search')) { printSearchForm(''); } ?>
<div id="content">
<div class="galleries">
<h2><?php echo gettext('Foto-Alben'); ?></h2>
[list]
<?php $counter = 0; while (next_album() and $counter < 6): ?>
<li class="gal">
<h3><a>" title="<?php echo gettext("Album ansehen: "); echo getAlbumTitle(); ?>"><?php printAlbumTitle(); ?></a></h3>
<a>" title="<?php echo gettext("Album ansehen: "); echo getAlbumTitle();?>" class="img"><?php printCustomAlbumThumbImage(getAlbumTitle(), null, 210, 59, 210, 59); ?></a>
<p>
<div class="date"><?php printAlbumDate(); ?></div>
<?php if ($counter == 2) {echo "[/list]
[list]";}; $counter++; endwhile; ?>
[/list]
<p class="mainbutton"><a>" class="btn"><img src="<?php echo $_zp_themeroot ?>/img/btn_gallery_archive.gif" width="118" height="21" alt="<?php echo gettext(' Gallerie Archiv'); ?>" /></a></p>
</div>
<div id="secondary">
<div class="module">
<h2>Statement</h2>
<p><?php echo getOption('Gallery_description'); ?></p>
</div>
<div class="module">
<?php $selector = getOption('Mini_slide_selector'); ?>
<ul id="randomlist">
<?php
switch($selector) {
case 'Recent images':
if (function_exists('getImageStatistic')) {
echo '<h2>Recent images</h2>';
$images = getImageStatistic(6, "latest");
foreach ($images as $image) {
echo "
[*]<table><tr><td>\n";
$imageURL = getURL($image);
echo '<a href="'.$imageURL.'" title="'.gettext("Bild zeigen: ").
$image->getTitle() . '"><img src="' .
htmlspecialchars($image->getCustomImage(null, 44.5, 33.5, null, null, null, null, true)) .
'" width="44.5" height="33.5" alt="' . $image->getTitle() . "\"/>\n";
echo "</td></tr></table>
\n";
}
break;
}
case 'Random images':
echo '<h2>Zufallsbilder</h2>';
for ($i=1; $i<=3; $i++) {
echo "
[*]<table><tr><td>\n";
$randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo 'getTitle() . '">' .
'<img src="' . htmlspecialchars($randomImage->getCustomImage(null, 44.5, 33.5, null, null, null, null, true)) .
'" width="44.5" height="33.5" alt="'.$randomImage->getTitle().'"';
echo "/></td></tr></table>
\n";
}
break;
}
?>
</div>
<div class="module">
<h2>Status</h2>
<table cellspacing="0" class="gallerydata">
<tr>
<th><a>"><?php echo gettext('Hauptalben'); ?></a></th>
<td><?php $albumNumber = getNumAlbums(); echo $albumNumber ?></td>
<td></td>
</tr>
<tr>
<th><?php echo gettext('Fotos'); ?></th>
<td><?php $photosArray = query_single_row("SELECT count(*) FROM ".prefix('images')); $photosNumber = array_shift($photosArray); echo $photosNumber ?></td>
<td><?php printRSSLink('Gallery','','','',true,'i'); ?></td>
</tr>
<?php if (getOption('Allow_comments')) { ?>
<tr>
<th><?php echo gettext('Kommentare'); ?></th>
<td><?php $commentsArray = query_single_row("SELECT count(*) FROM ".prefix('comments')." WHERE inmoderation = 0"); $commentsNumber = array_shift($commentsArray); echo $commentsNumber ?></td>
<td><?php printRSSLink('Comments','','','',true,'i'); ?></td>
</tr>
<?php } ?>
<!-- BlogCounter Code START -->
<tr>
<th><div style="position:relative;width:80px;height:15px;overflow:hidden;"><span id="bccount" style="font-size:8px">kostenloser Counter</span><script type="text/javascript" src="http://track.blogcounter.de/js.php?user=ZenBeeKnee&style=3"></script><noscript><p><img style="border: 0px;" alt="Weblog counter" src="http://track.blogcounter.de/log.php?id=ZenBeeKnee"/> - Lustige Bilder</p></div></th>
<!-- BlogCounter Code END -->
</tr>
</table>
</div>
</div>
</div>
<p id="path"><img src="http://www.pilgrims-rest.de/beeknee/zenphoto/themes/stopdesign/img/logo.jpg"> > <?php printParentBreadcrumb("", " > ", " > "); ?> <?php printAlbumTitle(false);?></p>
<div id="footer">
<hr />
<p><?php echo gettext('Powered by '); ?>ZenPhoto.</p>
</div>
<?php printAdminToolbox(); ?>
</body>
</html>