description = ""; $this->icon = "image"; } public function loadView() { parent::loadView(); $document = $this->getDocument(); $settings = $document->getUser()->getConfiguration()->getSettings(); if ($settings->isRecaptchaEnabled()) { $document->getHead()->loadGoogleRecaptcha($settings->getRecaptchaSiteKey()); } } public function getCode(): string { $html = parent::getCode(); $content = $this->getAccountContent(); $icon = $this->createIcon($this->icon, "fas", "fa-3x"); $html .= "
$icon

$this->title

$this->description

$content
"; $settings = $this->getDocument()->getUser()->getConfiguration()->getSettings(); if ($settings->isRecaptchaEnabled()) { $siteKey = $settings->getRecaptchaSiteKey(); $html .= ""; } return $html; } protected abstract function getAccountContent(); }