contacts/about upd

This commit is contained in:
E. S. 2024-01-04 18:23:38 +00:00
parent 745e1d2b75
commit 5721753705
3 changed files with 4 additions and 3 deletions

View File

@ -2,13 +2,13 @@
namespace handler;
use RedirectResponse;
use Response;
class AboutHandler extends \RequestHandler {
public function get(): Response {
$this->skin->title = $this->lang['contacts'];
return $this->skin->renderPage('main/contacts');
return new RedirectResponse('/contacts/');
}
}

View File

@ -8,6 +8,7 @@ $r = (new Router())
->add('/', 'index')
->add('([a-zA-Z0-9\-]+)/', 'auto name=$(1)')
->add('feed.rss', 'RSS')
->add('about/', 'about')
//->add('articles/', 'articles')
->add('articles/write/', 'admin/post_add')

View File

@ -189,7 +189,7 @@ function renderHeader(SkinContext $ctx, string $theme): string {
$items = [
//['url' => '/articles/', 'label' => 'articles'],
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
['url' => '/about/', 'label' => 'about']
['url' => '/contacts/', 'label' => 'contacts']
];
if (\admin::isAdmin())
$items[] = ['url' => '/admin/', 'label' => $ctx->renderSettingsIcon(), 'type' => 'settings'];