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 }
?> </div> <br class="clearall" /> <?php @call_user_func('printSlideShowLink'); if ($c == 0) { echo "<p>" . gettext("Sorry, no image matches found. Try refining your search.") . "</p>"; } printPageListWithNav("« " . gettext("prev"), gettext("next") . " »"); ?> </div> </div> <div id="credit"> <?php if (function_exists('printFavoritesURL')) { printFavoritesURL(NULL, '', ' | ', '<br />'); } ?> <?php if (class_exists('RSS')) { printRSSLink('Gallery', '', gettext('Gallery RSS'), ' | '); } ?> <?php printCustomPageURL(gettext("Archive View"), "archive"); ?> | <?php printZenphotoLink(); ?> <?php
</li><?php } ?> <?php if (function_exists('printPageMenu')) { ?> <li class="divider"></li> <?php printPageMenu('list-top', '', 'active', '', 'active', '', true, false); ?> <?php } ?> </ul> <?php if (function_exists('printFavoritesURL')) { ?> <ul class="menu-dropdown"> <?php printFavoritesURL(NULL, '<li>', '</li><li>', '</li>'); ?> </ul> <?php } ?> </li> </ul> </div> </div> </div>
/** * @deprecated * @since 1.4.6 * */ function printFavoritesLink($text = NULL) { deprecated_functions::notify(gettext('use printFavoritesURL()')); printFavoritesURL($text); }
static function toolbox($zf) { printFavoritesURL(gettext('Favorites'), '<li>', '</li><li>', '</li>'); return $zf; }
if ($_zp_gallery_page == 'album.php') { $current = $_zp_current_album; } elseif ($_zp_gallery_page == 'image.php') { $current = $_zp_current_image; } else { $current = null; } if ($current) { printAddToFavorites($current); ?> <?php if (getOption('favorites_multi')) { ?> <div id="favorites_help"> <i class="fa fa-question-circle"></i> <em><?php echo gettext('To add to a specific favorites list, type it in the input box before clicking add favorite.'); ?> </em> </div><br /> <?php } } ?> <?php printFavoritesURL(null, '', '', ''); ?> </div> <?php }
<?php if ($_zenpage_enabled) { ?> <?php printPageMenu('list-top', '', 'active', '', '', '', 0, false); } if (zp_loggedin() && extensionEnabled('favoritesHandler')) { ?> <li<?php if ($_zp_gallery_page == 'favorites.php') { ?> class="active"<?php } ?> > <?php printFavoritesURL(); ?> </li> <?php } if (extensionEnabled('contact_form')) { ?> <li<?php if ($_zp_gallery_page == 'contact.php') { ?> class="active"<?php } ?> ><?php printCustomPageURL(gettext('Contact'), 'contact'); ?>