Largest pages.
[cocanwiki.git] / templates / page.html
index 986c5f1..91d8735 100644 (file)
@@ -5,7 +5,7 @@
 ::if(is_old_version)::<meta name="robots" content="noindex,nofollow"/>::end::
 <meta name="description" content="::description_html_tag::" />
 <meta name="author" content="http://www.merjis.com/" />
-<link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
+<link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
 ::if(has_host_css)::<link rel="stylesheet" href="/_global.css" type="text/css" title="Standard"/>::end::
 ::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::
 </head><body>
 <li> Go to the <a href="/::page_html_tag::">live version</a> of this page.</li>
 <li> See other <a href="/::page_html_tag::/history">old versions</a> of this page.</li>
 <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>
+::if(can_edit)::
 <li> <a href="/_bin/restore_form.cmo?page=::page_url::&version=::old_version::">Restore</a> this version live.</li>
+::end::
 </ul>
 </div>
 ::end::
 
 ::table(sections)::
-::if(has_divname)::<div id="::divname_html_tag::">::end::<p class="edit_link">[<a href="/::page_html_tag::/edit#::ordering::" title="Edit this section">edit</a>]</p><a name="::sectionname_html_tag::"></a><h2>::sectionname_html::</h2>
+::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::::if(has_sectionname)::<a name="::linkname_html_tag::"></a><h2>::sectionname_html::</h2>::end::
 ::content::
 ::if(has_divname)::</div>::end::::end::
 
 <ul id="topmenu" class="menu">
-<li> <a href="/::page_html_tag::/edit"><strong>Edit&nbsp;this&nbsp;page</strong></a> | </li>
-<li> <a href="/">Home&nbsp;page</a> | </li>
-<li> <a href="/_sitemap">Sitemap</a> | </li>
-<li> <a href="/_recent">Recent&nbsp;changes</a> | </li>
+::if(can_edit)::
+<li class="first"> <a href="/::page_html_tag::/edit"><strong>Edit&nbsp;this&nbsp;page</strong></a> </li>
+::end::
+<li ::if(can_edit)::::else::class="first"::end::> <a href="/">Home&nbsp;page</a> </li>
+<li> <a href="/_sitemap">Sitemap</a> </li>
+::if(can_edit)::
+<li> <a href="/_recent">Recent&nbsp;changes</a> </li>
 <li> <a href="/::page_html_tag::/history">Versions&nbsp;of&nbsp;this&nbsp;page</a> </li>
+::end::
 </ul>
 
+<div id="menu_div">
 <ul id="bottommenu" class="menu">
-<li> <a href="/::page_html_tag::/edit"><strong>Edit&nbsp;this&nbsp;page</strong></a> | </li>
-<li> <a href="/">Home&nbsp;page</a> | </li>
-<li> <a href="/_sitemap">Sitemap</a> | </li>
-<li> <a href="/_recent">Recent&nbsp;changes</a> | </li>
-<li> <a href="/::page_html_tag::/history">Versions&nbsp;of&nbsp;this&nbsp;page</a> | </li>
-<li> <a href="/_images">Images</a> | </li>
-<li> <a href="/_files">Files</a> | </li>
-<li> <a href="/::page_html_tag::/editcss">Edit&nbsp;stylesheet&nbsp;for&nbsp;this&nbsp;page</a> | </li>
-<li> <a href="/_bin/admin/admin.cmo">Wiki&nbsp;administration</a> | </li>
-<li> ::if(user_logged_in):: ::username_html:: <a href="/_logout">(logout)</a> ::else:: <a href="/_login">Create&nbsp;account&nbsp;or&nbsp;login</a> ::end:: </li>
+<li class="first"> <a href="/">Home&nbsp;page</a> </li>
+::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
+::end::
+<li> <a href="/_sitemap">Sitemap</a> </li>
 </ul>
 
+<ul id="editmenu" class="menu">
+<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>
+::if(can_edit)::
+<li> <a href="/::page_html_tag::/edit"><strong>Edit this page</strong></a> </li>
+<li> <a href="/_recent">Recent changes</a> </li>
+<li> <a href="/::page_html_tag::/history">Versions of this page</a> </li>
+<li> <a href="/_images">Images</a> </li>
+<li> <a href="/_files">Files</a> </li>
+<li> <a href="/_bin/largest_pages.cmo">Largest pages</a> </li>
+<li> <a href="/::page_html_tag::/editcss">Edit stylesheet for this page</a> </li>
+<li> <a href="/_bin/edit_sitemenu.cmo">Edit site menu</a> </li>
+::end::
+::if(can_manage_users)::
+<li> <a href="/_users">Manage users</a> </li>
+::end::
+::if(can_manage_contacts)::
+<li> <a href="/_bin/contacts.cmo">Contact forms</a> </li>
+::end::
+::if(can_edit)::
+<li> <a href="/_admin">Server administration</a> </li>
+::end::
+</ul>
+</div>
+
+<div id="footer_div">
 <hr/>
 
 <ul id="footer" class="menu">
-<li> Last change: ::last_modified_date_html:: | </li>
-<li> <a href="/copyright">Copyright &copy; 2004</a> | </li>
+<li class="first"> Last change: ::last_modified_date_html:: </li>
+<li> <a href="/copyright">Copyright &copy; ::year::</a> </li>
+::if(has_feedback_email)::
+<li> <a href="/_bin/send_feedback_form.cmo?page=::page_url::">Send feedback</a> </li>
+::end::
 <li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
 </ul>
+</div>
 
 </body>
 </html>
\ No newline at end of file