function printSoftwareLink() { global $themeColor; switch ($themeColor) { case 'dark': $logo = 'blue'; break; case 'light': $logo = 'light'; break; default: $logo = 'sterile'; break; } printZenphotoLink($logo); }
function zp_footer() { ?> <div id="credit"><?php if (zp_loggedin()) { printUserLogin_out($before = '', $after = '| ', $showLoginForm = NULL, $logouttext = NULL, $show_user = NULL); } else { printLinkHTML(WEBPATH . '/' . ZENFOLDER . '/admin.php', 'Admin | '); } printZenphotoLink(); ?> <?php printVersion(); ?> </a> | Using "Side Of Chili Theme" by: <a href="http://www.chilifrei.net" title="How Do You Like Your Chili?">ChiliFrei64</a></div> <?php }
<?php printContactForm(); ?> </div> </div> <!-- Footer --> <div class="footlinks"> <?php printThemeInfo(); ?> <?php printZenphotoLink(); ?> </div> <!-- footerlinks --> <?php zp_apply_filter('theme_body_close'); ?> </body> </html> <?php } else { include SERVERPATH . '/' . ZENFOLDER . '/404.php'; }
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(); }
echo getMainSiteName(); if (getOption('show_archive')) { printCustomPageURL(gettext('Archive View'), 'archive', '', ' | '); } if (extensionEnabled('user_login-out')) { printUserLogin_out(' | ', '', 2); } if (!zp_loggedin() && extensionEnabled('register_user')) { printRegisterURL(gettext('Register'), ' | '); } ?> </div> <div id="zpcredit"> <?php printZenphotoLink(getOption('css_style')); if ($_zp_gallery_page == 'image.php' || $_zp_gallery_page == 'album.php' && getOption('use_galleriffic') && getNumImages() > 0 || $_zenpage_enabled && is_NewsArticle()) { ?> <img id="icon-help" src="<?php echo $_zp_themeroot; ?> /images/help.png" title="<?php echo gettext('You can browse with the arrows keys of your keyboard'); ?> " alt="help" /> <?php } ?> </div> <!-- END #zpcredit--> </div> <!-- END #foot-left --> </div> <!-- END #FOOTER -->
function printFooter($admin = true) { global $_zp_themeroot, $_zp_gallery, $_zp_gallery_page, $_zp_current_zenpage_news, $_zp_current_zenpage_page; $h = NULL; ?> <!-- Footer --> <div class="footlinks"> <?php $h = @call_user_func('getHitcounter'); if (!is_null($h)) { ?> <p> <?php printf(ngettext('%1$u hit on this %2$s', '%1$u hits on this %2$s', $h), $h, gettext('page')); ?> </p> <?php } if ($_zp_gallery_page == 'gallery.php') { ?> <p> <small> <?php $albumNumber = getNumAlbums(); echo sprintf(ngettext("%u Album", "%u Albums", $albumNumber), $albumNumber); ?> · <?php $c = get_subalbum_count(); echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c); ?> · <?php $photosNumber = db_count('images'); echo sprintf(ngettext("%u Image", "%u Images", $photosNumber), $photosNumber); ?> <?php if (function_exists('printCommentForm')) { ?> · <?php $commentsNumber = db_count('comments', " WHERE inmoderation = 0"); echo sprintf(ngettext("%u Comment", "%u Comments", $commentsNumber), $commentsNumber); } ?> </small> </p> <?php } ?> <?php printThemeInfo(); ?> <?php printZenphotoLink(); ?> <br /> <?php if (function_exists('printFavoritesURL') && $_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'favorites.php') { printFavoritesURL(NULL, '', ' | ', '<br />'); } ?> <?php if ($_zp_gallery_page == 'gallery.php') { if (class_exists('RSS')) { printRSSLink('Gallery', '', 'Gallery RSS', ''); } echo '<br />'; } ?> <?php @call_user_func('printUserLogin_out', '', '<br />'); ?> <?php if ($_zp_gallery_page != 'contact.php' && extensionEnabled('contact_form') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('contact'))) { printCustomPageURL(gettext('Contact us'), 'contact', '', ''); echo '<br />'; } ?> <?php if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL') && !zp_loggedin() && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) { printRegisterURL(gettext('Register for this site'), ''); echo '<br />'; } ?> <?php @call_user_func('mobileTheme::controlLink'); ?> <?php @call_user_func('printLanguageSelector'); ?> <br class="clearall" /> </div> <!-- Administration Toolbox --> <?php }
function footer() { global $_zp_gallery_page, $_zp_current_category, $_zp_gallery; ?> <div id="footer"> <?php if (function_exists('printFavoritesURL') && $_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'favorites.php') { printFavoritesURL(NULL, '', ' | ', '<br />'); } if (class_exists('RSS')) { $prev = ' | '; switch ($_zp_gallery_page) { default: printRSSLink('Gallery', '', 'RSS', ''); break; case 'album.php': printRSSLink('Album', '', 'RSS', ''); break; case 'news.php': if (is_NewsCategory()) { printRSSLink('Category', '', 'RSS', '', true, null, '', NULL, $_zp_current_category->getTitlelink()); } else { printRSSLink('News', '', 'RSS', ''); } break; case 'password.php': $prev = ''; break; } } else { $prev = ''; } if ($_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'archive.php') { printCustomPageURL(gettext('Archive View'), 'archive', '', $prev, ''); $prev = ' | '; } ?> <?php if ($_zp_gallery_page != 'contact.php' && extensionEnabled('contact_form') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('contact'))) { printCustomPageURL(gettext('Contact us'), 'contact', '', $prev, ''); $prev = ' | '; } ?> <?php if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL') && !zp_loggedin() && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) { printRegisterURL(gettext('Register for this site'), $prev, ''); $prev = ' | '; } ?> <?php @call_user_func('printUserLogin_out', $prev); ?> <br /> <?php @call_user_func('mobileTheme::controlLink'); ?> <br /> <?php @call_user_func('printLanguageSelector'); ?> <?php printZenphotoLink(); ?> </div> <?php }
function footer() { global $_zp_gallery_page, $_zp_current_category, $_zp_gallery; $exclude_login = array('password.php', 'register.php', 'contact.php'); ?> <div id="footer"> <?php switch ($_zp_gallery_page) { default: printRSSLink('Gallery', '', 'RSS', ''); break; case 'album.php': printRSSLink('Album', '', 'RSS', ''); break; case 'news.php': if (is_NewsCategory()) { printZenpageRSSLink('Category', $_zp_current_category->getTitlelink(), '', 'RSS', ''); } else { printZenpageRSSLink('News', '', '', 'RSS', ''); } break; } ?> <?php if ($_zp_gallery_page != 'password.php' && $_zp_gallery_page != 'archive.php') { printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ', ''); } ?> <?php if ($_zp_gallery_page != 'contact.php' && getOption('zp_plugin_contact_form') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('contact'))) { printCustomPageURL(gettext('Contact us'), 'contact', '', ' | ', ''); } ?> <?php if ($_zp_gallery_page != 'register.php' && !zp_loggedin() && function_exists('printRegistrationForm') && ($_zp_gallery_page != 'password.php' || $_zp_gallery->isUnprotectedPage('register'))) { printCustomPageURL(gettext('Register for this site'), 'register', '', ' | ', ''); } ?> <?php if (function_exists('printUserLogin_out') && !in_array($_zp_gallery_page, $exclude_login)) { printUserLogin_out(' | ', '', true); } ?> <?php if (function_exists('printLanguageSelector')) { ?> <br /> <?php printLanguageSelector(); } else { ?> <br /> <?php } ?> <?php printZenphotoLink(); ?> </div> <?php }
/** * Prints out the footer of the page */ function printFooter() { ?> <div class="copyright"> <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"> <img alt="Licence Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /> </a> <span class="bold">Gray Highlights</span> by The Whole Life To Learn </div> <div class="zen-logo"> <?php printZenphotoLink(); ?> </div> <?php }
function printFooter($admin = true) { global $_zp_themeroot, $_zp_gallery_page, $_zp_current_zenpage_news, $_zp_current_zenpage_page; $h = NULL; ?> <!-- Footer --> <div class="footlinks"> <?php $h = getHitcounter(); if (!is_null($h)) { ?> <p> <?php printf(ngettext('%1$u hit on this %2$s', '%1$u hits on this %2$s', $h), $h, gettext('page')); ?> </p> <?php } if ($_zp_gallery_page == 'gallery') { ?> <p> <small> <?php $albumNumber = getNumAlbums(); echo sprintf(ngettext("%u Album", "%u Albums", $albumNumber), $albumNumber); ?> · <?php $c = get_subalbum_count(); echo sprintf(ngettext("%u Subalbum", "%u Subalbums", $c), $c); ?> · <?php $photosArray = query_single_row("SELECT count(*) FROM " . prefix('images')); $photosNumber = array_shift($photosArray); echo sprintf(ngettext("%u Image", "%u Images", $photosNumber), $photosNumber); ?> <?php if (function_exists('printCommentForm')) { ?> · <?php $commentsArray = query_single_row("SELECT count(*) FROM " . prefix('comments') . " WHERE inmoderation = 0"); $commentsNumber = array_shift($commentsArray); echo sprintf(ngettext("%u Comment", "%u Comments", $commentsNumber), $commentsNumber); ?> <?php } ?> </small> </p> <?php } ?> <?php printThemeInfo(); ?> <?php printZenphotoLink(); ?> <?php if ($_zp_gallery_page == 'gallery') { printRSSLink('Gallery', '<br />', 'Gallery RSS', ''); } ?> <?php if (function_exists('printUserLogin_out') && $_zp_gallery_page != 'password') { printUserLogin_out('<br />', '', true); } ?> <?php if (getOption('zp_plugin_contactform') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('contact'))) { printCustomPageURL(gettext('Contact us'), 'contact', '', '<br />'); } ?> <?php if (!zp_loggedin() && function_exists('printRegistrationForm') && ($_zp_gallery_page != 'password' || $_zp_gallery->isUnprotectedPage('unprotected_register'))) { printCustomPageURL(gettext('Register for this site'), 'register', '', '<br />'); } ?> <?php if (function_exists('printLanguageSelector')) { printLanguageSelector(); } ?> <br clear="all" /> </div> <!-- Administration Toolbox --> <?php if ($admin) { printAdminToolbox(); } }
/** * Prints the footer */ function jqm_printFooterNav() { global $_zp_gallery_page, $_zp_current_album; ?> <div id="footer" data-role="footer"> <?php @call_user_func('printLanguageSelector'); ?> <ul id="footerlist"> <li><?php printZenphotoLink(); ?> and <a href="http://jquerymobile.com">jQueryMobile</a></li> <li><?php echo gettext('zpMobile theme by'); ?> <a href="http://www.maltem.de">Malte Müller</a></li> </ul> <?php $adminlink = ''; $favoriteslink = ''; if (zp_loggedin()) { $adminlink = '<li><a rel="external" href="' . PROTOCOL . '://' . html_encode($_SERVER['HTTP_HOST'] . WEBPATH . '/' . ZENFOLDER) . '/admin.php">' . gettext('Admin') . '</a></li>'; } else { if ($_zp_gallery_page != 'register.php' && function_exists('printRegisterURL')) { $_linktext = get_language_string(getOption('register_user_page_link')); $adminlink = '<li><a rel="external" href="' . html_encode(register_user::getLink()) . '">' . $_linktext . '</a></li>'; } } if (function_exists('printFavoritesURL')) { $favoriteslink = '<li><a rel="external" href="' . html_encode(getFavoritesURL()) . '">' . gettext('Favorites') . '</a></li>'; } if ($adminlink || $favoriteslink) { ?> <div data-role="navbar"> <ul id="footernav"> <?php echo $adminlink . $favoriteslink; if (function_exists("printUserLogin_out")) { echo "<li>"; printUserLogin_out("", "", 0); echo "</li>"; } ?> </ul> </div> <!-- /navbar --> <?php } ?> </div><!-- footer --> <?php }