aggiunta vista singola circolare

This commit is contained in:
2025-08-26 11:18:54 +02:00
parent 1814530c64
commit edb8d4e873
6 changed files with 152 additions and 138 deletions

View File

@ -0,0 +1,26 @@
<?php
\defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
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>
<?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>