addSettingSelect( [ 'category' => self::CATEGORY_GENERAL, 'name' => self::SETTING_MAINTENANCE, 'choices' => [ 'Non' => 0, 'Oui' => 1, ] ] ); $this->addSettingText( [ 'category' => self::CATEGORY_GENERAL, 'name' => self::SETTING_MAINTENANCE_IP_AUTHORIZED, ] ); // email $this->addSettingText( [ 'category' => self::CATEGORY_EMAIL, 'name' => self::SETTING_EMAIL_FROM, ] ); $this->addSettingText( [ 'category' => self::CATEGORY_EMAIL, 'name' => self::SETTING_EMAIL_FROM_NAME, ] ); } public function getCategories() { return [ self::CATEGORY_GENERAL, self::CATEGORY_EMAIL ]; } }