Comment 10 for bug 1416890

Revision history for this message
Gilles-Philippe Leblanc (gilles-philippe-leblanc) wrote :

Hi Kristina,

By default, There is no SVG used at all.
I have added a config, disabled by default, that allow the use of SVG in a theme.
This config must be enabled in the themeconfig.php like this to allow the use of SVG images :
$theme->usesvg = true;

The site-logo.svg was only added as an example and to be used in the phpunit tests.

I coded this functionality in this way in order not to degrade performance when calling the images and to avoid unnecessary search for SVG files if the theme simply do not use and to allow a iterative development that will allow you to make the conversion or the addition of SVG icons.

In short, if you want to manually test the use of SVG files, simply add "$theme->usesvg = true;" in the themeconfig.php file of the raw theme or in any theme of your choice. One enabled, you should see site-logo.svg in the header of the page.