5 <?php if (ENABLE_XHTML_XML and strstr($request->get('HTTP_ACCEPT'),'application/xhtml+xml')) { ?>
6 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=<?=$charset?>" />
8 <meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
10 <meta http-equiv="Content-Style-Type" content="text/css" />
11 <meta http-equiv="Content-Language" content="<?=$GLOBALS['LANG']?>" />
12 <?php $ROBOTS_CONTENT = isset($ROBOTS_META) ? $ROBOTS_META : "noindex,nofollow"; ?>
13 <meta name="robots" content="<?= $ROBOTS_CONTENT ?>" />
14 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
15 <meta name="description" content="<?=$PAGE_DESCRIPTION?>" />
17 <?php if (!empty($PAGE_KEYWORDS)) { ?>
18 <meta name="keywords" content="<?=$PAGE_KEYWORDS?>" />
20 <meta name="language" content="<?=$GLOBALS['LANG']?>" />
21 <meta name="document-type" content="Public" />
22 <meta name="document-rating" content="General" />
23 <meta name="generator" content="PhpWiki" />
24 <meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
25 <base href="<?=PHPWIKI_BASE_URL?>" />
26 <link rel="shortcut icon" href="<?=$WikiTheme->getImageURL('favicon.ico')?>" />
28 * Additional navigation links are provided here in the html header for browsers
29 * which support them: Mozilla, iCab, Amaya (and certain versions of Opera??).
31 * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
32 * http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
34 <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?>
35 <link rel="home" title="<?=HOME_PAGE?>" href="<?=WikiURL(HOME_PAGE)?>" />
36 <link rel="help" title="<?=
37 _("HowToUseWiki")?>" href="<?=WikiURL(
38 _("HowToUseWiki"))?>" />
39 <link rel="copyright" title="<?=COPYRIGHTPAGE_TITLE?>" href="<?=COPYRIGHTPAGE_URL?>" />
40 <link rel="author" title="<?=AUTHORPAGE_TITLE?>" href="<?=AUTHORPAGE_URL?>" />
41 <link rel="search" title="<?=
42 _("FindPage")?>" href="<?=WikiURL(
45 * Provide alternate variations of the page content:
46 * 'viewsource' and 'browse'.
47 * Translated pages could go here too.
49 if (!empty($revision)) {
50 $args = $request->getArgs();
51 $action = empty($args['action']) ? 'browse' : $args['action'];
52 if (!($action == "viewsource")) {
53 $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName());
54 $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource'));
56 if (!($action == "browse")) {
57 $alternatelinkTitle = $page->getName();
58 $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
60 <link rel="alternate" title="<?= $alternatelinkTitle ?>" href="<?= $alternatelinkUrl ?>" />
63 * Link tag for RSS auto-discovery. See
64 * http://diveintomark.org/archives/2002/05/30.html#rss_autodiscovery
65 * http://www.oreillynet.com/cs/weblog/view/wlg/1475
68 <link rel="alternate" type="application/rss+xml" title="RSS" href="<?=WikiURL(
69 _("RecentChanges"), array('format' => 'rss'))?>" />
70 <link rel="alternate" type="application/atom+xml" title="ATOM" href="<?=WikiURL(
71 _("RecentChanges"), array('format' => 'atom'))?>" />
73 * Add some user-specific links.
75 <?php if (!$user->isSignedIn()) {
76 /* For users not signed in */ ?>
77 <link rel="bookmark" title="<?=
78 _("SandBox")?>" href="<?=WikiURL(
80 <link rel="bookmark" title="<?=
81 _("WikiWikiWeb")?>" href="<?=WikiURL(
82 _("WikiWikiWeb"))?>" />
84 <link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?= WikiURL($page,array('action'=>'edit')) ?>" />
85 <?php if ($user->isAdmin()) {
86 /* Only for the Administrator */ ?>
87 <link rel="bookmark" title="<?=
88 _("PhpWikiAdministration")?>" href="<?=WikiURL(
89 _("PhpWikiAdministration"))?>" />
91 <?php if ($user->isSignedIn()) {
92 /* For signed-in users */ ?>
93 <link rel="bookmark" title="<?=
94 _("UserPreferences")?>" href="<?=WikiURL(
95 _("UserPreferences"))?>" />
96 <?php /* User's calendar page
98 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
99 $UserCalPageUrl = WikiURL($UserCalPageTitle);
101 <link rel="bookmark" title="<?= $UserCalPageTitle ?>" href="<?= $UserCalPageUrl ?>" />
102 <?php /* Today's calendar page for the user if it exists
104 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
105 $dbi = $request->getDbh();
106 if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
107 $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
109 <link rel="bookmark" title="<?= $UserCalPageTodayTitle ?>" href="<?= $UserCalPageTodayUrl ?>" />
111 <?php } //end of links for signed-in user ?>
112 <?= $WikiTheme->getCSS() ?><?php
113 // avoid redundant bookmark title for custom home page
114 if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
117 $pagetitle = " - ". AsString($TITLE);
119 <title><?= WIKI_NAME.$pagetitle ?></title>
120 <?= $WikiTheme->getMoreHeaders() ?>