a18589ee0a
Provides foundation for help pages that are generated from loaded extensions, starting with comprehensive search documentation. Addresses #522
31 lines
757 B
PHP
31 lines
757 B
PHP
<?php
|
|
|
|
class HelpPagesTheme extends Themelet
|
|
{
|
|
|
|
public function display_list_page(array $pages)
|
|
{
|
|
global $page;
|
|
|
|
$page->set_title("Help Pages");
|
|
$page->set_heading("Help Pages");
|
|
|
|
$nav_block = new Block("Help", "", "left", 0);
|
|
foreach ($pages as $link=>$desc) {
|
|
$link = make_link("help/{$link}");
|
|
$nav_block->body .= "<a href='{$link}'>".html_escape($desc)."</a><br/>";
|
|
}
|
|
|
|
$page->add_block($nav_block);
|
|
$page->add_block(new Block("Help Pages", "See list of pages to left"));
|
|
}
|
|
|
|
public function display_help_page(String $title)
|
|
{
|
|
global $page;
|
|
|
|
$page->set_title("Help - $title");
|
|
$page->set_heading("Help - $title");
|
|
}
|
|
|
|
}
|