40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<?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;
|
|
|
|
$buttons = $this->getModel()->getBottoniFirma((int)$item->tipologia_firma_id);
|
|
?>
|
|
|
|
<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>
|
|
|
|
<?php if ($item->firma_obbligatoria && $this->getModel()->userCanFirmare($item->id, $this->getModel()->currentUser->id) && !empty($buttons)) : ?>
|
|
<div class="mt-4">
|
|
<div class="d-flex flex-wrap gap-2">
|
|
<?php foreach ($buttons as $btn) : ?>
|
|
<button type="button" class="btn btn-primary btn-sm">
|
|
<?php echo htmlspecialchars($btn->label, ENT_QUOTES, 'UTF-8'); ?>
|
|
</button>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="article-body mt-3">
|
|
<?php echo $item->description ?: $item->testo ?: $item->descrizione ?: '<em>(Nessun testo)</em>'; ?>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|