-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHtml.php
34 lines (31 loc) · 965 Bytes
/
Html.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
class Html
{
public function __construct($title = '', $bodyClass = '')
{
$this->header($title, $bodyClass);
return true;
}
public function header($title = '', $bodyClass = '')
{
$html = '<html>
<head>
<title>' . ($title ? $title . ' - Diff Tool' : '') . 'Diff Tool</title>
<link rel="stylesheet" href="' . BU . 'resources/css/bootstrap.min.css">
<link rel="stylesheet" href="' . BU . 'resources/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="' . BU . 'resources/css/local.css">
<script src="' . BU . 'resources/js/jquery-2.1.3.min.js"></script>
<script src="' . BU . 'resources/js/bootstrap.min.js"></script>
<script src="' . BU . 'resources/js/local.js"></script>
</head>
<body class="' . $bodyClass .'">';
echo $html;
return true;
}
public function footer()
{
$html = '</body></html>';
echo $html;
return true;
}
}