Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
29 righe
1004 B
29 righe
1004 B
<?php |
|
if (empty($changelog)) { |
|
?> |
|
<div class="alert alert-danger" role="alert"> |
|
<h4 class="alert-heading"><?=$this->translate('Attenzione!')?></h4> |
|
<p><?php echo $this->translate('La sezione richiesta non è stata trovata')?></p> |
|
<hr> |
|
<a href="<?php echo $this->endpoint ?>"><?=$this->translate('Ritorna alla sezione novità')?></a> |
|
</div> |
|
<?php |
|
} else { |
|
$changelog->user = 1; |
|
$this->renderTimestampAndNewLabel($changelog); |
|
echo $this->parser->extendedContent($changelog->content); |
|
?> |
|
<script type="text/javascript"> |
|
async function updateCounter() { |
|
let formData = new FormData(); |
|
formData.append("command", "COUNT_UNREAD"); |
|
const response = await fetch("<?php echo $this->endpoint?>", { |
|
method: "POST", |
|
body: formData |
|
}) |
|
$("#changelogs-counter").text(await response.text()) |
|
} |
|
updateCounter(); |
|
</script> |
|
<?php |
|
}
|
|
|