You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
940 B
PHP
52 lines
940 B
PHP
<?php
|
|
$meta = [
|
|
'title' => 'Tournamite',
|
|
'description' => 'Index description',
|
|
'keywords' => 'tournamite, tournament, tourney'
|
|
];
|
|
require_once('partial/head.php');
|
|
?>
|
|
|
|
<?php
|
|
include('partial/header.php');
|
|
include('repository/tournamentRepository.php');
|
|
?>
|
|
<body>
|
|
<main class="layout-wrapper">
|
|
<section class="banner">
|
|
<div class="layout-wrapper">
|
|
Banner for internal adverts
|
|
</div>
|
|
</section>
|
|
|
|
<section class="live-tournaments">
|
|
<div class="live-tournaments__match"></div>
|
|
</section>
|
|
|
|
<section class="upcoming-tournaments">
|
|
<a href="tournaments.php">View all</a>
|
|
<?php
|
|
$tournaments = getTournaments($conn, 1);
|
|
if($tournaments){
|
|
?>
|
|
Current Tournaments
|
|
<?php
|
|
foreach($tournaments as $tournament){
|
|
?>
|
|
<a href="tournament.php"><?php echo($tournament['name']) ?></a>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<?php
|
|
include('partial/footer.php');
|
|
?>
|
|
</body>
|
|
|
|
</html>
|
|
|