function anteprimaTit($testo, $lunghezza, $puntini, $id) {
$ellipses = $puntini;
$testo = strip_tags($testo);
if (strlen($testo) <= $lunghezza) {
return $testo;
}
$javaid = strval($id);
$ultimo_spazio = strrpos(substr($testo, 0, $lunghezza), ' ');
$ant = substr($testo, 0, $ultimo_spazio);
if ($ellipses) {
$ant .= ' ...';
}
return $ant;
}
function anteprima($testo, $lunghezza, $puntini, $id) {
$ellipses = $puntini;
$testo = strip_tags($testo);
if (strlen($testo) <= $lunghezza) {
return $testo;
}
$javaid = strval($id);
$ultimo_spazio = strrpos(substr($testo, 0, $lunghezza), ' ');
$ant = substr($testo, 0, $ultimo_spazio);
if ($ellipses) {
$ant .= ' ...';
}
return $ant.'';
}
?>
Patch Notes
Version: 1.0.1
- 28/06/2026 17:15
- Fixed bugs and improved gameplay balance.