summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/_views/comments.php2
-rw-r--r--src/web/_views/footer.php17
-rw-r--r--src/web/_views/head.php6
-rw-r--r--src/web/_views/header.php13
-rw-r--r--src/web/lib/hooks.php14
5 files changed, 18 insertions, 34 deletions
diff --git a/src/web/_views/comments.php b/src/web/_views/comments.php
index 9762def..2ed712f 100644
--- a/src/web/_views/comments.php
+++ b/src/web/_views/comments.php
@@ -12,7 +12,7 @@
echo '</div>';
}
if (!$comments || !count($comments)) {
- echo '<span>'. lang('no_comments') .'</span>';
+ echo '<span class="no-comments">'. lang('no_comments') .'</span>';
}
?>
<div class="new">
diff --git a/src/web/_views/footer.php b/src/web/_views/footer.php
index 1f1ad30..70b1b13 100644
--- a/src/web/_views/footer.php
+++ b/src/web/_views/footer.php
@@ -7,14 +7,15 @@
$footer_text = '';
}
?>
- <div id="ad" class="section ad-slot" role="region">
- <span class="ad-slot">
- <?=lang('adblock_notice')?>
- </span>
- </div>
+ <div id="ad" class="section ad-slot" role="region">
+ <span class="ad-slot">
+ <?=lang('adblock_notice')?>
+ </span>
</div>
</div>
- <div id="footer" role="contentinfo" aria-label="footer">
+ </div>
+ <div id="footer" role="contentinfo" aria-label="footer">
+ <div class="container"><div class="section">
<?=lang('license')?>
<br>
<?=lang('copyright')?> <?=lang('first_name')?> <?=lang('last_name')?> <?=date('Y')?>
@@ -40,7 +41,7 @@
<?php /* hack to disable firefox cookie warning*/?>
sandbox="allow-scripts"
title="<?=lang('john_title')?>"
- src="https://john.citrons.xyz/embed?ref=freya.cat"
+ src="<?=$this->get_scheme()?>://john.citrons.xyz/embed?ref=freya.cat"
></iframe>
<iframe
height="40"
@@ -49,7 +50,7 @@
title="<?=lang('bucket_title')?>"
src="<?=$this->get_url('bucket?name=freya')?>"
></iframe>
- </div>
+ </div></div>
</div>
<?=ie('</center>')?>
</body>
diff --git a/src/web/_views/head.php b/src/web/_views/head.php
index 8cd6f87..4d16a1b 100644
--- a/src/web/_views/head.php
+++ b/src/web/_views/head.php
@@ -39,7 +39,7 @@
<?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">
+ <link rel="preconnect" href="<?=$this->get_scheme()?>://john.citrons.xyz">
<?php else: ?>
<link rel="preload" href="<?=$this->get_url("public/font/Merriweather.woff2")?>" as="font" type="font/woff2" crossorigin>
<?php endif ?>
@@ -53,10 +53,6 @@
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)
diff --git a/src/web/_views/header.php b/src/web/_views/header.php
index fe8e0f1..2d84487 100644
--- a/src/web/_views/header.php
+++ b/src/web/_views/header.php
@@ -5,9 +5,9 @@
</head>
<body>
<?=ie('<center>')?>
-<div class="center">
- <div id="header" role="banner" aria-label="banner">
- <a href="<?=$this->get_url('')?>">
+<div id="header" role="banner" aria-label="banner">
+ <div class="container"><div class="section">
+ <a id="logo" href="<?=$this->get_url('')?>">
<?=image('img/headerLogo', 'alt_website_logo', 'title_website_logo', size: '200')?>
</a>
<div class="content">
@@ -32,6 +32,7 @@
</ul>
</div>
</div>
- </div>
- <div id="main" role="main" aria-label="main">
- <div id="container">
+ </div></div>
+</div>
+<div id="main" role="main" aria-label="main">
+ <div class="container">
diff --git a/src/web/lib/hooks.php b/src/web/lib/hooks.php
index a688069..70853e1 100644
--- a/src/web/lib/hooks.php
+++ b/src/web/lib/hooks.php
@@ -1,20 +1,6 @@
<?php /* Copyright (c) 2024 Freya Murphy */
-function load_htc(string $file) {
- $file_path = PUBLIC_ROOT . '/polyfills/' . $file;
- if (!file_exists($file_path))
- return;
-
- header('Content-type: text/x-component');
- include($file_path);
- CRIMSON_DIE();
-}
-
function CRIMSON_pre_route_hook(Router $router): void {
- $uri_str = ROUTER->req['uri_str'] ?? '';
- $file = basename($uri_str);
- if (str_ends_with($file, '.htc'))
- load_htc($file);
}
function CRIMSON_error_hook(?array $req, int $code): never {