function printThemeMenu() { echo '<ul class="menu main">'; if (getMainSiteName() != '') { echo '<li><a href="' . getMainSiteURL() . '" title="' . getMainSiteName() . '">' . getMainSiteName() . '</a></li>'; } echo '<li><a href="' . getGalleryIndexURL() . '" title="' . getGalleryTitle() . '">' . getGalleryTitle() . '</a></li>'; if (function_exists('printNewsIndexURL')) { echo '<li><a href="' . getNewsIndexURL() . '" title="' . gettext('News') . '">' . gettext('News') . '</a></li>'; } if (function_exists("printPageMenu")) { printPageMenu("list-top", "", "menu-active", "", "", '', 0, false, ''); } echo '<li><a href="' . getCustomPageURL('archive') . '">' . gettext('Archives') . '</a></li>'; echo '</ul>'; }
function printThemeMenu() { echo '<ul id="main">'; if (getMainSiteName() != '') { echo '<li class="title">' . gettext('Main site') . '</li>'; echo '<ul>'; echo '<li><a href="' . getMainSiteURL() . '" title="' . getMainSiteName() . '">' . getMainSiteName() . '</a></li>'; echo '</ul>'; } if (function_exists('printAlbumMenu')) { echo '<li class="title">' . gettext('Gallery') . '</li>'; $temp = getGalleryTitle(); printAlbumMenu('list', false, '', 'menu-active', 'submenu', 'menu-active', $temp, true); } else { echo '<li class="title">' . gettext('Gallery') . '</li>'; echo '<ul>'; echo '<li><a href="' . getGalleryIndexURL() . '" title="' . getGalleryTitle() . '">' . getGalleryTitle() . '</a></li>'; echo '</ul>'; } if (function_exists('printNewsIndexURL')) { echo '<li class="title">' . gettext('News blog') . '</li>'; printAllNewsCategories("All news", FALSE, "", "menu-active"); } if (function_exists("printPageMenu")) { echo '<li class="title">' . gettext('Pages') . '</li>'; printPageMenu("list", "", "menu-active", "submenu", "menu-active"); } echo '<li class="title">' . gettext('Stay informed') . '</li>'; echo '<ul>'; echo '<li><a href="' . getCustomPageURL('archive') . '">' . gettext('Archives') . '</a></li>'; echo '</ul>'; echo '</ul>'; echo '<div id="login">'; echo '<div class="title">' . gettext('Connection') . '</div>'; if (function_exists('printUserLogin_out') and !zp_loggedin()) { printUserLogin_out(); } echo '</div>'; if (function_exists("printLanguageSelector")) { echo '<div id="languages">'; echo '<div class="title">' . gettext('Languages') . '</div>'; printLanguageSelector(); echo '<div class="clear_left"></div>'; echo '</div>'; } }
<?php require_once 'theme_functions.php'; define('ERROR_MESSAGE', 'You\'re not allowed to access the requested page. This is not a temporary error. ' . 'If you ended up here through an internal link, please <a href="' . getCustomPageURL('contact') . '">report the problem</a>.'); TileSet::init(getGalleryTitle() . ' : ' . "Access forbidden", "error"); include_once 'template.php';
<div class="right-corner"> <div class="left-corner"> <!-- begin content --> <div class="main section" id="main"> <h2 id="gallerytitle"> <?php printHomeLink('', ' » '); ?> <a href="<?php echo html_encode(getGalleryIndexURL()); ?> " title="<?php echo gettext('Gallery Index'); ?> "><?php echo html_encode(getGalleryTitle()); ?> </a> » <?php echo "<em>" . gettext('Page not found') . "</em>"; ?> </h2> <h3><?php echo gettext('Page not found'); ?> </h3> <div class="errorbox"> <?php print404status(); ?> </div>
" type="text/css" /> <link rel="stylesheet" href="<?php echo pathurlencode(dirname(dirname($zenCSS))); ?> /common.css" type="text/css" /> </head> <body> <?php zp_apply_filter('theme_body_open'); ?> <div id="main"> <div id="gallerytitle"> <h2> <?php printHomeLink('', ' | '); printGalleryIndexURL(' | ', getGalleryTitle()); ?> <em><?php echo gettext('Contact us'); ?> </em> </h2> </div> <h3><?php echo gettext('Contact us.'); ?> </h3> <?php printContactForm(); ?> </div>
if ($_zp_script && file_exists($_zp_script)) { if (isset($custom) && $custom) { require_once $custom; } include $_zp_script; } else { ?> <!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"> <head> </head> <body> <?php print404status(isset($album) ? $album : NULL, isset($image) ? $image : NULL, $obj); ?> <br /> <a href="<?php echo html_encode(getGalleryIndexURL()); ?> " title="<?php echo gettext('Index'); ?> "><?php echo sprintf(gettext("Return to %s"), getGalleryTitle()); ?> </a> </body> </html> <?php }
<?php require_once 'theme_functions.php'; define('ERROR_MESSAGE', "Weirdly enough, an internal error just occured. It is most probably only temporary, but should it perdure, " . "feel free to <a href='" . getCustomPageURL('contact') . "' rel='contact'>report the problem</a>."); TileSet::init(getGalleryTitle() . ' : ' . "Internal error", "error"); include_once 'template.php';
?> <a href="<?php echo html_encode(getGalleryIndexURL()); ?> " title="<?php echo gettext('Albums Index'); ?> "><?php echo html_encode(getGalleryTitle()); ?> </a> <?php } else { ?> <?php printCustomPageURL(getGalleryTitle(), 'gallery'); ?> <?php } ?> » <?php echo gettext("Object not found"); ?> </h3> </div> <h4> <?php print404status(); ?> </h4>
<?php include_once 'header.php'; ?> <?php zp_apply_filter('theme_body_open'); ?> <meta name="keywords" content="<?php echo html_encode(getFormattedMainSiteName('', ', ') . getGalleryTitle() . ', ' . getBareAlbumTitle() . ', ' . implode(',', getTags())); ?> " /> <meta name="description" content="<?php echo html_encode(getAlbumDesc()); ?> " /> <title><?php echo strip_tags(getFormattedMainSiteName('', ' / ') . getGalleryTitle() . ' / ' . gettext('Search') . ' / ' . $searchwords); ?> </title> </head> <body id="gallery-index"> <div id="wrapper"> <div id="header"> <div id="logo"> <?php echo getGalleryLogo(); ?> </div> <div id="gallery_title"> <?php echo getGalleryTitleHeader(); ?>
<?php require_once 'theme_functions.php'; define("AREA", GALLERY); TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . " slideshow", "slideshow"); include_once 'template.php';
<?php require_once 'theme_functions.php'; define('ERROR_MESSAGE', 'The requested page cannot be found. This may be our fault - or not. The page might have have been deleted or moved. Either case, ' . 'if you ended up here through an internal link, please <a href="' . getCustomPageURL('contact') . '">report the problem</a>.'); TileSet::init(getGalleryTitle() . ' : ' . "Resource not found", "error"); include_once 'template.php';
<?php require_once 'theme_functions.php'; define("AREA", GALLERY); TileSet::init(getGalleryTitle() . ' : ' . getAlbumTitle() . ' : ' . getImageTitle(), "album"); include_once 'template.php';
/** * Prints the title of the gallery. */ function printGalleryTitle() { echo getGalleryTitle(); }
<?php require_once 'theme_functions.php'; define("AREA", 'CONTACT'); TileSet::init(getGalleryTitle() . ' : Contact', "contact"); include_once 'template.php';
<?php require_once 'theme_functions.php'; TileSet::init(getGalleryTitle() . ' : ' . getPageTitle(), "page"); include_once 'template.php';
<input name="p" value="search" type="hidden" /> <input type="submit" id="search_submit" value="go" /> </form> </span> </div> <?php } ?> <div class="clear"></div> </div> <div id="banner" class="opa60 shadow"> <div class="right" id="gallery-title"> <?php if (getOption('simplicity2_print_gallery_title')) { $star = is_null(getOption('simplicity2_gallery_subtitle')) ? "" : "<span id='header-star'>*</span>"; $title = getGalleryTitle(); if (getOption('simplicity2_print_home_menu_item')) { echo $title . $star; } else { echo "<a href='" . getGalleryIndexUrl() . "'>{$title}</a> " . $star; } } ?> </div> </div> <div id="tabs" class="opa60"> <?php include "tiles/menu.php"; ?> </div> </div>
?> <!DOCTYPE html> <head> <?php include_once 'header.php'; ?> <meta name="keywords" content="<?php echo html_encode(getFormattedMainSiteName('', ', ') . getGalleryTitle()); ?> " /> <meta name="description" content="<?php echo html_encode(getGalleryDesc()); ?> " /> <title><?php echo strip_tags(getFormattedMainSiteName('', ' / ') . getGalleryTitle() . getParentBreadcrumbTLS(' / ') . ' / ' . html_encode(getBareAlbumTitle())); ?> </title> </head> <body id="gallery-index"> <?php zp_apply_filter('theme_body_open'); ?> <div id="wrapper"> <div id="header"> <div id="logo"> <?php echo getGalleryLogo(); ?> </div> <div id="gallery_title">
<div class="text left"> </div> <div class="clear"></div> </div> <div> <div id="page-body" class="home"> <div id="site-description" class="opa30"> <?php echo getOption('simplicity2_main_page_text'); ?> </div> <div id="latest-stuff" class="opa60"> <div id="latest-header" class="shadow"><?php echo gettext("Previously on") . " " . "<a style='cursor:default;'>" . getGalleryTitle() . "</a>..."; ?> </div> <div id="images" class="left"> <?php $images = AlbumUtil::getLatestImages(getOption('simplicity2_home_images_number')); foreach ($images as $img) { $thumb = $img->getCustomImage(NULL, 105, 105, 105, 105, NULL, NULL, false); $link = $img->getLink(); echo "<div class='thumb'><a href='{$link}'><img src='{$thumb}' width='105' height='105'/></a></div>"; } ?> </div> <div id="latest-news" class="left"> <?php
/** * Prints the title of the gallery. */ function printGalleryTitle() { echo html_encodeTagged(getGalleryTitle()); }
<?php require_once 'theme_functions.php'; define("AREA", 'THEME'); TileSet::init(getGalleryTitle() . ' : Theme', "theme"); include_once 'template.php';
<!DOCTYPE html> <head> <?php include_once 'header.php'; ?> <meta name="keywords" content="<?php echo html_encode(getFormattedMainSiteName('', ', ') . getGalleryTitle()); ?> " /> <meta name="description" content="<?php echo html_encode(getGalleryDesc()); ?> " /> <title> <?php echo strip_tags(getFormattedMainSiteName('', ' / ') . getGalleryTitle() . ' / ' . gettext('News')); if (is_NewsArticle()) { echo strip_tags(' / ' . getNewsTitle()); } ?> </title> </head> <body id="gallery-index"> <?php zp_apply_filter('theme_body_open'); ?> <div id="wrapper"> <div id="header"> <div id="logo"> <?php echo getGalleryLogo();
<?php require_once 'theme_functions.php'; TileSet::init(getGalleryTitle() . ' : ' . "Protected page", "password"); include_once 'template.php';
<?php require_once 'theme_functions.php'; define("AREA", HOME); TileSet::init(getGalleryTitle() . ' : ' . "Home", "index"); include_once 'template.php';
?> <!DOCTYPE html> <head> <?php include_once 'header.php'; ?> <meta name="keywords" content="<?php echo html_encode(getFormattedMainSiteName('', ', ') . getGalleryTitle()); ?> " /> <meta name="description" content="<?php echo html_encode(getGalleryDesc()); ?> " /> <title><?php echo strip_tags(getFormattedMainSiteName('', ' / ') . getGalleryTitle()); ?> </title> </head> <body id="gallery-index"> <?php zp_apply_filter('theme_body_open'); ?> <div id="wrapper"> <div id="header"> <div id="logo"> <?php echo getGalleryLogo(); ?> </div> <div id="gallery_title">
?> <!DOCTYPE html> <head> <?php include_once 'header.php'; ?> <meta name="keywords" content="<?php echo html_encode(getFormattedMainSiteName('', ', ') . getGalleryTitle() . ', ' . getBareImageTitle() . ', ' . implode(getTags())); ?> " /> <meta name="description" content="<?php echo html_encode(getImageDesc()); ?> " /> <title><?php echo strip_tags(getFormattedMainSiteName('', ' / ') . getGalleryTitle() . getParentHeaderTitle(' / ') . ' / ' . getBareAlbumTitle() . ' / ' . getBareImageTitle()); ?> </title> </head> <body id="gallery-index"> <?php zp_apply_filter('theme_body_open'); ?> <div id="wrapper"> <div id="header"> <div id="logo"> <?php echo getGalleryLogo(); ?> </div> <div id="gallery_title">
<?php require_once 'theme_functions.php'; define("AREA", NEWS); TileSet::init(getGalleryTitle() . ' : ' . "Notes", "news"); include_once 'template.php';
function send_reg_file() { $time_stamp = time(); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=zenphoto_" . $time_stamp . ".reg"); $lines[] = 'Windows Registry Editor Version 5.00'; $lines[] = '[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\PublishingWizard\\InternetPhotoPrinting\\Providers\\' . getOption('gallery_title') . ']'; $lines[] = '"displayname"="' . getGalleryTitle() . '"'; $lines[] = '"description"="' . FULLWEBPATH . '"'; $lines[] = '"href"="' . FULLWEBPATH . '/' . basename(__FILE__) . '?cmd=publish"'; $lines[] = '"icon"="' . "http://" . $_SERVER['HTTP_HOST'] . '/favicon.ico"'; print join("\r\n", $lines); print "\r\n"; exit; }
<?php require_once 'theme_functions.php'; define("AREA", ARCHIVES); TileSet::init(getGalleryTitle() . ' : ' . "Search", "search"); include_once 'template.php';
?> <li><h1><a href="<?php echo getMainSiteURL(); ?> "><?php echo getMainSiteName(); ?> </a></h1></li> <?php } ?> <li><h2><a href="<?php echo getGalleryIndexURL(); ?> "><?php echo getGalleryTitle(); ?> </a></h2></li> <li><h3><a><?php echo gettext('Register'); ?> </a></h3></li> </ul> </div> <div id="content" class="c"> <div class="box register"> <h2><?php echo gettext('User Registration'); ?> </h2> <?php
<?php require_once 'theme_functions.php'; define("AREA", GALLERY); TileSet::init(getGalleryTitle() . ' : ' . "Gallery", "album"); include_once 'template.php';