ottimizzazione Visualizzazione lista e singoli

This commit is contained in:
2025-08-29 13:02:28 +02:00
parent 22fb3c0871
commit 06e6a5e7ef
5 changed files with 32 additions and 144 deletions

View File

@ -7,20 +7,20 @@ use Joomla\CMS\Language\Text;
/** @var \Pcrt\Component\Circolari\Site\View\Circolare\HtmlView $this */
$item = $this->item;
?>
<article class="com-content-article item-page">
<header class="page-header">
<h1 class="page-title"><?php echo htmlspecialchars($item->title ?: 'Circolare'); ?></h1>
</header>
<div class="article-body mt-3">
<?php echo $item->description ?: $item->testo ?: $item->descrizione ?: '<em>(Nessun testo)</em>'; ?>
<div class="container my-5 mega-container">
<div class="row mb-4 align-items-end">
<div class="col-md-9 col-12">
<h1 class="h2 mb-1"><?= $this->escape($item->title); ?></h1>
</div>
<div class="col-md-3 col-12 text-md-end mt-2 mt-md-0">
<a href="#" class="small text-decoration-none text-uppercase fw-bold">Condividi</a>
</div>
<div class="article-body mt-3">
<?php echo $item->description ?: $item->testo ?: $item->descrizione ?: '<em>(Nessun testo)</em>'; ?>
</div>
</div>
<?php if (!empty($item->attachment)) : ?>
<p class="mt-3">
<a href="<?php echo htmlspecialchars($item->attachment); ?>" target="_blank" rel="noopener">
<?php echo Text::_('COM_CIRCOLARI_DOWNLOAD_ATTACHMENT') ?: 'Scarica allegato'; ?>
</a>
</p>
<?php endif; ?>
</article>
</div>