contacts/about upd
This commit is contained in:
parent
745e1d2b75
commit
5721753705
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
namespace handler;
|
namespace handler;
|
||||||
|
|
||||||
|
use RedirectResponse;
|
||||||
use Response;
|
use Response;
|
||||||
|
|
||||||
class AboutHandler extends \RequestHandler {
|
class AboutHandler extends \RequestHandler {
|
||||||
|
|
||||||
public function get(): Response {
|
public function get(): Response {
|
||||||
$this->skin->title = $this->lang['contacts'];
|
return new RedirectResponse('/contacts/');
|
||||||
return $this->skin->renderPage('main/contacts');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -8,6 +8,7 @@ $r = (new Router())
|
|||||||
->add('/', 'index')
|
->add('/', 'index')
|
||||||
->add('([a-zA-Z0-9\-]+)/', 'auto name=$(1)')
|
->add('([a-zA-Z0-9\-]+)/', 'auto name=$(1)')
|
||||||
->add('feed.rss', 'RSS')
|
->add('feed.rss', 'RSS')
|
||||||
|
->add('about/', 'about')
|
||||||
//->add('articles/', 'articles')
|
//->add('articles/', 'articles')
|
||||||
->add('articles/write/', 'admin/post_add')
|
->add('articles/write/', 'admin/post_add')
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ function renderHeader(SkinContext $ctx, string $theme): string {
|
|||||||
$items = [
|
$items = [
|
||||||
//['url' => '/articles/', 'label' => 'articles'],
|
//['url' => '/articles/', 'label' => 'articles'],
|
||||||
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
|
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
|
||||||
['url' => '/about/', 'label' => 'about']
|
['url' => '/contacts/', 'label' => 'contacts']
|
||||||
];
|
];
|
||||||
if (\admin::isAdmin())
|
if (\admin::isAdmin())
|
||||||
$items[] = ['url' => '/admin/', 'label' => $ctx->renderSettingsIcon(), 'type' => 'settings'];
|
$items[] = ['url' => '/admin/', 'label' => $ctx->renderSettingsIcon(), 'type' => 'settings'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user