diff --git a/blocks/image/templates/worldskills_navbar_brand.php b/blocks/image/templates/worldskills_navbar_brand.php index e2dbe59..adbe4d5 100644 --- a/blocks/image/templates/worldskills_navbar_brand.php +++ b/blocks/image/templates/worldskills_navbar_brand.php @@ -8,7 +8,17 @@ 0 || $maxHeight > 0) { + if ($f->getTypeObject()->isSVG()) { + $tag = new \HtmlObject\Image(); + $tag->src($f->getRelativePath()); + if ($maxWidth > 0) { + $tag->width($maxWidth); + } + if ($maxHeight > 0) { + $tag->height($maxHeight); + } + $tag->addClass('ccm-svg'); + } elseif ($maxWidth > 0 || $maxHeight > 0) { $im = Core::make('helper/image'); $thumb = $im->getThumbnail( $f,