2 /* $Id: top.tmpl,v 1.8 2002-02-16 11:10:00 carstenklapp Exp $
4 * This template is responsible mainly for the outer level <html> stuff and the and <head>.
6 printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n", CHARSET);
8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
10 <html xmlns="http://www.w3.org/1999/xhtml">
12 <!-- $Id: top.tmpl,v 1.8 2002-02-16 11:10:00 carstenklapp Exp $ -->
13 <meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
16 ?><meta name="robots" content="<?= $ROBOTS_META ?>" /><?php
18 ?><meta name="robots" content="noindex,nofollow" /><?php
21 <meta name="keywords" content="<?=split_pagename($page->getName())?>, <?=WIKI_NAME?>" />
23 if (!empty($PAGE_DESCRIPTION)) {
24 ?><meta name="description" content="<?=$PAGE_DESCRIPTION?>" /><?php
27 <meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
28 <base href="<?=BASE_URL?>" />
29 <link rel="shortcut icon" href="<?=$Theme->getImageURL('favicon.ico')?>" />
32 * Additional navigation links are provided here in the html header for browsers
33 * which support them: Mozilla, iCab, Amaya (and certain versions of Opera??).
35 * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
36 * http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
38 if (!($page->getName() == HomePage)) {
39 global $LANG; $l = $LANG == 'C' ? false : " hreflang=\"$LANG\" lang=\"$LANG\"";
40 ?><link rel="home" title="<?=HomePage?>" href="<?=WikiURL(HomePage)?>"<?=$l?> /><?php
43 <link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
44 <link rel="author" title="<?=_("The PhpWiki Programming Team")?>" href="http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam" />
46 <link rel="author" title="Your Name Here" href="<?=WikiURL("YourNameAsWikiWordHere")?>" />
48 <link rel="help" title="<?=_("HowToUseWiki")?>" href="<?=WikiURL(_("HowToUseWiki"))?>" />
49 <link rel="search" title="<?=_("FindPage")?>" href="<?=WikiURL(_("FindPage"))?>" />
51 /* Provide alternate variations of the page content:
52 * 'viewsource' and 'browse'.
53 * RSS or translated pages could go here too. */
54 if (!empty($revision)) {
55 $args = $request->getargs(); $a = $args['action'];
56 if (!($a == "viewsource")) {
57 ?><link rel="alternate" title="<?= fmt("%s: %s",_("View Source"), $page->getName())?>" href="<?= WikiURL($revision, array('action' => 'viewsource'))?>" /><?php
59 if (!($a == "browse")) {
60 ?><link rel="alternate" title="<?=$page->getName()?>" href="<?= WikiURL($revision, array('action' => 'browse'))?>" /><?php
65 /* Add some user-specific links. */
66 if ($user->isadmin()) {
67 ?><link rel="bookmark" title="<?=_("PhpWikiAdministration")?>" href="<?=WikiURL(_("PhpWikiAdministration"))?>" /><?php
69 if ($user->isSignedIn()) {
70 $cal = $user->getId() . "'s"._("Calendar");
71 ?><link rel="bookmark" title="<?= $cal ?>" href="<?=WikiURL($cal)?>" /><?php
72 /* add link to today's calendar page for the user if it exists */
73 $page_for_date = $cal .".". strftime("%Y-%m-%d", time()); //FIXME
74 $dbi = $request->getDbh();
75 if ($dbi->isWikiPage($page_for_date)) {
76 ?><link rel="bookmark" title="<?= $page_for_date ?>" href="<?=WikiURL($page_for_date)?>" /><?php
78 ?><link rel="bookmark" title="<?=_("UserPreferences")?>" href="<?=WikiURL(_("UserPreferences"))?>" /><?php
80 ?><link rel="bookmark" title="<?=_("SandBox")?>" href="<?=WikiURL(_("SandBox"))?>" /><?php
81 ?><link rel="bookmark" title="<?=_("WikiWikiWeb")?>" href="<?=WikiURL(_("WikiWikiWeb"))?>" /><?php
84 <?= $Theme->getCSS() ?>
85 <title><?=WIKI_NAME?> - <?=AsString($TITLE)?></title>
87 <?= Template('body') ?>