aggiunta vista singola circolare
This commit is contained in:
26
site/tmpl/circolare/default.php
Normal file
26
site/tmpl/circolare/default.php
Normal 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>
|
||||
Reference in New Issue
Block a user