svg()
Includes an SVG file by absolute or relative file path.
Parameters
Name | Type | Default |
---|---|---|
$file * | string |Kirby\Cms\File |
– |
Return type
string
|false
Working with SVG
Kirby has a few useful helpers to load and embed logos and icons in your site.
With $file
object
In addition to a string parameter you can also add a file object: