Browse Source

Theming: add hint about favicon generation

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v13.0.0beta1
Julius Härtl 6 years ago
parent
commit
b1b8c99193
No account linked to committer's email address

+ 4
- 0
apps/theming/css/settings-admin.css View File

@@ -101,3 +101,7 @@ form.uploadButton {
max-height: 20%;
margin-top: 20px;
}

.theming-hints {
margin-top: 20px;
}

+ 2
- 0
apps/theming/lib/Settings/Admin.php View File

@@ -82,6 +82,8 @@ class Admin implements ISettings {
'background' => $this->themingDefaults->getBackground(),
'backgroundMime' => $this->config->getAppValue('theming', 'backgroundMime', ''),
'uploadLogoRoute' => $path,
'canThemeIcons' => $this->themingDefaults->shouldReplaceIcons(),
'iconDocs' => $this->urlGenerator->linkToDocs('admin-theming-icons')
];

return new TemplateResponse('theming', 'settings-admin', $parameters, '');

+ 11
- 0
apps/theming/templates/settings-admin.php View File

@@ -88,5 +88,16 @@ style('theming', 'settings-admin');
<div id="theming-preview">
<img src="<?php p($_['logo']); ?>" id="theming-preview-logo" />
</div>
<div class="theming-hints">
<?php if (!$_['canThemeIcons']) { ?>
<p class="info">
<a href="<?php p($_['iconDocs']); ?>">
<em>
<?php p($l->t('Install the Imagemagick PHP extension with support for SVG images to automatically generate favicons based on the uploaded logo and color.')); ?> ↗
</em>
</a>
</p>
<?php } ?>
</div>
<?php } ?>
</div>

Loading…
Cancel
Save