]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - templates/browse.html
forgot to change the plugin-link name to ViewSource in committing version 1.46
[SourceForge/phpwiki.git] / templates / browse.html
1 <?php echo "<?xml version='1.0' encoding='${CHARSET}'?>\n"; ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
3   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head>
6 <!-- phpwiki source:
7 $Id: browse.html,v 1.48 2002-01-12 07:04:36 carstenklapp Exp $
8 ${RCS_IDS}
9 -->
10 <meta http-equiv="Content-Type" content="text/html; charset=${CHARSET}" />
11 <!-- <meta name="robots" content="index,follow" /> -->
12 <meta name="keywords" content="${SPLIT_PAGE}, ${WIKI_NAME}" />
13 <?php if (!empty($PAGE_DESCRIPTION)) { ?>
14   <meta name="description" content="${PAGE_DESCRIPTION}" />
15 <?php } ?>
16 <base href="${BASE_URL}" />
17 <link rel="shortcut icon" href="favicon.ico" />
18 ${CSS}
19 <title>${WIKI_NAME}: ${SPLIT_PAGE}</title>
20
21 <!--
22 -->
23 </head>
24 <body>
25 ${EDIT_FAIL_MESSAGES}${THANK_YOU}<div>${LOGO}</div>
26 <h1><?plugin-link BackLinks page="[pagename]" class="backlinks" linktext="${SPLIT_PAGE}" ?></h1>
27 <div class="br"><br clear="all" class="ignore" /></div>
28 ${VIEW_WARNINGS}
29 <div class="wikitext">${CONTENT}</div>
30 <hr class="ignore" noshade="noshade" />
31 ${LASTMODIFIED}
32 <hr noshade="noshade" class="toolbar" />
33 <!-- I would like not to have to use these tables, and managed to
34      get this stuff to work more or less correctly using
35      CSSs float:left; and float:right;.  However float:right; seems
36      to cause MSIE4.01/NT to hang. 
37      So, we use tables...  -->
38 <table summary="Toolbar 1: Page actions and search for pages." class="toolbar" width="100%"
39        cellpadding="0" cellspacing="0" border="0"><tr valign="baseline">
40   <td>
41     <?php if ($page->get('locked') && !$user->is_admin()) { ?>
42       $_("Page locked")
43     <?php } else { ?>
44       <?php if ($IS_CURRENT) { ?>
45         <a class="wikiaction" href="${ACTION}edit">$_("Edit")</a>
46       <?php } else { ?>
47         <a class="wikiaction" href="${ACTION}edit&amp;version=${VERSION}"
48           >$_("Edit old revision")</a>
49       <?php } ?>
50     <?php } ?>
51     <?php if ($user->is_admin()) { ?>
52       <?php if ($page->get('locked')) { ?>
53         | <a class="wikiadmin" href="${ACTION}unlock">$_("Unlock page")</a>
54       <?php } else { ?>
55         | <a class="wikiadmin" href="${ACTION}lock">$_("Lock page")</a>
56       <?php } ?>
57       | <a class="wikiadmin" href="${ACTION}remove">$_("Remove page")</a>
58     <?php } ?>
59     | <?plugin-link PageHistory page="[pagename]" ?>
60     <?php if ($IS_CURRENT) { ?>
61       | <a class="wikiaction" href="${ACTION}diff&amp;previous=major">$_("Diff")</a>
62     <?php } else { ?>
63       | <a class="wikiaction" 
64            href="${ACTION}diff&amp;version=${VERSION}&amp;previous=major">$_("Diff")</a>
65     <?php } ?>
66   </td>
67   <td align="right">${SEARCH}</td>
68 </tr></table>
69 <table summary="Toolbar 2: Sign in." class="toolbar" width="100%"
70        cellpadding="0" cellspacing="0" border="0"><tr valign="baseline">
71   <td>${SIGNIN}</td>
72   <td align="right"></td>
73 </tr></table>
74
75 <?php /*
76 <hr class="ignore" noshade="noshade" />
77 <small>${RELATEDPAGES}</small>
78 */ ?>
79 <?php // FIXME:hack
80 ob_start();
81 global $ErrorManager;
82 $ErrorManager->flushPostponedErrors();
83 $errmsgs = ob_get_contents();
84 ob_end_clean();
85 if ($errmsgs)
86     echo Element('div', array('class' => 'errors'),
87                  QElement('h4', _("PHP Warnings"))
88                  . $errmsgs);
89 ?>
90 <table summary="For debugging only, really." class="toolbar" width="100%"
91        cellpadding="0" cellspacing="0" border="0"><tr><td>
92   <?plugin-link _BackendInfo 
93                 linktext=_("DebugInfo")
94                 targetpage=_("DebugInfo")
95                 page=[pagename] ?>
96  | 
97     <?php if ($IS_CURRENT) { ?>
98         <?plugin-link ViewSource 
99                 linktext=_("ViewSource")
100                 targetpage=_("ViewSource")
101                 page=[pagename] ?>
102     <?php } else { ?>
103         <?plugin-link ViewSource 
104                 linktext=_("ViewSource")
105                 targetpage=_("ViewSource")
106                 page=[pagename] ?>
107                 rev=${VERSION} ?>
108     <?php } ?>
109 </td></tr></table>
110 </form>
111 </body>
112 </html>