-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathknockout.php
More file actions
38 lines (33 loc) · 1.07 KB
/
Copy pathknockout.php
File metadata and controls
38 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* knockout.php — شجرة الأدوار الإقصائية (Bracket).
*/
require __DIR__ . '/includes/bootstrap.php';
require __DIR__ . '/templates/match_card.php';
$page_title = t('knockout');
$stages = Bracket::stages();
tpl('header');
?>
<div class="page-head">
<h1>🏆 <?= e(t('knockout')) ?></h1>
</div>
<?php if (!$stages): ?>
<p class="empty-note">
<?= e(current_lang()==='ar'
? 'لم تبدأ الأدوار الإقصائية بعد — تابع مباريات المجموعات.'
: 'Knockout stage has not started yet — follow the group matches.') ?>
</p>
<?php else: ?>
<?php foreach ($stages as $stageKey => $matches): ?>
<section class="ko-stage" data-autorefresh="1">
<h2 class="ko-stage-title">
<span class="section-bar"></span>
<?= e(t($stageKey)) ?>
</h2>
<div class="match-grid <?= $stageKey==='final' ? 'final-grid' : '' ?>">
<?php foreach ($matches as $m) render_match_card($m); ?>
</div>
</section>
<?php endforeach; ?>
<?php endif; ?>
<?php tpl('footer'); ?>