' . $css . ''; if ($applicationHtml !== null) { $inner = $applicationHtml; } elseif ($isDemo && $page['slug'] === 'home' && is_file($this->root . '/templates/home.php')) { ob_start(); try { require $this->root . '/templates/home.php'; $inner = ob_get_contents(); } finally { ob_end_clean(); } } else { $inner = $cmsHtml; } $content = '
' . $inner . '
'; if ($isDemo) { $content = '' . $content; } if (is_file($this->root . '/templates/layout.php')) { ob_start(); try { require $this->root . '/templates/layout.php'; return ob_get_contents(); } finally { ob_end_clean(); } } // Technical fallback while the independent designer supplies the layout. $navigation = ''; foreach ($site['navigation'] as $item) { $navigation .= '' . $e($item['label']) . ' '; } return '' . '' . $e($meta['title']) . '' . '' . ($meta['canonical'] !== '' ? '' : '') . '' . $cmsStyleTag . '' . '
' . $e($site['name']) . '
' . $content . ''; } public static function form(array $data): string { $e = self::escape(...); $errors = $data['formErrors']; $values = $data['formValues']; $html = '

Porozmawiajmy o Twoim projekcie

Opisz, czego potrzebujesz. Zgłoszenie trafi do zespołu FDMTech.

'; if ($data['formNotice']) { $html .= '

' . $e($data['formNotice']) . '

'; } if ($errors) { $html .= '

Sprawdź formularz

'; } $html .= '
' . ''; foreach (['name' => ['Imię i nazwisko', 160, 'text', 'name'], 'email' => ['E-mail', 254, 'email', 'email'], 'company' => ['Firma (opcjonalnie)', 200, 'text', 'organization'], 'phone' => ['Telefon (opcjonalnie)', 60, 'tel', 'tel'], 'message' => ['Wiadomość', 10000, 'textarea', 'off']] as $field => [$label, $max, $type, $autocomplete]) { $attributes = ' id="inquiry-' . $field . '" name="' . $field . '" maxlength="' . $max . '" autocomplete="' . $autocomplete . '"' . (in_array($field, ['name', 'email', 'message'], true) ? ' required' : '') . (isset($errors[$field]) ? ' aria-invalid="true" aria-describedby="error-' . $field . '"' : ''); $html .= '
'; $html .= $type === 'textarea' ? '' : ''; if (isset($errors[$field])) { $html .= '

' . $e($errors[$field]) . '

'; } $html .= '
'; } $html .= '
'; if (isset($errors['consent'])) { $html .= ''; } return $html . '

Zapisujemy Twoje zgłoszenie i oddzwaniamy. Potwierdzenia e-mail nie wysyłamy.

' . '
'; } }