added mail to events
This commit is contained in:
@@ -35,7 +35,7 @@ if (!$ev) {
|
||||
exit();
|
||||
}
|
||||
|
||||
$bs = $pdo->prepare("SELECT COALESCE(SUM(seats),0) FROM event_bookings WHERE event_id = ? AND status IN ('confirmed','pending')");
|
||||
$bs = $pdo->prepare("SELECT COALESCE(SUM(seats),0) FROM event_bookings WHERE event_id = ? AND status IN ('confirmed','pending','offered')");
|
||||
$bs->execute([$id]);
|
||||
$booked = (int) $bs->fetchColumn();
|
||||
$maxSeats = (int) $ev['max_seats'];
|
||||
@@ -186,6 +186,14 @@ function textBlock(?string $t): string
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.chead-thumb {
|
||||
width: 76px;
|
||||
height: 76px;
|
||||
border-radius: 12px;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.chead .main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -702,6 +710,9 @@ function textBlock(?string $t): string
|
||||
<div class="m"><?php echo e($monAbbr); ?></div>
|
||||
<div class="d"><?php echo $dayNum; ?></div>
|
||||
</div>
|
||||
<?php if (!empty($ev['cover_image'])) : ?>
|
||||
<img class="chead-thumb" src="<?php echo e($ev['cover_image']); ?>" alt="<?php echo e($ev['title']); ?>">
|
||||
<?php endif; ?>
|
||||
<div class="main">
|
||||
<div class="title-row">
|
||||
<h1><?php echo e($ev['title']); ?></h1>
|
||||
|
||||
Reference in New Issue
Block a user