History log of /template/sprintdoc/svg.php (Results 1 – 20 of 20)
Revision Date Author Comments
# 32cb5749 02-Mar-2023 Anna Dabrowska <dabrowska@cosmocode.de>

Do not use SVG width and height directly when embedding images


# e4a08eff 02-Mar-2023 Anna Dabrowska <dabrowska@cosmocode.de>

If SVG width and height are not define, set them to 100%


# ac484891 07-Sep-2022 fiwswe <53953985+fiwswe@users.noreply.github.com>

Fix deprecation warnings


# 1ef4c4db 31-Aug-2020 Andreas Gohr <andi@splitbrain.org>

rawgit.com is going down, use github directly

should fix #56. This should also have the side effect, that the SSL
setup is a little more relaxed (more compatible certificate upstream)


# 51840978 17-Jun-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Enable loading local icons in sidebar nav

A session needs to present, otherwise access to local media will be
denied, even if they are not ACL protected

Fixes #19


# 6bb4e585 14-Oct-2019 Anna Dabrowska <dabrowska@cosmocode.de>

Update CDN URL for SVG icons


# c550adde 13-Mar-2019 Andreas Gohr <gohr@cosmocode.de>

fix caching for SVG files

we do not need a session to be initialized for the SVG requests.


# 8c8001b6 11-Apr-2018 Michael Große <grosse@cosmocode.de>

Fix svg replacement in Greebo+

A recent DokuWiki merge request changed how the style.ini can be
accessed: splitbrain/dokuwiki#2241


# 7b3c2fe1 20-Mar-2018 Michael Große <grosse@cosmocode.de>

fix: actually cache the external svg icons from mdi


# 3a6c6601 21-Feb-2017 Andreas Gohr <gohr@cosmocode.de>

SVG dispatch: allow passing ini colors without underscores

The surrounding underscores can be left out.


# e988c176 21-Feb-2017 Andreas Gohr <gohr@cosmocode.de>

fix problems with ini handling in svg dispatch


# 9fd3d99b 13-Feb-2017 Andreas Gohr <andi@splitbrain.org>

directly embed SVGs for better styling

Now the SVGs are loaded via AJAX and are directly embedded into the
HTML. This allows for styling them via CSS and we can apply proper hover
styles.

The svg d

directly embed SVGs for better styling

Now the SVGs are loaded via AJAX and are directly embedded into the
HTML. This allows for styling them via CSS and we can apply proper hover
styles.

The svg dispatcher was extended with an embed option (boolean parameter
'e') which will return an absolute minimum svg with absolutely no
styles.

show more ...


# 94def893 13-Feb-2017 Andreas Gohr <andi@splitbrain.org>

allow style.ini replacements in SVG dispatcher


# c24a2e1e 13-Feb-2017 Andreas Gohr <andi@splitbrain.org>

SVG Dispatch: allow for referencing material design icons

A SVG not found in the template or in the local media storage will now
be looked up in the Material Design Icon library (via a cached HTTP
r

SVG Dispatch: allow for referencing material design icons

A SVG not found in the template or in the local media storage will now
be looked up in the Material Design Icon library (via a cached HTTP
request to the rawgit CDN).

show more ...


# 24ab1f72 19-Jan-2017 Andreas Gohr <gohr@cosmocode.de>

add caching and fix <g> wrapping


# 5a65cb36 19-Jan-2017 Andreas Gohr <gohr@cosmocode.de>

Merge branch 'svg-background' into 'svg-dispatch'

feat: add background-colors to SVG-dispatcher

See merge request !12


# 4fd6492b 12-Jan-2017 Andreas Gohr <gohr@cosmocode.de>

fixed content type header


# 3ec07d58 12-Jan-2017 Andreas Gohr <gohr@cosmocode.de>

fixed auth check


# 80d784e1 11-Jan-2017 Michael Grosse <grosse@cosmocode.de>

feat: add background-colors to SVG-dispatcher

This extends the query with to parameters for the background:

b - wanted background color
bh - wanted background color on hover


# 1072ee52 10-Jan-2017 Andreas Gohr <gohr@cosmocode.de>

first go at a dispatcher to dynamically recolor SVGs

The script accepts the following parameters:

svg - the SVG to load. Either an image in the img directory next to the
script or a media fil

first go at a dispatcher to dynamically recolor SVGs

The script accepts the following parameters:

svg - the SVG to load. Either an image in the img directory next to the
script or a media file id. ACLs are checked
f - wanted fill color
s - wanted stroke color
fh - wanted fill color on hover
sh - wanted stroke color on hover

Colors are to be given in hex in the following formats:

RGB
RRGGBB
RRGGBBAA

What's missing:

* being able to define what is styled, currently hardcoded to 'path'
elements only
* caching - no need to do all the processing every time
* background setting - that would require wrapping an additional <g>
or <rect> element around all content and style. I'm not sure how to do
that best.
* unit tests

show more ...