battles/classes/Template.php
2020-09-30 14:12:39 +03:00

34 lines
623 B
PHP

<?php
# Date: 30.09.2020 (09:42)
class Template
{
/**
* Template constructor.
*/
public function __construct()
{
}
/**
* @param string|null $title
* @param int|null $return
*
* @return false|string
*/
public static function header(string $title = null, int $return = null)
{
$head = <<<HTML_HEADER
<!doctype html>
<html lang="ru">
<meta charset="utf-8">
<link href="/css/main.css" rel="stylesheet">
<title>$title</title>
HTML_HEADER;
if (!$return) {
echo $head;
return false;
}
return $head;
}
}