function printFooter($page) { global $_zp_themeroot; ?> <!-- Footer --> <div class="footlinks"> <?php switch ($page) { case 'image': case 'album': $h = getHitcounter(); if ($h == 1) { echo "<p>" . sprintf(gettext('1 hit on this %s'), $page) . "</p>"; } else { echo "<p>" . sprintf(gettext('%1$u hits on this %2$s'), $h, $page) . "</p>"; } break; case 'gallery': ?> <small> <p><?php $albumNumber = getNumAlbums(); echo sprintf(gettext("Albums: %u"), $albumNumber); ?> · <?php echo sprintf(gettext("Subalbums: %u"), get_subalbum_count()); ?> · <?php $photosArray = query_single_row("SELECT count(*) FROM " . prefix('images')); $photosNumber = array_shift($photosArray); echo sprintf(gettext("Images: %u"), $photosNumber); ?> <?php if (getOption('Allow_comments')) { ?> · <?php $commentsArray = query_single_row("SELECT count(*) FROM " . prefix('comments') . " WHERE inmoderation = 0"); $commentsNumber = array_shift($commentsArray); echo sprintf(gettext("Comments: %u"), $commentsNumber); ?> <?php } ?> </p> </small> <?php break; } ?> <small><?php printThemeInfo(); ?> </small> <?php printZenphotoLink(); ?> <?php if ($page == 'gallery') { echo '<br />'; printRSSLink('Gallery', '', 'Gallery RSS', ''); } ?> <?php if (function_exists('printUserLogout')) { printUserLogout('<br />', '', true); } ?> <?php if (function_exists('printContactForm')) { printCustomPageURL(gettext('Contact us'), 'contact', '', '<br />'); } ?> <?php if (!zp_loggedin() && function_exists('printRegistrationForm')) { printCustomPageURL(gettext('Register for this site'), 'request', '', '<br />'); } ?> <?php if (function_exists('printLanguageSelector')) { printLanguageSelector(); } ?> </div> <!-- Administration Toolbox --> <?php printAdminToolbox(); }
<div class="footlinks"> <?php if (getOption('Use_Simpleviewer') && !getOption('mod_rewrite')) { /* display missing css file error */ echo '<div class="errorbox" id="message">'; echo "<h2>" . gettext('Simpleviewer requires <em>mod_rewrite</em> to be set. Simpleviewer is disabled.') . "</h2>"; echo '</div>'; } ?> <?php printThemeInfo(); printZenphotoLink(); if (function_exists('printUserLogout')) { printUserLogout('<br />', '', true); } ?> </div> <!-- footerlinks --> <?php if (function_exists('printAdminToolbox')) { printAdminToolbox(); } ?> </body> </html> <?php
<div id="credit"> <?php printRSSLink('Gallery', '', gettext('Gallery RSS'), ''); ?> | <?php printZenphotoLink(); ?> | <?php printCustomPageURL(gettext("Archive View"), "archive"); ?> <?php if (function_exists('printUserLogout')) { printUserLogout(" | "); } ?> <br /> <?php printf(gettext("%u seconds"), round(array_sum(explode(" ", microtime())) - $startTime, 4)); ?> </div> </div> <?php if (function_exists('printAdminToolbox')) { printAdminToolbox(); } ?>
<?php printPageNav("« " . gettext("prev"), "|", gettext("next") . " »"); ?> <div id="credit"><?php printRSSLink('Gallery', '', 'RSS', ''); ?> | <?php printZenphotoLink(); ?> | <?php printCustomPageURL(gettext("Archive View"), "archive"); ?> <?php if (function_exists('printUserLogout')) { printUserLogout(' | ', '', true); } ?> </div> </div> <?php if (function_exists('printAdminToolbox')) { printAdminToolbox(); } ?> </body> </html>