battles/classes/Template.php

21 lines
436 B
PHP
Raw Normal View History

<?php
# Date: 30.09.2020 (09:42)
abstract class Template
{
public function __construct()
{
//Ничего не генерируем, обращаемся к статике сразу.
}
public static function header($title = null)
{
return <<<HTML_HEADER
<!doctype html>
<html lang="ru">
<meta charset="utf-8">
<link href="/css/main.css" rel="stylesheet">
<title>$title</title>
HTML_HEADER;
}
}