mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-12 13:58:12 +02:00
Added the ability to easily customize the control panel logo and documentation pages without overwriting defaults during updates
This commit is contained in:
parent
eac3d77b8c
commit
120ff607dc
11 changed files with 35 additions and 14 deletions
|
@ -328,11 +328,19 @@ class SupportController extends Controller
|
|||
|
||||
public function docs(Request $request, Response $response)
|
||||
{
|
||||
return view($response,'admin/support/docs.twig');
|
||||
$basePath = '/var/www/cp/resources/views/';
|
||||
$template = file_exists($basePath . 'admin/support/docs.custom.twig')
|
||||
? 'admin/support/docs.custom.twig'
|
||||
: 'admin/support/docs.twig';
|
||||
return view($response, $template);
|
||||
}
|
||||
|
||||
public function mediakit(Request $request, Response $response)
|
||||
{
|
||||
return view($response,'admin/support/mediakit.twig');
|
||||
$basePath = '/var/www/cp/resources/views/';
|
||||
$template = file_exists($basePath . 'admin/support/mediakit.custom.twig')
|
||||
? 'admin/support/mediakit.custom.twig'
|
||||
: 'admin/support/mediakit.twig';
|
||||
return view($response, $template);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue