Home : ordre modules = menu, ajout Garage, respect enabled_modules
Deploy to Pacha Family / deploy (push) Failing after 4s
Deploy to Pacha Family / deploy (push) Failing after 4s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
b9403ef86b
commit
8584bf8c1f
@@ -88,6 +88,8 @@ return [
|
||||
'mod_gifts_desc' => "Planifiqueu els regals per a cada infant, per Nadal i els aniversaris.",
|
||||
'mod_budget_name' => 'Pressupost',
|
||||
'mod_budget_desc' => 'Seguiment de despeses fixes, ingressos i balanç del compte familiar.',
|
||||
'mod_garage_name' => 'Garatge',
|
||||
'mod_garage_desc' => 'Seguiu el manteniment dels vostres vehicles, les peces i els costos.',
|
||||
'cta_open' => 'Obrir',
|
||||
'cta_explore' => 'Explorar',
|
||||
'cta_view_lists' => 'Veure les llistes',
|
||||
|
||||
@@ -89,6 +89,8 @@ return [
|
||||
'mod_gifts_desc' => 'Plan gifts for each child, for Christmas and birthdays.',
|
||||
'mod_budget_name' => 'Budget',
|
||||
'mod_budget_desc' => 'Track fixed expenses, income and family account balance.',
|
||||
'mod_garage_name' => 'Garage',
|
||||
'mod_garage_desc' => 'Track vehicle maintenance, parts used and costs.',
|
||||
'cta_open' => 'Open',
|
||||
'cta_explore' => 'Explore',
|
||||
'cta_view_lists' => 'View lists',
|
||||
|
||||
@@ -91,6 +91,8 @@ return [
|
||||
'mod_gifts_desc' => 'Planifiez les cadeaux pour chaque enfant, pour Noël et les anniversaires.',
|
||||
'mod_budget_name' => 'Budget',
|
||||
'mod_budget_desc' => 'Suivi des dépenses fixes, revenus et équilibre du compte familial.',
|
||||
'mod_garage_name' => 'Garage',
|
||||
'mod_garage_desc' => 'Suivez l\'entretien de vos véhicules, les pièces utilisées et les coûts.',
|
||||
'cta_open' => 'Ouvrir',
|
||||
'cta_explore' => 'Explorer',
|
||||
'cta_view_lists' => 'Voir les listes',
|
||||
|
||||
@@ -34,43 +34,53 @@ require __DIR__ . '/header.php';
|
||||
<section class="pf-section">
|
||||
<h2 style="color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6);"><?= tr('home_modules_title') ?></h2>
|
||||
|
||||
<?php $mods = $_SESSION['enabled_modules'] ?? ['calendar','budget','holidays','gifts','garage']; ?>
|
||||
<div class="pf-modules-grid">
|
||||
|
||||
<?php if (in_array('calendar', $mods)): ?>
|
||||
<a href="/family-calendar.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">📅</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_calendar_name') ?></h3>
|
||||
<div class="pf-card-desc">
|
||||
<?= tr('mod_calendar_desc') ?>
|
||||
</div>
|
||||
<div class="pf-card-desc"><?= tr('mod_calendar_desc') ?></div>
|
||||
<span class="pf-card-cta"><?= tr('cta_open') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<a href="/holidays.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">🏖️</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_holidays_name') ?></h3>
|
||||
<div class="pf-card-desc">
|
||||
<?= tr('mod_holidays_desc') ?>
|
||||
</div>
|
||||
<span class="pf-card-cta"><?= tr('cta_explore') ?></span>
|
||||
</a>
|
||||
|
||||
<a href="/gift-list.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">🎁</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_gifts_name') ?></h3>
|
||||
<div class="pf-card-desc">
|
||||
<?= tr('mod_gifts_desc') ?>
|
||||
</div>
|
||||
<span class="pf-card-cta"><?= tr('cta_view_lists') ?></span>
|
||||
</a>
|
||||
|
||||
<?php if (in_array('budget', $mods)): ?>
|
||||
<a href="/budget.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">💰</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_budget_name') ?></h3>
|
||||
<div class="pf-card-desc">
|
||||
<?= tr('mod_budget_desc') ?>
|
||||
</div>
|
||||
<div class="pf-card-desc"><?= tr('mod_budget_desc') ?></div>
|
||||
<span class="pf-card-cta"><?= tr('cta_manage') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (in_array('holidays', $mods)): ?>
|
||||
<a href="/holidays.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">🏖️</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_holidays_name') ?></h3>
|
||||
<div class="pf-card-desc"><?= tr('mod_holidays_desc') ?></div>
|
||||
<span class="pf-card-cta"><?= tr('cta_explore') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (in_array('gifts', $mods)): ?>
|
||||
<a href="/gift-list.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">🎁</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_gifts_name') ?></h3>
|
||||
<div class="pf-card-desc"><?= tr('mod_gifts_desc') ?></div>
|
||||
<span class="pf-card-cta"><?= tr('cta_view_lists') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (in_array('garage', $mods)): ?>
|
||||
<a href="/garage.php" class="pf-module-card">
|
||||
<div class="pf-card-icon">🚗</div>
|
||||
<h3 class="pf-card-title"><?= tr('mod_garage_name') ?></h3>
|
||||
<div class="pf-card-desc"><?= tr('mod_garage_desc') ?></div>
|
||||
<span class="pf-card-cta"><?= tr('cta_open') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user