2 rcs_id('$Id: head.tmpl,v 1.13 2003-12-05 15:36:39 carstenklapp Exp $');
5 <meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
6 <?php $ROBOTS_CONTENT = $ROBOTS_META ? $ROBOTS_META : "noindex,nofollow"; ?>
7 <meta name="robots" content="<?= $ROBOTS_CONTENT ?>" />
8 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
9 <meta name="description" content="<?=$PAGE_DESCRIPTION?>" />
11 <?php if (!empty($PAGE_KEYWORDS)) { ?>
12 <meta name="keywords" content="<?=$PAGE_KEYWORDS?>" />
14 <meta name="language" content="<?=DEFAULT_LANGUAGE?>" />
15 <meta name="document-type" content="Public" />
16 <meta name="document-rating" content="General" />
17 <meta name="generator" content="PhpWiki" />
18 <meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
19 <base href="<?=PHPWIKI_BASE_URL?>" />
20 <link rel="shortcut icon" href="<?=$Theme->getImageURL('favicon.ico')?>" />
22 * Additional navigation links are provided here in the html header for browsers
23 * which support them: Mozilla, iCab, Amaya (and certain versions of Opera??).
25 * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
26 * http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
28 <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?>
29 <link rel="home" title="<?=HOME_PAGE?>" href="<?=WikiURL(HOME_PAGE)?>" />
30 <link rel="help" title="<?=_("HowToUseWiki")?>" href="<?=WikiURL(
31 _("HowToUseWiki"))?>" />
32 <link rel="copyright" title="<?=COPYRIGHTPAGE_TITLE?>" href="<?=COPYRIGHTPAGE_URL?>" />
33 <link rel="author" title="<?=AUTHORPAGE_TITLE?>" href="<?=AUTHORPAGE_URL?>" />
34 <link rel="search" title="<?=_("FindPage")?>" href="<?=WikiURL(
37 * Provide alternate variations of the page content:
38 * 'viewsource' and 'browse'.
39 * Translated pages could go here too.
41 if (!empty($revision)) {
42 $args = $request->getargs();
43 $action = $args['action'];
44 if (!($action == "viewsource")) {
45 $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName());
46 $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource'));
48 if (!($action == "browse")) {
49 $alternatelinkTitle = $page->getName();
50 $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
52 <link rel="alternate" title="<?= $alternatelinkTitle ?>" href="<?= $alternatelinkUrl ?>" />
55 * Link tag for RSS auto-discovery. See
56 * http://diveintomark.org/archives/2002/05/30.html#rss_autodiscovery
57 * http://www.oreillynet.com/cs/weblog/view/wlg/1475
60 <link rel="alternate" type="application/rss+xml" title="RSS" href="<?=WikiURL(_("RecentChanges"), array('format' => 'rss'))?>" />
63 * Add some user-specific links.
65 <?php if (!$user->isSignedIn()) {
66 /* For users not signed in */ ?>
67 <link rel="bookmark" title="<?=_("SandBox")?>" href="<?=WikiURL(
69 <link rel="bookmark" title="<?=_("WikiWikiWeb")?>" href="<?=WikiURL(
70 _("WikiWikiWeb"))?>" />
73 <?php if ($user->isadmin()) {
74 /* Only for the Administrator */ ?>
75 <link rel="bookmark" title="<?=_("PhpWikiAdministration")?>" href="<?=WikiURL(
76 _("PhpWikiAdministration"))?>" />
79 <?php if ($user->isSignedIn()) {
80 /* For signed-in users */ ?>
81 <link rel="bookmark" title="<?=_("UserPreferences")?>" href="<?=WikiURL(
82 _("UserPreferences"))?>" />
83 <?php /* User's calendar page
85 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
86 $UserCalPageUrl = WikiURL($UserCalPageTitle);
88 <link rel="bookmark" title="<?= $UserCalPageTitle ?>" href="<?= $UserCalPageUrl ?>" />
89 <?php /* Today's calendar page for the user if it exists
91 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
92 $dbi = $request->getDbh();
93 if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
94 $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
96 <link rel="bookmark" title="<?= $UserCalPageTodayTitle ?>" href="<?= $UserCalPageTodayUrl ?>" />
98 <?php } //end of links for signed-in user ?>
100 <?= $Theme->getCSS() ?>
102 // avoid redundant bookmark title for custom home page
103 if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
106 $pagetitle = " - ". AsString($TITLE);
108 <title><?=WIKI_NAME.$pagetitle?></title>
112 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
113 // $Log: not supported by cvs2svn $
114 // Revision 1.12 2003/11/22 17:58:43 carstenklapp
115 // Minor internal change: Removed redundant call to gettext within
116 // fmt(). (locale make: head.tmpl:49: warning: keyword nested in keyword
119 // Revision 1.11 2003/11/21 23:06:12 carstenklapp
120 // Bugfix: Some <link rel=...> links in Mozilla/iCab were always linking
121 // to the english pages even when DEFAULT_LANGUAGE != 'en'. (Rewrapped
122 // text for a more complete xgettext string extraction: 'cd
123 // phpwiki/locale;make' to update po/mo files).
125 // Revision 1.10 2003/03/07 20:51:59 dairiki
126 // New feature: Automatic extraction of keywords (for the meta keywords tag)
127 // from Category* and Topic* links on each page.
129 // Revision 1.9 2003/03/07 02:45:51 dairiki
130 // Rename BASE_URL to PHPWIKI_BASE_URL. Lycos pre-defines BASE_URL (to
133 // Revision 1.8 2003/03/05 21:38:15 dairiki
134 // More HTML comment reduction patches by "Klaus-Guenter Leiss"
135 // <Leiss.Klaus-Guenter@epost.de>
137 // (With a few adjustments by me. Any bugs are probably my fault.)
139 // Revision 1.7 2003/02/26 22:27:17 dairiki
140 // Fix and refactor FrameInclude plugin (more or less).
142 // (This should now generate valid HTML. Woohoo!)
144 // The output when using the Sidebar theme is ugly enough that it should
145 // be considered broken. (But the Sidebar theme appears pretty broken in
146 // general right now.)
148 // (Personal comment (not to be taken personally): I must say that I
149 // remain unconvinced of the usefulness of this plugin.)
151 // Revision 1.6 2003/01/11 22:29:47 carstenklapp
152 // Tweak redundant bookmark title when browsing a custom home page with
153 // the same name as the wiki (i.e. avoid titles like "MyWiki - MyWiki"
154 // when HOME_PAGE==WIKI_NAME)