contacts/about upd
This commit is contained in:
parent
745e1d2b75
commit
5721753705
@ -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/');
|
||||
}
|
||||
|
||||
}
|
@ -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')
|
||||
|
||||
|
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user