]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/top.tmpl
Added more <link rel=""> headers for Mozilla & iCab. (Activate the "Site Navigation...
[SourceForge/phpwiki.git] / themes / default / templates / top.tmpl
1 <?php  // -*-html-*-
2 /* $Id: top.tmpl,v 1.7 2002-02-16 10:34:39 carstenklapp Exp $
3  *
4  * This template is responsible mainly for the outer level <html> stuff and the and <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: top.tmpl,v 1.7 2002-02-16 10:34:39 carstenklapp Exp $ -->
13 <meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
14 <?php
15 if ($ROBOTS_META) {
16   ?><meta name="robots" content="<?= $ROBOTS_META ?>" /><?php
17 } else {
18   ?><meta name="robots" content="noindex,nofollow" /><?php
19 }
20 ?>
21 <meta name="keywords" content="<?=split_pagename($page->getName())?>, <?=WIKI_NAME?>" />
22 <?php
23 if (!empty($PAGE_DESCRIPTION)) {
24   ?><meta name="description" content="<?=$PAGE_DESCRIPTION?>" /><?php
25 }
26 ?>
27 <meta name="PHPWIKI_VERSION" content="<?=PHPWIKI_VERSION?>" />
28 <base href="<?=BASE_URL?>" />
29 <link rel="shortcut icon" href="<?=$Theme->getImageURL('favicon.ico')?>" />
30 <?php
31 /**
32  * Additional navigation links are provided here in the html header for browsers
33  * which support them: Mozilla, iCab, Amaya (and certain versions of Opera??).
34  *
35  * See http://www.w3.org/TR/html401/struct/links.html#edef-LINK
36  *     http://www.euronet.nl/~tekelenb/WWW/LINK/index.html
37  */
38 if (!($page->getName() == HomePage)) {
39   global $LANG; $l = $LANG == 'C' ? false : " hreflang=\"$LANG\" lang=\"$LANG\"";
40   ?><link rel="home" title="<?=HomePage?>" href="<?=WikiURL(HomePage)?>"<?=$l?> /><?php
41 }
42 ?>
43 <link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
44 <link rel="author" title="<?=_("The PhpWiki Programming Team")?>" href="http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam" />
45 <?php /*
46 <link rel="author" title="Your Name Here" href="<?=WikiURL("YourNameAsWikiWordHere")?>" />
47 */ ?>
48 <link rel="help" title="<?=_("HowToUseWiki")?>" href="<?=WikiURL(_("HowToUseWiki"))?>" />
49 <link rel="search" title="<?=_("FindPage")?>" href="<?=WikiURL(_("FindPage"))?>" />
50 <?php
51 /* Provide alternate variations of the page content:
52  * 'viewsource' and 'browse'.
53  * RSS or translated pages could go here too. */
54 if (!empty($revision)) {
55   $args = $request->getargs(); $a = $args['action'];
56   if (!($a == "viewsource")) {
57     ?><link rel="alternate" title="<?= fmt("%s: %s",_("View Source"), $page->getName())?>" href="<?= WikiURL($revision, array('action' => 'viewsource'))?>" /><?php
58   }
59   if (!($a == "browse")) {
60     ?><link rel="alternate" title="<?=$page->getName()?>" href="<?= WikiURL($revision, array('action' => 'browse'))?>" /><?php
61   }
62 }
63 ?>
64 <?php
65 /* Add some user-specific links. */
66 if ($user->isadmin()) {
67   ?><link rel="bookmark" title="<?=_("PhpWikiAdministration")?>" href="<?=WikiURL(_("PhpWikiAdministration"))?>" /><?php
68 }
69 if ($user->isSignedIn()) {
70   $cal = $user->getId() . "'s"._("Calendar");
71   ?><link rel="bookmark" title="<?= $cal ?>" href="<?=WikiURL($cal)?>" /><?php
72   ?><link rel="bookmark" title="<?=_("UserPreferences")?>" href="<?=WikiURL(_("UserPreferences"))?>" /><?php
73 } else {
74   ?><link rel="bookmark" title="<?=_("SandBox")?>" href="<?=WikiURL(_("SandBox"))?>" /><?php
75   ?><link rel="bookmark" title="<?=_("WikiWikiWeb")?>" href="<?=WikiURL(_("WikiWikiWeb"))?>" /><?php
76 }
77 ?>
78 <?= $Theme->getCSS() ?>
79 <title><?=WIKI_NAME?> - <?=AsString($TITLE)?></title>
80 </head>
81 <?= Template('body') ?>
82 <!-- phpwiki source:
83 <?=$RCS_IDS?>
84 -->
85 </html>