diff --git a/app/themes/default/functions.php b/app/themes/default/functions.php index d7e4a2d..23ac56a 100644 --- a/app/themes/default/functions.php +++ b/app/themes/default/functions.php @@ -6,6 +6,13 @@ use Twig\TwigFunction; return [ /** Theme specific Twig functions */ 'functions' => [ + /** + * Return the icon markup for a given file. + * + * @param SplFileInfo $file + * + * @return string + */ new TwigFunction('icon', function (SplFileInfo $file) { $icons = require __DIR__ . '/icons.php';