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);
            ?>
 &middot;
					<?php 
            echo sprintf(gettext("Subalbums: %u"), get_subalbum_count());
            ?>
 &middot;
					<?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')) {
                ?>
						&middot;
						<?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();
}
Example #2
0
<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 
Example #3
0

		<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();
}
?>
Example #4
0
		<?php 
printPageNav("&laquo; " . gettext("prev"), "|", gettext("next") . " &raquo;");
?>

		<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>