2 rcs_id('$Id: head.tmpl,v 1.15 2004-05-16 23:10:45 rurban Exp $');
5 <meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
6 <meta http-equiv="content-language" content="<?=$GLOBALS['LANG']?>" />
7 <?php $ROBOTS_CONTENT = $ROBOTS_META ? $ROBOTS_META : "noindex,nofollow"; ?>
8 <meta name="robots" content="<?= $ROBOTS_CONTENT ?>" />
9 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
10 <meta name="description" content="<?=$PAGE_DESCRIPTION?>" />
12 <?php if (!empty($PAGE_KEYWORDS)) { ?>
13 <meta name="keywords" content="<?=$PAGE_KEYWORDS?>" />
15 <meta name="language" content="<?=$GLOBALS['LANG']?>" />
16 <meta name="document-type" content="Public" />
17 <meta name="document-rating" content="General" />
18 <meta name="generator" content="PhpWiki" />
19 <meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
20 <base href="<?=PHPWIKI_BASE_URL?>" />
21 <link rel="shortcut icon" href="<?=$Theme->getImageURL('favicon.ico')?>" />
23 * Additional navigation links are provided here in the html header for browsers
24 * which support them: Mozilla, iCab, Amaya (and certain versions of Opera??).
26 * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
27 * http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
29 <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?>
30 <link rel="home" title="<?=HOME_PAGE?>" href="<?=WikiURL(HOME_PAGE)?>" />
31 <link rel="help" title="<?=_("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="<?=_("FindPage")?>" href="<?=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 = $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="<?= $alternatelinkTitle ?>" href="<?= $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="<?=WikiURL(_("RecentChanges"), array('format' => 'rss'))?>" />
64 * Add some user-specific links.
66 <?php if (!$user->isSignedIn()) {
67 /* For users not signed in */ ?>
68 <link rel="bookmark" title="<?=_("SandBox")?>" href="<?=WikiURL(
70 <link rel="bookmark" title="<?=_("WikiWikiWeb")?>" href="<?=WikiURL(
71 _("WikiWikiWeb"))?>" />
74 <?php if ($user->isadmin()) {
75 /* Only for the Administrator */ ?>
76 <link rel="bookmark" title="<?=_("PhpWikiAdministration")?>" href="<?=WikiURL(
77 _("PhpWikiAdministration"))?>" />
80 <?php if ($user->isSignedIn()) {
81 /* For signed-in users */ ?>
82 <link rel="bookmark" title="<?=_("UserPreferences")?>" href="<?=WikiURL(
83 _("UserPreferences"))?>" />
84 <?php /* User's calendar page
86 $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
87 $UserCalPageUrl = WikiURL($UserCalPageTitle);
89 <link rel="bookmark" title="<?= $UserCalPageTitle ?>" href="<?= $UserCalPageUrl ?>" />
90 <?php /* Today's calendar page for the user if it exists
92 $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
93 $dbi = $request->getDbh();
94 if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
95 $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
97 <link rel="bookmark" title="<?= $UserCalPageTodayTitle ?>" href="<?= $UserCalPageTodayUrl ?>" />
99 <?php } //end of links for signed-in user ?>
101 <?= $Theme->getCSS() ?>
103 // avoid redundant bookmark title for custom home page
104 if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
107 $pagetitle = " - ". AsString($TITLE);
109 <title><?= WIKI_NAME.$pagetitle ?></title>
110 <?= $Theme->getMoreHeaders() ?>
114 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
115 // $Log: not supported by cvs2svn $
116 // Revision 1.14 2004/02/17 12:19:49 rurban
117 // support to add more javascript dynamically
119 // Revision 1.13 2003/12/05 15:36:39 carstenklapp
120 // Improvements: to make it easier to run multiple wikis off of one set
121 // of code, urls for link rel author and copyright now defined in
123 // Bugfix: updated language meta tag to use DEFAULT_LANGUAGE constant
124 // instead of old LANG global.
125 // Internal change: Eliminated RECENT_CHANGES constant from RSS link,
126 // just use the easily localizable _("RecentChanges").
129 // Revision 1.12 2003/11/22 17:58:43 carstenklapp
130 // Minor internal change: Removed redundant call to gettext within
131 // fmt(). (locale make: head.tmpl:49: warning: keyword nested in keyword
134 // Revision 1.11 2003/11/21 23:06:12 carstenklapp
135 // Bugfix: Some <link rel=...> links in Mozilla/iCab were always linking
136 // to the english pages even when DEFAULT_LANGUAGE != 'en'. (Rewrapped
137 // text for a more complete xgettext string extraction: 'cd
138 // phpwiki/locale;make' to update po/mo files).
140 // Revision 1.10 2003/03/07 20:51:59 dairiki
141 // New feature: Automatic extraction of keywords (for the meta keywords tag)
142 // from Category* and Topic* links on each page.
144 // Revision 1.9 2003/03/07 02:45:51 dairiki
145 // Rename BASE_URL to PHPWIKI_BASE_URL. Lycos pre-defines BASE_URL (to
148 // Revision 1.8 2003/03/05 21:38:15 dairiki
149 // More HTML comment reduction patches by "Klaus-Guenter Leiss"
150 // <Leiss.Klaus-Guenter@epost.de>
152 // (With a few adjustments by me. Any bugs are probably my fault.)
154 // Revision 1.7 2003/02/26 22:27:17 dairiki
155 // Fix and refactor FrameInclude plugin (more or less).
157 // (This should now generate valid HTML. Woohoo!)
159 // The output when using the Sidebar theme is ugly enough that it should
160 // be considered broken. (But the Sidebar theme appears pretty broken in
161 // general right now.)
163 // (Personal comment (not to be taken personally): I must say that I
164 // remain unconvinced of the usefulness of this plugin.)
166 // Revision 1.6 2003/01/11 22:29:47 carstenklapp
167 // Tweak redundant bookmark title when browsing a custom home page with
168 // the same name as the wiki (i.e. avoid titles like "MyWiki - MyWiki"
169 // when HOME_PAGE==WIKI_NAME)