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
|
<?php /* Copyright (c) 2024 Freya Murphy */ ?>
<?php
/* Html cache headers */
$current_app = ROUTER->req['app'];
$non_cached_apps = ['blog'];
if (ENVIRONMENT == 'production' && !in_array($current_app, $non_cached_apps)) {
$cache_seconds = 300;
if ($current_app == 'bucket') {
$cache_seconds = 3600;
}
header("Cache-Control: public, max-age=$cache_seconds");
header("Expires: " . gmdate('D, d M Y H:i:s', time() + $cache_seconds) . " UTC");
header("Pragma: cache");
}
?>
<!DOCTYPE html>
<html lang="<?=lang('lang_short')?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="freya">
<meta name="description" content="<?=$desc?>">
<meta name="theme-color" content="<?=CONFIG['theme_color']?>">
<meta name="referrer" content="origin">
<meta name="color-scheme" content="none">
<meta property="og:description" content="<?=$desc?>">
<meta property="og:title" content="<?=$title?>">
<meta property="og:site_name" content="<?=CONFIG['domain']?>">
<meta property="og:image" content="<?=$this->get_url('public/icons/logo640.png', TRUE)?>">
<title><?=$title?></title>
<link rel="icon" type="image/png" sizes="16x16" href="<?=$this->get_url("public/icons/logo16.png", TRUE)?>">
<link rel="icon" type="image/png" sizes="32x32" href="<?=$this->get_url("public/icons/logo32.png", TRUE)?>">
<link rel="icon" type="image/png" sizes="64x64" href="<?=$this->get_url("public/icons/logo64.png", TRUE)?>">
<link rel="icon" type="image/png" sizes="320x320" href="<?=$this->get_url("public/icons/logo320.png", TRUE)?>">
<link rel="icon" type="image/png" sizes="512x512" href="<?=$this->get_url("public/icons/logo512.png", TRUE)?>">
<link rel="icon" type="image/png" sizes="640x640" href="<?=$this->get_url("public/icons/logo640.png", TRUE)?>">
<link rel="manifest" href="/manifest.json">
<?php if ($current_app != 'bucket'): ?>
<link rel="preload" href="<?=$this->get_url("public/font/FontStuck-Extended.woff2")?>" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?=$this->get_url("public/font/CourierNew.woff2")?>" as="font" type="font/woff2" crossorigin>
<link rel="preconnect" href="https://john.citrons.xyz">
<?php else: ?>
<link rel="preload" href="<?=$this->get_url("public/font/Merriweather.woff2")?>" as="font" type="font/woff2" crossorigin>
<?php endif ?>
<?php
/* Main CSS */
if (ROUTER->req['app'] != 'bucket') {
echo embed_css_ext('css/main.css');
}
/* IE 4-7 Styles */
echo ie($this->embed_css('css/ie/ie.css'));
/* IE 4 Styles */
echo ie_ua($this->embed_css('css/ie/ie4.css'), 4);
/* IE 6-7 Styles */
echo '<!--[if (gt IE 5)&(lt IE 8) ]>';
echo $this->embed_css('css/ie/ie6.css');
echo '<![endif]-->';
/* CSS Files */
foreach($css as $file)
echo $this->embed_css($file);
/* JS Files */
echo ie('<iframe width="0" height="0">');
foreach($js as $file)
echo $this->link_js($file);
echo ie('</iframe>');
?>
|