From 0f9b97d7ca8a508922ad3b72e430c5e23fc27b80 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 4 Apr 2023 09:30:12 +0200 Subject: [PATCH] support SVG logo in dokuwiki template Inspired by https://forum.dokuwiki.org/d/20964-logo-too-big this adds SVG support for setting the logo in the dokuwiki template. Note: This introduces a fixed height for the logo (64px), previously users could decide their logo size by simply uploading it in the right size. Users who want a larger sized logo will have to override the height in a userstyle now --- lib/tpl/dokuwiki/css/design.less | 1 + lib/tpl/dokuwiki/images/dokuwiki.svg | 84 ++++++++++++++++++++++++++++ lib/tpl/dokuwiki/tpl_header.php | 11 +++- 3 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 lib/tpl/dokuwiki/images/dokuwiki.svg diff --git a/lib/tpl/dokuwiki/css/design.less b/lib/tpl/dokuwiki/css/design.less index fec9d6a842..1475228390 100644 --- a/lib/tpl/dokuwiki/css/design.less +++ b/lib/tpl/dokuwiki/css/design.less @@ -35,6 +35,7 @@ img { float: left; margin-right: .5em; + height: 64px; } span { diff --git a/lib/tpl/dokuwiki/images/dokuwiki.svg b/lib/tpl/dokuwiki/images/dokuwiki.svg new file mode 100644 index 0000000000..d5f2d7b698 --- /dev/null +++ b/lib/tpl/dokuwiki/images/dokuwiki.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/tpl/dokuwiki/tpl_header.php b/lib/tpl/dokuwiki/tpl_header.php index f46ee61b70..75447bb629 100644 --- a/lib/tpl/dokuwiki/tpl_header.php +++ b/lib/tpl/dokuwiki/tpl_header.php @@ -19,13 +19,18 @@

'.$conf['title'].'', + '' . + '' . $conf['title'] . '', 'accesskey="h" title="' . tpl_getLang('home') . ' [h]"' ); ?>