]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/head.tmpl
FileFinder: added OS specific code. Just for testing. Will be changed to seperate...
[SourceForge/phpwiki.git] / themes / default / templates / head.tmpl
1 <?php  // -*-html-*-
2 /* $Id: head.tmpl,v 1.2 2002-09-09 08:38:19 rurban Exp $
3  *
4  * This template is responsible mainly for the outer level <html> stuff and the <head>.
5  */
6 printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n", CHARSET);
7 ?>
8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
10 <html xmlns="http://www.w3.org/1999/xhtml">
11 <head>
12 <!-- $Id: head.tmpl,v 1.2 2002-09-09 08:38:19 rurban Exp $ -->
13 <meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
14 <?php $ROBOTS_CONTENT = $ROBOTS_META ? $ROBOTS_META : "noindex,nofollow"; ?>
15 <meta name="robots" content="<?= $ROBOTS_CONTENT ?>" />
16 <meta name="keywords" content="<?=split_pagename($page->getName())?>, <?=WIKI_NAME?>" />
17 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
18 <meta name="description" content="<?=$PAGE_DESCRIPTION?>" />
19 <?php } ?>
20 <meta name="language" content="<?=$LANG?>" />
21 <meta name="document-type" content="Public" />
22 <meta name="document-rating" content="General" />
23 <meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
24 <base href="<?=BASE_URL?>" />
25 <?php /**
26        * Additional navigation links are provided here in the html header for browsers
27        * which support them: Mozilla, iCab, Amaya (and certain versions of Opera??).
28        *
29        * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
30        *     http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
31        */ ?>
32 <link rel="shortcut icon" href="<?=$Theme->getImageURL('favicon.ico')?>" />
33 <link rel="home" title="<?=HOME_PAGE?>" href="<?=WikiURL(HOME_PAGE)?>" />
34 <link rel="help" title="<?=_("HowToUseWiki")?>" href="<?=WikiURL(_("HowToUseWiki"))?>" />
35 <link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
36 <?php
37       $wikiadminName = _("The PhpWiki Programming Team");
38       $wikiadminUrl = "http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam";
39       ?>
40 <link rel="author" title="<?= $wikiadminName ?>" href="<?= $wikiadminUrl ?>" />
41 <link rel="search" title="<?=_("FindPage")?>" href="<?=WikiURL(_("FindPage"))?>" />
42 <?php /**
43        * Provide alternate variations of the page content:
44        * 'viewsource' and 'browse'.
45        * RSS or translated pages could go here too.
46        */
47       if (!empty($revision)) {
48           $args = $request->getargs();
49           $action = $args['action'];
50           if (!($action == "viewsource")) {
51             $alternatelinkTitle = fmt("%s: %s",_("View Source"), $page->getName());
52             $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource'));
53           }
54           if (!($action == "browse")) {
55             $alternatelinkTitle = $page->getName();
56             $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
57           } ?>
58 <link rel="alternate" title="<?= $alternatelinkTitle ?>" href="<?= $alternatelinkUrl ?>" />
59 <?php } ?>
60
61 <?php /**
62        * Add some user-specific links.
63        */ ?>
64 <?php if (!$user->isSignedIn()) {
65       /* For users not signed in */ ?>
66 <link rel="bookmark" title="<?=_("SandBox")?>" href="<?=WikiURL(_("SandBox"))?>" />
67 <link rel="bookmark" title="<?=_("WikiWikiWeb")?>" href="<?=WikiURL(_("WikiWikiWeb"))?>" />
68 <?php } ?>
69
70 <?php if ($user->isadmin()) {
71       /* Only for the Administrator */ ?>
72 <link rel="bookmark" title="<?=_("PhpWikiAdministration")?>" href="<?=WikiURL(_("PhpWikiAdministration"))?>" />
73 <?php } ?>
74
75 <?php if ($user->isSignedIn()) {
76       /* For signed-in users */ ?>
77 <link rel="bookmark" title="<?=_("UserPreferences")?>" href="<?=WikiURL(_("UserPreferences"))?>" />
78 <?php /* User's calendar page
79        */
80       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
81       $UserCalPageUrl = WikiURL($UserCalPageTitle);
82       ?>
83 <link rel="bookmark" title="<?= $UserCalPageTitle ?>" href="<?= $UserCalPageUrl ?>" />
84 <?php /* Today's calendar page for the user if it exists
85        */
86       $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
87       $dbi = $request->getDbh();
88       if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
89           $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
90           ?>
91 <link rel="bookmark" title="<?= $UserCalPageTodayTitle ?>" href="<?= $UserCalPageTodayUrl ?>" />
92 <?php } ?>
93 <?php } //end of links for signed-in user ?>
94
95 <?= $Theme->getCSS() ?>
96 <title><?=WIKI_NAME?> - <?=AsString($TITLE)?></title>
97 </head>