-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from PennyDreadfulMTG/modernization
"Modernize" banned player page
- Loading branch information
Showing
3 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --> |