"Help page", "version" => "0.6", "author" => "Starbeamrainbowlabs", "description" => "Adds the help action. You really want this one.", "id" => "page-help", "code" => function() { global $settings; add_action("help", function() { global $settings, $version, $help_sections; $title = "Help - $settings->sitename"; // Sort the help sections by key ksort($help_sections, SORT_NATURAL); $content .= "

$settings->sitename Help

Welcome to $settings->sitename!

$settings->sitename is powered by Pepperminty wiki, a complete wiki in a box you can drop into your server.

"; // todo Insert a tabel of contents here? foreach($help_sections as $index => $section) { // Todo add a button that you can click to get a permanent link // to this section. $content .= "

" . $section["title"]; $content .= $section["content"] . "\n"; } $content = "

$settings->sitename Help

Administrator Actions

By default, the delete and move actions are shown on the nav bar. These can be used by administrators to delete or move pages.

The other thing admininistrators can do is update the wiki (provided they know the site's secret). This page can be found here: Update $settings->sitename.

$settings->sitename is currently running on Pepperminty Wiki $version

"; exit(page_renderer::render_main($title, $content)); }); // Register a help section on general navigation add_help_section("5-navigation", "Navigation", "

Navigating

All the navigation links can be found on the top bar, along with a search box (if your site administrator has enabled it). There is also a "More..." menu in the top right that contains some additional links that you may fine useful.

This page, along with the credits page, can be found on the bar at the bottom of every page.

"); } ]); ?>