File manager - Edit - /home/verseaumee/quaadraa/admin/views/settings.php
Back
<?php /* admin/views/settings.php */ ?> <?php if (isset($_GET['saved'])): ?> <div class="alert alert-success">Paramètres enregistrés avec succès.</div> <?php endif; ?> <form method="POST" action="/admin/settings" class="admin-form"> <input type="hidden" name="_csrf" value="<?= htmlspecialchars($csrf) ?>"> <!-- Général --> <div class="admin-section"> <h2 class="admin-section-title">Général</h2> <div class="settings-grid"> <div class="adm-field"> <label for="site_name">Nom du site</label> <input type="text" id="site_name" name="site_name" value="<?= htmlspecialchars($settings['site_name'] ?? '') ?>"> </div> <div class="adm-field"> <label for="site_tagline">Slogan</label> <input type="text" id="site_tagline" name="site_tagline" value="<?= htmlspecialchars($settings['site_tagline'] ?? '') ?>"> </div> <div class="adm-field"> <label for="site_url">URL du site</label> <input type="url" id="site_url" name="site_url" value="<?= htmlspecialchars($settings['site_url'] ?? '') ?>"> </div> <div class="adm-field"> <label for="google_analytics_id">Google Analytics ID</label> <input type="text" id="google_analytics_id" name="google_analytics_id" placeholder="G-XXXXXXXXXX" value="<?= htmlspecialchars($settings['google_analytics_id'] ?? '') ?>"> </div> </div> </div> <!-- Contact --> <div class="admin-section"> <h2 class="admin-section-title">Contact</h2> <div class="settings-grid"> <div class="adm-field"> <label for="site_email">Email principal</label> <input type="email" id="site_email" name="site_email" value="<?= htmlspecialchars($settings['site_email'] ?? '') ?>"> </div> <div class="adm-field"> <label for="site_phone">Téléphone</label> <input type="text" id="site_phone" name="site_phone" value="<?= htmlspecialchars($settings['site_phone'] ?? '') ?>"> </div> <div class="adm-field"> <label for="site_whatsapp">WhatsApp</label> <input type="text" id="site_whatsapp" name="site_whatsapp" value="<?= htmlspecialchars($settings['site_whatsapp'] ?? '') ?>"> </div> <div class="adm-field full-width"> <label for="site_address_lome">Adresse Lomé</label> <input type="text" id="site_address_lome" name="site_address_lome" value="<?= htmlspecialchars($settings['site_address_lome'] ?? '') ?>"> </div> <div class="adm-field full-width"> <label for="site_address_dubai">Adresse Dubai</label> <input type="text" id="site_address_dubai" name="site_address_dubai" value="<?= htmlspecialchars($settings['site_address_dubai'] ?? '') ?>"> </div> </div> </div> <!-- Réseaux sociaux --> <div class="admin-section"> <h2 class="admin-section-title">Réseaux sociaux</h2> <div class="settings-grid"> <?php foreach (['facebook_url' => 'Facebook', 'linkedin_url' => 'LinkedIn', 'twitter_url' => 'Twitter/X', 'youtube_url' => 'YouTube'] as $key => $label): ?> <div class="adm-field"> <label for="<?= $key ?>"><?= $label ?></label> <input type="url" id="<?= $key ?>" name="<?= $key ?>" placeholder="https://..." value="<?= htmlspecialchars($settings[$key] ?? '') ?>"> </div> <?php endforeach; ?> </div> </div> <button type="submit" class="adm-btn adm-btn-primary" style="max-width:220px"> Enregistrer les paramètres </button> </form> <style> .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } .full-width { grid-column: span 2; } .adm-field { margin-bottom: 0; } .adm-field label { display: block; font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#8e8e8e; margin-bottom:.4rem; } .adm-field input { width:100%;padding:.7rem 1rem;background:#1c1c1c; border:1px solid #3a3a3a;color:#f0ece4;font-family:inherit;font-size:.92rem; transition:border-color .2s; } .adm-field input:focus { outline:none; border-color:#C9A84C; } .adm-btn { display:inline-block;padding:.8rem 1.5rem;cursor:pointer;border:1px solid #3a3a3a; background:none;color:#8e8e8e;font-family:'Barlow Condensed',sans-serif; font-size:.85rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase; transition:all .2s;margin-top:1rem; } .adm-btn-primary { background:#C9A84C;border-color:#C9A84C;color:#0d0d0d; } .adm-btn-primary:hover { background:#e0c47a;border-color:#e0c47a; } </style>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings