installer fixes

This commit is contained in:
Yuri Kuznetsov
2023-07-21 14:41:31 +03:00
parent d2f006892c
commit 272cff1cd9
5 changed files with 12 additions and 3 deletions
+5
View File
@@ -753,4 +753,9 @@ class Installer
'scheduledJobId' => $scheduledJob->getId(),
]);
}
public function getLogoSrc(string $theme): string
{
return $this->getMetadata()->get(['themes', $theme, 'logo']) ?? 'client/img/logo.svg';
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
<div class="panel-heading main-header">
<img src="../client/img/logo.svg" style="height: 43px;">
<img src="../{$logoSrc}" style="height: 43px;">
</div>
<header class="step-header">
<div class="row">
+4
View File
@@ -204,6 +204,10 @@ if (Utils::checkActionExists($action)) {
include $actionFile;
}
$theme = $_SESSION['install']['theme'] ?? $config->get('theme');
$smarty->assign('logoSrc', $installer->getLogoSrc($theme));
$loaderParamsProvider = $installer->getInjectableFactory()->create(LoaderParamsProvider::class);
if (!empty($actionFile) && file_exists('install/core/tpl/' . $tplName)) {
+1 -1
View File
@@ -150,7 +150,7 @@ header.step-header h4 {
}
.panel .modal-footer {
background-color: var(--panel-bg) !important;
background-color: transparent;
border-bottom-left-radius: var(--panel-border-radius);
border-bottom-right-radius: var(--panel-border-radius);