forked from Public/pics
MainTemplate: clean up HTML head; remove unused inline CSS function
This commit is contained in:
parent
07bc784859
commit
daf6b6b264
@ -25,14 +25,22 @@ class MainTemplate extends Template
|
||||
echo '<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>', $this->title, '</title>', !empty($this->canonical_url) ? '
|
||||
<link rel="canonical" href="' . $this->canonical_url . '">' : '', '
|
||||
<title>', $this->title, '</title>';
|
||||
|
||||
if (!empty($this->canonical_url))
|
||||
echo '
|
||||
<link rel="canonical" href="', $this->canonical_url, '">';
|
||||
|
||||
echo '
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
|
||||
|
||||
echo '
|
||||
<link rel="stylesheet" href="', BASEURL, '/vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="', BASEURL, '/vendor/twbs/bootstrap-icons/font/bootstrap-icons.css">
|
||||
<link type="text/css" rel="stylesheet" href="', BASEURL, '/css/default.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">', !empty($this->css) ? '
|
||||
<style type="text/css">' . $this->css . '
|
||||
</style>' : '', $this->header_html, '
|
||||
<script type="text/javascript" src="', BASEURL, '/js/main.js"></script>
|
||||
<script type="text/javascript" src="', BASEURL, '/js/main.js"></script>'
|
||||
, $this->header_html, '
|
||||
</head>
|
||||
<body', !empty($this->classes) ? ' class="' . implode(' ', $this->classes) . '"' : '', '>
|
||||
<header>
|
||||
@ -84,11 +92,6 @@ class MainTemplate extends Template
|
||||
</html>';
|
||||
}
|
||||
|
||||
public function appendCss($css)
|
||||
{
|
||||
$this->css .= $css;
|
||||
}
|
||||
|
||||
public function appendHeaderHtml($html)
|
||||
{
|
||||
$this->header_html .= "\n\t\t" . $html;
|
||||
|
Loading…
Reference in New Issue
Block a user