dbFields = array( 'shortname'=>'', 'enablePages'=>false, 'enablePosts'=>false, 'enableDefaultHomePage'=>false ); } function __construct() { parent::__construct(); global $Url; $this->enable = false; if( $this->getDbField('enablePosts') && ($Url->whereAmI()=='post') ) { $this->enable = true; } elseif( $this->getDbField('enablePages') && ($Url->whereAmI()=='page') ) { $this->enable = true; } elseif( $this->getDbField('enableDefaultHomePage') && ($Url->whereAmI()=='home') ) { $this->enable = true; } if(!$Url->notFound()) { $this->enable = false; } } public function form() { global $Language; $html = '