Theming: add hint about favicon generation

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2017-11-08 14:53:44 +01:00 committed by Morris Jobke
parent 497cd7fa4e
commit b1b8c99193
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
3 changed files with 17 additions and 0 deletions

View File

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

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, '');

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>