Skip to content

Commit

Permalink
Merge pull request #748 from PennyDreadfulMTG/modernization
Browse files Browse the repository at this point in the history
"Modernize" banned player page
  • Loading branch information
bakert authored Sep 9, 2024
2 parents 3fcce97 + fb5bb99 commit 9dbc5b4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
12 changes: 12 additions & 0 deletions gatherling/Pages/BannedPlayer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Gatherling\Pages;

class BannedPlayer extends Page
{
public function __construct()
{
parent::__construct();
$this->title = 'You have been banned';
}
}
27 changes: 14 additions & 13 deletions gatherling/bannedplayer.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?php

use Gatherling\Models\Player;
declare(strict_types=1);

namespace Gatherling;

use Gatherling\Pages\BannedPlayer;

require_once 'lib.php';
$player = Player::getSessionPlayer();

print_header('You have been banned');
?>
<div class="grid_10 suffix_1 prefix_1">
<div id="gatherling_main" class="box">
<div class="uppertitle"> You have been banned! </div>
<?php
echo '<center>You have been banned from this Series and cannot participate in any of its events.</center>';
?>
</div> <!-- gatherling_main box -->
</div> <!-- grid 10 suff 1 pre 1 -->
<?php print_footer(); ?>
function main(): void
{
$page = new BannedPlayer();
echo $page->render();
}

if (basename(__FILE__) == basename($_SERVER['PHP_SELF'])) {
main();
}
6 changes: 6 additions & 0 deletions gatherling/views/bannedPlayer.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="grid_10 suffix_1 prefix_1">
<div id="gatherling_main" class="box">
<div class="uppertitle">You have been banned!</div>
<p class="c">You have been banned from this Series and cannot participate in any of its events.</p>
</div> <!-- gatherling_main box -->
</div> <!-- grid 10 suff 1 pre 1 -->

0 comments on commit 9dbc5b4

Please sign in to comment.