summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2017-11-08 14:53:44 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-08 23:31:18 +0100
commitb1b8c99193c52fa0cf2ac530a96d391ec7fcbc61 (patch)
tree4a27b25089c7d70a31ae68972334a9a5ae8e9b20 /apps/theming
parent497cd7fa4e629d6bb4a279e62b45debb3f47e6b2 (diff)
downloadnextcloud-server-b1b8c99193c52fa0cf2ac530a96d391ec7fcbc61.tar.gz
nextcloud-server-b1b8c99193c52fa0cf2ac530a96d391ec7fcbc61.zip
Theming: add hint about favicon generation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/css/settings-admin.css4
-rw-r--r--apps/theming/lib/Settings/Admin.php2
-rw-r--r--apps/theming/templates/settings-admin.php11
3 files changed, 17 insertions, 0 deletions
diff --git a/apps/theming/css/settings-admin.css b/apps/theming/css/settings-admin.css
index 7270ec59b83..b0fdb79b291 100644
--- a/apps/theming/css/settings-admin.css
+++ b/apps/theming/css/settings-admin.css
@@ -101,3 +101,7 @@ form.uploadButton {
max-height: 20%;
margin-top: 20px;
}
+
+.theming-hints {
+ margin-top: 20px;
+} \ No newline at end of file
diff --git a/apps/theming/lib/Settings/Admin.php b/apps/theming/lib/Settings/Admin.php
index 12f5dd2b8fa..708bf1914ea 100644
--- a/apps/theming/lib/Settings/Admin.php
+++ b/apps/theming/lib/Settings/Admin.php
@@ -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, '');
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index 717e2bdb83c..c7451e595d7 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -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>