This commit is contained in:
E. S. 2023-12-31 10:37:12 +00:00
parent 2bd379d2c5
commit 50656078a6
4 changed files with 8 additions and 25 deletions

View File

@ -7,10 +7,8 @@ use Response;
class AboutHandler extends \RequestHandler {
public function get(): Response {
global $config;
$this->skin->title = $this->lang['contacts'];
return $this->skin->renderPage('main/contacts',
email: $config['admin_email']);
return $this->skin->renderPage('main/contacts');
}
}

View File

@ -6,7 +6,6 @@ $r = (new Router())
// route handler input
// ----- ------- -----
->add('/', 'index')
//->add('about/', 'about')
->add('([a-zA-Z0-9\-]+)/', 'auto name=$(1)')
->add('feed.rss', 'RSS')
@ -16,7 +15,7 @@ $r = (new Router())
->add('([a-zA-Z0-9\-]+)/{delete,edit}/', 'admin/auto_${1} short_name=$(1)')
->add('([a-zA-Z0-9\-]+)/create/', 'admin/page_add short_name=$(1)')
->add('write/', 'admin/post_add')
//->add('write/', 'admin/post_add')
->add('admin/markdown-preview.ajax', 'admin/markdown_preview')
->add('uploads/', 'admin/uploads')

View File

@ -0,0 +1,6 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>Verification: 6b8e89dc241d9757</body>
</html>

View File

@ -82,26 +82,6 @@ HTML;
}
// contacts page
// -------------
function contacts($ctx, $email) {
return <<<HTML
<table class="contacts" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" style="line-height: 170%; padding-bottom: 18px;">
<div>Feel free to contact me by any of the following means:</div>
</td>
</tr>
<tr>
<td class="label">Tox ID:</td>
<td class="value"><span>4F6E82D285B342CAE83687FA63F1B083A9FD053C8BE08C709E25491C74E6016CB52C987692C3</span></td>
</tr>
</table>
HTML;
}
// any page
// --------