' . $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 . ''
. ''
. $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
';
foreach ($errors as $field => $error) {
$html .= '- ' . $e($error) . '
';
}
$html .= '
';
}
$html .= '';
}
}