web-base/core/Views/Admin/AdminDashboardBody.class.php

21 lines
444 B
PHP
Raw Normal View History

2020-04-03 22:10:21 +02:00
<?php
2020-04-04 01:15:59 +02:00
namespace Views\Admin;
2020-04-03 22:10:21 +02:00
use Elements\Body;
use Elements\Script;
2020-04-04 01:15:59 +02:00
class AdminDashboardBody extends Body {
2020-04-03 22:10:21 +02:00
public function __construct($document) {
parent::__construct($document);
}
2021-04-02 21:58:06 +02:00
public function getCode(): string {
2020-04-04 01:15:59 +02:00
$html = parent::getCode();
2020-06-14 12:38:35 +02:00
$script = new Script(Script::MIME_TEXT_JAVASCRIPT, "/js/admin.min.js");
2020-06-14 22:35:01 +02:00
$html .= "<body><div class=\"wrapper\" id=\"root\">$script</div></body>";
2020-04-03 22:10:21 +02:00
return $html;
}
}