27 lines
567 B
PHP
27 lines
567 B
PHP
<?php
|
|
|
|
namespace Miniflux\Controller;
|
|
|
|
use Miniflux\Model;
|
|
use Miniflux\Router;
|
|
use Miniflux\Response;
|
|
use Miniflux\Session\SessionStorage;
|
|
use Miniflux\Template;
|
|
|
|
// Display help page
|
|
Router\get_action('help', function () {
|
|
$user_id = SessionStorage::getInstance()->getUserId();
|
|
|
|
Response\html(Template\layout('help', array(
|
|
'config' => Model\Config\get_all($user_id),
|
|
'menu' => 'config',
|
|
'title' => t('Help')
|
|
)));
|
|
});
|
|
|
|
// Show help
|
|
Router\get_action('show-help', function () {
|
|
Response\html(Template\load('show_help'));
|
|
});
|
|
|