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=<?php echo $charset?>" />
8 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset?>" />
10 <meta http-equiv="Content-Style-Type" content="text/css" />
11 <meta http-equiv="Content-Language" content="<?php echo $GLOBALS['LANG']?>" />
12 <?php $ROBOTS_CONTENT = isset($ROBOTS_META) ? $ROBOTS_META : "noindex,nofollow"; ?>
13 <meta name="robots" content="<?php echo $ROBOTS_CONTENT ?>" />
14 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
15 <meta name="description" content="<?php echo $PAGE_DESCRIPTION?>" />
17 <?php if (!empty($PAGE_KEYWORDS)) { ?>
18 <meta name="keywords" content="<?php echo $PAGE_KEYWORDS?>" />
20 <meta name="language" content="<?php echo $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="<?php echo PHPWIKI_VERSION?>" />
25 <base href="<?php echo PHPWIKI_BASE_URL?>" />
26 <link rel="shortcut icon" href="<?php echo $WikiTheme->getImageURL('favicon.ico')?>" />
27 <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?>
28 <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" />
29 <link rel="help" title="<?php echo
30 _("HowToUseWiki")?>" href="<?php echo WikiURL(
31 _("HowToUseWiki"))?>" />
32 <link rel="copyright" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" />
33 <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" />
34 <link rel="search" title="<?php echo
35 _("FindPage")?>" href="<?php echo WikiURL(
38 * Provide alternate variations of the page content:
39 * 'viewsource' and 'browse'.
40 * Translated pages could go here too.
42 if (!empty($revision)) {
43 $args = $request->getArgs();
44 $action = empty($args['action']) ? 'browse' : $args['action'];
45 if (!($action == "viewsource")) {
46 $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName());
47 $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource'));
49 if (!($action == "browse")) {
50 $alternatelinkTitle = $page->getName();
51 $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
53 <link rel="alternate" title="<?php echo $alternatelinkTitle ?>" href="<?php echo $alternatelinkUrl ?>" />
56 * Link tag for RSS auto-discovery. See
57 * http://diveintomark.org/archives/2002/05/30.html#rss_autodiscovery
58 * http://www.oreillynet.com/cs/weblog/view/wlg/1475
61 <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo WikiURL(
62 _("RecentChanges"), array('format' => 'rss'))?>" />
63 <link rel="alternate" type="application/atom+xml" title="ATOM" href="<?php echo WikiURL(
64 _("RecentChanges"), array('format' => 'atom'))?>" />
66 * Add some user-specific links.
68 <?php if (!$user->isSignedIn()) {
69 /* For users not signed in */ ?>
70 <link rel="bookmark" title="<?php echo
71 _("SandBox")?>" href="<?php echo WikiURL(
73 <link rel="bookmark" title="<?php echo
74 _("WikiWikiWeb")?>" href="<?php echo WikiURL(
75 _("WikiWikiWeb"))?>" />
77 <link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?php echo WikiURL($page,array('action'=>'edit')) ?>" />
78 <?php if ($user->isAdmin()) {
79 /* Only for the Administrator */ ?>
80 <link rel="bookmark" title="<?php echo
81 _("PhpWikiAdministration")?>" href="<?php echo WikiURL(
82 _("PhpWikiAdministration"))?>" />
84 <?php if ($user->isSignedIn()) {
85 /* For signed-in users */ ?>
86 <link rel="bookmark" title="<?php echo
87 _("UserPreferences")?>" href="<?php echo WikiURL(
88 _("UserPreferences"))?>" />
89 <?php /* User's calendar page
91 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
92 $UserCalPageUrl = WikiURL($UserCalPageTitle);
94 <link rel="bookmark" title="<?php echo $UserCalPageTitle ?>" href="<?php echo $UserCalPageUrl ?>" />
95 <?php /* Today's calendar page for the user if it exists
97 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
98 $dbi = $request->getDbh();
99 if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
100 $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
102 <link rel="bookmark" title="<?php echo $UserCalPageTodayTitle ?>" href="<?php echo $UserCalPageTodayUrl ?>" />
104 <?php } //end of links for signed-in user ?>
105 <?php echo $WikiTheme->getCSS() ?><?php
106 // avoid redundant bookmark title for custom home page
107 if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
110 $pagetitle = " - ". AsString($TITLE);
112 <title><?php echo WIKI_NAME.$pagetitle ?></title>
113 <?php if (ENABLE_OPEN_GRAPH) { ?>
114 <meta property="og:title" content="<?php echo strip_tags($TITLE) ?>"/>
115 <meta property="og:site_name" content="<?php echo WIKI_NAME ?>"/>
117 <?php echo $WikiTheme->getMoreHeaders() ?>