<?php
|
|
|
|
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
|
|
//
|
|
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
|
|
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
|
|
// $Id$
|
|
|
|
require_once('lib/wizard/wizard.php');
|
|
|
|
/**
|
|
* The Wizard's language handler
|
|
*/
|
|
class AdminWizardAutoTOC extends Wizard
|
|
{
|
|
public function pageTitle()
|
|
{
|
|
return tra('Set up Auto TOC');
|
|
}
|
|
public function isEditable()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function isVisible()
|
|
{
|
|
global $prefs;
|
|
return $prefs['wiki_auto_toc'] === 'y';
|
|
}
|
|
|
|
public function onSetupPage($homepageUrl)
|
|
{
|
|
// Run the parent first
|
|
parent::onSetupPage($homepageUrl);
|
|
|
|
if (! $this->isVisible()) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
public function getTemplate()
|
|
{
|
|
$wizardTemplate = 'wizard/admin_auto_toc.tpl';
|
|
return $wizardTemplate;
|
|
}
|
|
|
|
public function onContinue($homepageUrl)
|
|
{
|
|
// Run the parent first
|
|
parent::onContinue($homepageUrl);
|
|
}
|
|
}
|