feat: contactos editáveis, equipa com título/aptidões, mensalidades e reviews Google
- Contactos: nova página no backoffice (fitme3070_info) e 964 201 137 como telefone principal; o telefone secundário só aparece quando existe. - Equipa: título, aptidões/funções e formações; o cartão mostra foto, nome e título e abre um cartão horizontal de detalhe (hover no desktop, toque no telemóvel) sem mexer na grelha. - Mensalidades: cartões editáveis com um destaque, modal de inscrição que guarda o pedido (RGPD + estado + campos reservados para o CRM) e avisa o ginásio por e-mail; lista de pedidos com estados, notas e CSV. - Reviews Google via Places API (New), filtradas por classificação mínima e em cache configurável; página de configuração com pesquisa do Place ID. - Assets com ?v=<mtime>: site/assets é servido com cache imutável de 1 ano. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a494d59a5
commit
f95c9ebc52
27 files changed
+2063
-16
No files matched your search
@@ -4,7 +4,8 @@ require __DIR__ . '/../../../config/functions.php';
|
||||
$user = require_admin();
|
||||
|
||||
$errors = [];
|
||||
$data = ['name' => '', 'birthday' => '', 'at' => '', 'status' => 'ativo', 'description' => ''];
|
||||
$data = ['name' => '', 'title' => '', 'birthday' => '', 'at' => '', 'status' => 'ativo', 'description' => '',
|
||||
'skills' => '', 'certifications' => ''];
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
csrf_check();
|
||||
@@ -14,6 +15,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
'at' => trim($_POST['at'] ?? ''),
|
||||
'status' => $_POST['status'] ?? 'ativo',
|
||||
'description' => trim($_POST['description'] ?? ''),
|
||||
'title' => mb_substr(trim($_POST['title'] ?? ''), 0, 100),
|
||||
'skills' => trim($_POST['skills'] ?? ''),
|
||||
'certifications' => trim($_POST['certifications'] ?? ''),
|
||||
];
|
||||
if ($data['name'] === '') $errors[] = 'O nome é obrigatório.';
|
||||
|
||||
@@ -70,7 +74,15 @@ include __DIR__ . '/../../../includes/header.php';
|
||||
</select></div>
|
||||
<div class="col-md-4"><label class="form-label">Foto</label>
|
||||
<input type="file" class="form-control" name="photo" accept=".jpg,.jpeg,.png,.gif,.webp"></div>
|
||||
<div class="col-12"><label class="form-label">Descrição</label>
|
||||
<div class="col-12"><label class="form-label">Título</label>
|
||||
<input class="form-control" name="title" maxlength="100" placeholder="ex.: Personal Trainer · Coach CrossFit" value="<?= htmlspecialchars($data['title'] ?? '') ?>">
|
||||
<div class="form-text">Aparece no site por baixo do nome.</div></div>
|
||||
<div class="col-md-6"><label class="form-label">Aptidões / Funções</label>
|
||||
<textarea class="form-control" name="skills" rows="5" placeholder="Uma por linha"><?= htmlspecialchars($data['skills'] ?? '') ?></textarea></div>
|
||||
<div class="col-md-6"><label class="form-label">Formações</label>
|
||||
<textarea class="form-control" name="certifications" rows="5" placeholder="Uma por linha"><?= htmlspecialchars($data['certifications'] ?? '') ?></textarea></div>
|
||||
<div class="col-12"><div class="form-text mt-0">Aptidões e formações aparecem no cartão de detalhe do site (hover no computador, toque no telemóvel).</div></div>
|
||||
<div class="col-12"><label class="form-label">Descrição <span class="text-muted small">(opcional — aparece no cartão de detalhe)</span></label>
|
||||
<textarea class="form-control js-wysiwyg" data-wysiwyg-height="200" name="description" rows="3"><?= htmlspecialchars($data['description']) ?></textarea></div>
|
||||
</div>
|
||||
<div class="mt-4 d-flex gap-2">
|
||||
|
||||
Reference in new issue
Block a user