= htmlspecialchars($post['title']) ?> = htmlspecialchars($post['title']) ?>
= htmlspecialchars($preview) ?>
text($post['content'])), 0, $len, '…');
}
function _renderCard(array $post, array $privateCats, array $allCats, \Parsedown $pd): void
{
$postUrl = '/post/' . rawurlencode($post['slug']);
$isDraft = !$post['published'];
$isAvantPremiere = $post['published'] && strtotime((string)($post['published_at'] ?? '')) > time();
$postCat = trim($post['category'] ?? '');
$isPrivate = $postCat !== '' && in_array($postCat, $privateCats, true);
$isLocked = $isAvantPremiere && !hasCapability('view_previews');
$coverStyle = _cardCoverStyle($post, $allCats);
$preview = _cardExcerpt($post, $pd);
?>
= htmlspecialchars($preview) ?>
= htmlspecialchars($post['title']) ?>
= htmlspecialchars($post['title']) ?>
= $totalPublished ?> article= $totalPublished > 1 ? 's' : '' ?> 0): ?> · = $totalUpcoming ?> à venir
= $totalPublished ?> article= $totalPublished > 1 ? 's' : '' ?> 0): ?>· = $totalUpcoming ?> à venir