= e($heroHeading) ?>
= e($heroSubtitle) ?>
Portfolio
O mnie
Cennik
= e($item['title']) ?>
- = e(trim($feat)) ?>
query('SELECT * FROM folders WHERE is_public = 1 ORDER BY sort_order ASC, id DESC')->fetchAll(); $selectedFolderSlug = $_GET['folder'] ?? ''; $activeFolder = null; if ($selectedFolderSlug !== '') { foreach ($folders as $f) { if ($f['slug'] === $selectedFolderSlug) { $activeFolder = $f; break; } } } if ($activeFolder) { $stmtPhotos = $pdo->prepare('SELECT * FROM photos WHERE folder_id = :fid ORDER BY sort_order ASC, id ASC'); $stmtPhotos->execute([':fid' => $activeFolder['id']]); $photos = $stmtPhotos->fetchAll(); } else { $photos = $pdo->query(' SELECT p.*, f.slug AS folder_slug, f.name AS folder_name FROM photos p JOIN folders f ON f.id = p.folder_id WHERE f.is_public = 1 ORDER BY f.sort_order ASC, p.sort_order ASC, p.id ASC ')->fetchAll(); } $pricing = $pdo->query('SELECT * FROM pricing ORDER BY sort_order ASC, id ASC')->fetchAll(); $contactMsg = ''; $contactError = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['send_contact'])) { $honeypot = trim($_POST['website_url'] ?? ''); $name = trim($_POST['name'] ?? ''); $email = trim($_POST['email'] ?? ''); $message = trim($_POST['message'] ?? ''); if ($honeypot !== '') { $contactMsg = 'Wiadomość została wysłana.'; } elseif ($name === '' || !filter_var($email, FILTER_VALIDATE_EMAIL) || $message === '') { $contactError = 'Uzupełnij poprawnie imię, adres e-mail oraz treść wiadomości.'; } else { $to = setting('contact_email', 'kontakt@twojadomena.pl'); $subject = 'Nowe zapytanie ze strony: ' . $name; $body = "Imię: {$name}\nE-mail: {$email}\n\nWiadomość:\n{$message}"; $headers = [ 'MIME-Version: 1.0', 'Content-Type: text/plain; charset=UTF-8', 'From: ' . $to, 'Reply-To: ' . $email, ]; if (@mail($to, '=?UTF-8?B?' . base64_encode($subject) . '?=', $body, implode("\r\n", $headers))) { $contactMsg = 'Dziękuję za wiadomość! Odpowiem najszybciej jak to możliwe.'; } else { $contactError = 'Nie udało się wysłać wiadomości przez funkcję mail(). Skonfiguruj SMTP lub spróbuj ponownie.'; } } } $siteTitle = setting('site_title'); $heroHeading = setting('hero_heading'); $heroSubtitle = setting('hero_subtitle'); $aboutText = setting('about_text'); $igUrl = setting('instagram_url'); $fbUrl = setting('facebook_url'); ?>
= e($heroSubtitle) ?>