Added the per-user 'manage contacts' permission.
[cocanwiki.git] / templates / page.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4 <title>::title_html::</title>
5 ::if(is_old_version)::<meta name="robots" content="noindex,nofollow"/>::end::
6 <meta name="description" content="::description_html_tag::" />
7 <meta name="author" content="http://www.merjis.com/" />
8 <link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
9 ::if(has_host_css)::<link rel="stylesheet" href="/_global.css" type="text/css" title="Standard"/>::end::
10 ::if(has_page_css)::<link rel="stylesheet" href="/::page_html_tag::/styles.css::if(is_old_version)::?version=::old_version::::end::" type="text/css" title="Standard"/>::end::
11 </head><body>
12
13 <h1>::title_html::</h1>
14
15 ::if(redirected)::
16 <p id="redirected"><em>(Redirected from <a href="/::original_page_html_tag::?no_redirect=1">::original_page_html::</a>)</em></p>
17 ::end::
18
19 ::if(is_old_version)::
20 <div id="old_version">
21 <p>You are seeing an old version of this page.</p>
22 <ul>
23 <li> Go to the <a href="/::page_html_tag::">live version</a> of this page.</li>
24 <li> See other <a href="/::page_html_tag::/history">old versions</a> of this page.</li>
25 <li> See the <a href="/::page_html_tag::/diff?version=::old_version::">differences</a> between this version and the previous version of this page.</li>
26 ::if(can_edit)::
27 <li> <a href="/_bin/restore_form.cmo?page=::page_url::&version=::old_version::">Restore</a> this version live.</li>
28 ::end::
29 </ul>
30 </div>
31 ::end::
32
33 ::table(sections)::
34 ::if(has_divname)::<div id="::divname_html_tag::">::end::::if(can_edit)::<p class="edit_link">[<a href="/::page_html_tag::/edit#::ordering::" title="Edit this section">edit</a>]</p>::end::<a name="::sectionname_html_tag::"></a><h2>::sectionname_html::</h2>
35 ::content::
36 ::if(has_divname)::</div>::end::::end::
37
38 <ul id="topmenu" class="menu">
39 ::if(can_edit)::
40 <li class="first"> <a href="/::page_html_tag::/edit"><strong>Edit&nbsp;this&nbsp;page</strong></a> </li>
41 ::end::
42 <li ::if(can_edit)::::else::class="first"::end::> <a href="/">Home&nbsp;page</a> </li>
43 <li> <a href="/_sitemap">Sitemap</a> </li>
44 ::if(can_edit)::
45 <li> <a href="/_recent">Recent&nbsp;changes</a> </li>
46 <li> <a href="/::page_html_tag::/history">Versions&nbsp;of&nbsp;this&nbsp;page</a> </li>
47 ::end::
48 </ul>
49
50 <ul id="bottommenu" class="menu">
51 <li class="first"> <a href="/">Home&nbsp;page</a> </li>
52 ::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
53 ::end::
54 <li> <a href="/_sitemap">Sitemap</a> </li>
55 </ul>
56
57 <ul id="editmenu" class="menu">
58 <li class="first"> ::if(user_logged_in):: ::username_html:: <a href="/_logout">(logout)</a> ::else:: <a href="/_login">Create account or log in</a> ::end:: </li>
59 ::if(can_edit)::
60 <li> <a href="/::page_html_tag::/edit"><strong>Edit this page</strong></a> </li>
61 <li> <a href="/_recent">Recent changes</a> </li>
62 <li> <a href="/::page_html_tag::/history">Versions of this page</a> </li>
63 <li> <a href="/_images">Images</a> </li>
64 <li> <a href="/_files">Files</a> </li>
65 <li> <a href="/::page_html_tag::/editcss">Edit stylesheet for this page</a> </li>
66 <li> <a href="/_bin/edit_sitemenu.cmo">Edit site menu</a> </li>
67 ::end::
68 ::if(can_manage_users)::
69 <li> <a href="/_users">Manage users</a> </li>
70 ::end::
71 ::if(can_manage_contacts)::
72 <li> <a href="/_bin/contacts.cmo">Contact forms</a> </li>
73 ::end::
74 ::if(can_edit)::
75 <li> <a href="/_admin">Server administration</a> </li>
76 ::end::
77 </ul>
78
79 <hr/>
80
81 <ul id="footer" class="menu">
82 <li class="first"> Last change: ::last_modified_date_html:: </li>
83 <li> <a href="/copyright">Copyright &copy; ::year::</a> </li>
84 <li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
85 </ul>
86
87 </body>
88 </html>