]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/head.tmpl
Remove rcs_id
[SourceForge/phpwiki.git] / themes / default / templates / head.tmpl
1 <?php  // -*-php-*-
2 // $Id$
3 ?>
4 <head>
5 <?php if (ENABLE_XHTML_XML and strstr($request->get('HTTP_ACCEPT'),'application/xhtml+xml')) { ?>
6 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=<?php echo $charset?>" />
7 <?php } else { ?>
8 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset?>" />
9 <?php } ?>
10 <meta http-equiv="Content-Style-Type" content="text/css" />
11 <meta http-equiv="Content-Language" content="<?php echo $GLOBALS['LANG']?>" />
12 <?php $ROBOTS_CONTENT = isset($ROBOTS_META) ? $ROBOTS_META : "noindex,nofollow"; ?>
13 <meta name="robots" content="<?php echo $ROBOTS_CONTENT ?>" />
14 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
15 <meta name="description" content="<?php echo $PAGE_DESCRIPTION?>" />
16 <?php } ?>
17 <?php if (!empty($PAGE_KEYWORDS)) { ?>
18 <meta name="keywords" content="<?php echo $PAGE_KEYWORDS?>" />
19 <?php } ?>
20 <meta name="language" content="<?php echo $GLOBALS['LANG']?>" />
21 <meta name="document-type" content="Public" />
22 <meta name="document-rating" content="General" />
23 <meta name="generator" content="PhpWiki" />
24 <meta name="PHPWIKI_VERSION" content="<?php echo PHPWIKI_VERSION?>" />
25 <base href="<?php echo PHPWIKI_BASE_URL?>" />
26 <link rel="shortcut icon" href="<?php echo $WikiTheme->getImageURL('favicon.ico')?>" />
27 <?php /* The next few lines are wrapped in an odd manner to allow gettext string extraction: cd locale;make */ ?>
28 <link rel="home" title="<?php echo HOME_PAGE?>" href="<?php echo WikiURL(HOME_PAGE)?>" />
29 <link rel="help" title="<?php echo 
30 _("HowToUseWiki")?>" href="<?php echo WikiURL(
31 _("HowToUseWiki"))?>" />
32 <link rel="copyright" title="<?php echo COPYRIGHTPAGE_TITLE?>" href="<?php echo COPYRIGHTPAGE_URL?>" />
33 <link rel="author" title="<?php echo AUTHORPAGE_TITLE?>" href="<?php echo AUTHORPAGE_URL?>" />
34 <link rel="search" title="<?php echo 
35 _("FindPage")?>" href="<?php echo WikiURL(
36 _("FindPage"))?>" />
37 <?php /**
38        * Provide alternate variations of the page content:
39        * 'viewsource' and 'browse'.
40        * Translated pages could go here too.
41        */
42       if (!empty($revision)) {
43           $args = $request->getArgs();
44           $action = empty($args['action']) ? 'browse' : $args['action'];
45           if (!($action == "viewsource")) {
46             $alternatelinkTitle = fmt("%s: %s", _("View Source"), $page->getName());
47             $alternatelinkUrl = WikiURL($revision, array('action' => 'viewsource'));
48           }
49           if (!($action == "browse")) {
50             $alternatelinkTitle = $page->getName();
51             $alternatelinkUrl = WikiURL($revision, array('action' => 'browse'));
52           } ?>
53 <link rel="alternate" title="<?php echo $alternatelinkTitle ?>" href="<?php echo $alternatelinkUrl ?>" />
54 <?php }
55       /**
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
59        */
60 ?>
61 <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo WikiURL(
62 _("RecentChanges"), array('format' => 'rss'))?>" />
63 <link rel="alternate" type="application/atom+xml" title="ATOM" href="<?php echo WikiURL(
64 _("RecentChanges"), array('format' => 'atom'))?>" />
65 <?php /**
66        * Add some user-specific links.
67        */ ?>
68 <?php if (!$user->isSignedIn()) {
69       /* For users not signed in */ ?>
70 <link rel="bookmark" title="<?php echo 
71 _("SandBox")?>" href="<?php echo WikiURL(
72 _("SandBox"))?>" />
73 <link rel="bookmark" title="<?php echo 
74 _("WikiWikiWeb")?>" href="<?php echo WikiURL(
75 _("WikiWikiWeb"))?>" />
76 <?php } ?>
77 <link rel="alternate" type="application/x-wiki" title="Edit this page!" href="<?php echo WikiURL($page,array('action'=>'edit')) ?>" />
78 <?php if ($user->isAdmin()) {
79       /* Only for the Administrator */ ?>
80 <link rel="bookmark" title="<?php echo 
81 _("PhpWikiAdministration")?>" href="<?php echo WikiURL(
82 _("PhpWikiAdministration"))?>" />
83 <?php } ?>
84 <?php if ($user->isSignedIn()) {
85       /* For signed-in users */ ?>
86 <link rel="bookmark" title="<?php echo 
87 _("UserPreferences")?>" href="<?php echo WikiURL(
88 _("UserPreferences"))?>" />
89 <?php /* User's calendar page
90        */
91       $UserCalPageTitle = $user->getId() . SUBPAGE_SEPARATOR ._("Calendar");
92       $UserCalPageUrl = WikiURL($UserCalPageTitle);
93       ?>
94 <link rel="bookmark" title="<?php echo $UserCalPageTitle ?>" href="<?php echo $UserCalPageUrl ?>" />
95 <?php /* Today's calendar page for the user if it exists
96        */
97       $UserCalPageTodayTitle = $UserCalPageTitle . SUBPAGE_SEPARATOR . strftime("%Y-%m-%d", time()); //FIXME
98       $dbi = $request->getDbh();
99       if ($dbi->isWikiPage($UserCalPageTodayTitle)) {
100           $UserCalPageTodayUrl = WikiURL($UserCalPageTodayTitle);
101           ?>
102 <link rel="bookmark" title="<?php echo $UserCalPageTodayTitle ?>" href="<?php echo $UserCalPageTodayUrl ?>" />
103 <?php } ?>
104 <?php } //end of links for signed-in user ?>
105 <?php echo $WikiTheme->getCSS() ?><?php
106   // avoid redundant bookmark title for custom home page
107   if ($page->getName() == WIKI_NAME && HOME_PAGE == WIKI_NAME)
108       $pagetitle = "";
109   else
110       $pagetitle = " - ". AsString($TITLE);
111 ?>
112 <title><?php echo WIKI_NAME.$pagetitle ?></title>
113 <?php if (ENABLE_OPEN_GRAPH) { ?>
114 <meta property="og:title" content="<?php echo strip_tags($TITLE) ?>"/>
115 <meta property="og:site_name" content="<?php echo WIKI_NAME ?>"/>
116 <?php } ?>
117 <?php echo $WikiTheme->getMoreHeaders() ?>
118 </head>