summaryrefslogtree/nfs/website.git//.wiki commitdiff
path: root/src/web/_views/head.php
blob: ab7bb1bb9158e481a9e44abf63fe3f7e5f1268db (plain)
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
<?php /* Copyright (c) 2024 Freya Murphy */ ?>
<!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
			/* Main CSS */
			if (CONTEXT['app'] != 'bucket')
				echo $this->link_css('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>');
		?>