2 rcs_id('$Id: head.tmpl,v 1.3 2004-06-04 20:34:11 rurban 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="<?=
31 _("HowToUseWiki")?>" href="<?=WikiURL(
32 _("HowToUseWiki"))?>" />
33 <link rel="copyright" title="<?=COPYRIGHTPAGE_TITLE?>" href="<?=COPYRIGHTPAGE_URL?>" />
34 <link rel="author" title="<?=AUTHORPAGE_TITLE?>" href="<?=AUTHORPAGE_URL?>" />
35 <link rel="search" title="<?=
36 _("FindPage")?>" href="<?=WikiURL(
39 * Provide alternate variations of the page content:
40 * 'viewsource' and 'browse'.
41 * Translated pages could go here too.
43 if (!empty($revision)) {
44 $args = $request->getargs();
45 $action = $args['action'];
46 if (!($action == "viewsource")) {
47 $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName());
48 $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource'));
50 if (!($action == "browse")) {
51 $alternatelinkTitle = $page->getName();
52 $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
54 <link rel="alternate" title="<?= $alternatelinkTitle ?>" href="<?= $alternatelinkUrl ?>" />
57 * Link tag for RSS auto-discovery. See
58 * http://diveintomark.org/archives/2002/05/30.html#rss_autodiscovery
59 * http://www.oreillynet.com/cs/weblog/view/wlg/1475
62 <link rel="alternate" type="application/rss+xml" title="RSS" href="<?=WikiURL(
63 _("RecentChanges"), array('format' => 'rss'))?>" />
65 * Add some user-specific links.
67 <?php if (!$user->isSignedIn()) {
68 /* For users not signed in */ ?>
69 <link rel="bookmark" title="<?=
70 _("SandBox")?>" href="<?=WikiURL(
72 <link rel="bookmark" title="<?=
73 _("WikiWikiWeb")?>" href="<?=WikiURL(
74 _("WikiWikiWeb"))?>" />
76 <?php if ($user->isadmin()) {
77 /* Only for the Administrator */ ?>
78 <link rel="bookmark" title="<?=
79 _("PhpWikiAdministration")?>" href="<?=WikiURL(
80 _("PhpWikiAdministration"))?>" />
82 <?php if ($user->isSignedIn()) {
83 /* For signed-in users */ ?>
84 <link rel="bookmark" title="<?=
85 _("UserPreferences")?>" href="<?=WikiURL(
86 _("UserPreferences"))?>" />
87 <?php /* User's calendar page
89 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
90 $UserCalPageUrl = WikiURL($UserCalPageTitle);
92 <link rel="bookmark" title="<?= $UserCalPageTitle ?>" href="<?= $UserCalPageUrl ?>" />
93 <?php /* Today's calendar page for the user if it exists
95 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
96 $dbi = $request->getDbh();
97 if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
98 $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
100 <link rel="bookmark" title="<?= $UserCalPageTodayTitle ?>" href="<?= $UserCalPageTodayUrl ?>" />
102 <?php } //end of links for signed-in user ?>
103 <?= $Theme->getCSS() ?>
105 // avoid redundant bookmark title for custom home page
106 if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
109 $pagetitle = " - ". AsString($TITLE);
111 <title><?=WIKI_NAME.$pagetitle?></title>
112 <?= $Theme->getMoreHeaders() ?>
115 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
116 // $Log: not supported by cvs2svn $
117 // Revision 1.2 2004/06/03 12:30:38 rurban
118 // support edit_toolbar in other themes
120 // Revision 1.1 2004/05/12 19:42:16 rurban
121 // new Crao theme by Arnaud Fontaine and Laurent Lunati
123 // Revision 1.13 2003/12/05 15:36:39 carstenklapp
124 // Improvements: to make it easier to run multiple wikis off of one set
125 // of code, urls for link rel author and copyright now defined in
127 // Bugfix: updated language meta tag to use DEFAULT_LANGUAGE constant
128 // instead of old LANG global.
129 // Internal change: Eliminated RECENT_CHANGES constant from RSS link,
130 // just use the easily localizable _("RecentChanges").
133 // Revision 1.12 2003/11/22 17:58:43 carstenklapp
134 // Minor internal change: Removed redundant call to gettext within
135 // fmt(). (locale make: head.tmpl:49: warning: keyword nested in keyword
138 // Revision 1.11 2003/11/21 23:06:12 carstenklapp
139 // Bugfix: Some <link rel=...> links in Mozilla/iCab were always linking
140 // to the english pages even when DEFAULT_LANGUAGE != 'en'. (Rewrapped
141 // text for a more complete xgettext string extraction: 'cd
142 // phpwiki/locale;make' to update po/mo files).
144 // Revision 1.10 2003/03/07 20:51:59 dairiki
145 // New feature: Automatic extraction of keywords (for the meta keywords tag)
146 // from Category* and Topic* links on each page.
148 // Revision 1.9 2003/03/07 02:45:51 dairiki
149 // Rename BASE_URL to PHPWIKI_BASE_URL. Lycos pre-defines BASE_URL (to
152 // Revision 1.8 2003/03/05 21:38:15 dairiki
153 // More HTML comment reduction patches by "Klaus-Guenter Leiss"
154 // <Leiss.Klaus-Guenter@epost.de>
156 // (With a few adjustments by me. Any bugs are probably my fault.)
158 // Revision 1.7 2003/02/26 22:27:17 dairiki
159 // Fix and refactor FrameInclude plugin (more or less).
161 // (This should now generate valid HTML. Woohoo!)
163 // The output when using the Sidebar theme is ugly enough that it should
164 // be considered broken. (But the Sidebar theme appears pretty broken in
165 // general right now.)
167 // (Personal comment (not to be taken personally): I must say that I
168 // remain unconvinced of the usefulness of this plugin.)
170 // Revision 1.6 2003/01/11 22:29:47 carstenklapp
171 // Tweak redundant bookmark title when browsing a custom home page with
172 // the same name as the wiki (i.e. avoid titles like "MyWiki - MyWiki"
173 // when HOME_PAGE==WIKI_NAME)