-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
74 lines (51 loc) · 1.47 KB
/
header.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Header
*
*
*/
/** load */
require 'hw-includes/site/load.php';
/** site data */
$site = new site();
/** post */
$post = new blog();
/** plugins data */
$plugins = new plugins();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<?php
/** site info*/
$siteinfo = $site->siteInfo();
?>
<!-- css -->
<link rel="stylesheet" href="hw-includes/assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="hw-includes/assets/css/swiffy-slider.min.css" />
<link rel="stylesheet" href="hw-includes/assets/css/style.css" />
<?php
/** theme css */
$css = $site->css();
?>
<!-- icons -->
<link rel="stylesheet" href="hw-includes/assets/fontawesome/css/fontawesome.css" />
<link rel="stylesheet" href="hw-includes/assets/fontawesome/css/solid.css" />
<link rel="stylesheet" href="hw-includes/assets/fontawesome/css/brands.css" />
</head>
<body class="scrollspy-example" data-bs-spy="scroll" data-bs-target="#page" data-bs-offset="100" tabindex="0">
<?php
/** pages info */
$pg = $site->pagesInfo();
$themes_info = $site->themeInfo();
/** header page */
if ($themes_info->theme_url == true) {
$header = $pg->header;
$siteHeader = $site->themePage($themes_info->theme_url, $header);
} else {
$header = $pg->header;
$siteHeader = $site->page($header);
}
?>