WowPress-Tailwind/theme/template-parts/widgets/birthdays.php

21 lines
581 B
PHP
Raw Normal View History

2024-06-11 11:06:25 +02:00
<?php
use WoWPress\Frontend\Icon;
?>
<div class="bg-glass shadow p-auto order-last flex flex-col gap-2">
<h3 class="text-xl font-bold text-center"><?= $this->title ?></h3>
<?php
foreach($this->getList() as $bday):
?>
<div class="flex flex-row items-center gap-1 <?=$bday['party']?"text-alliance":""?>">
<span><?=$bday['user']?></span>
<span><?=$bday['next']?></span>
<span>(<?=$bday['age']?>)</span>
<?=$bday['party']?Icon::get('o-cake'):"";?>
</div>
<?php
endforeach;
?>
</div>