1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Started migration to SVG icons

This commit is contained in:
Dan Brown
2018-02-17 13:30:52 +00:00
parent dc1a16be4c
commit 5ab39bfd5a
67 changed files with 196 additions and 100 deletions

View File

@ -155,6 +155,9 @@ function theme_path($path = '')
*/
function icon($name, $attrs = [])
{
$attrs = array_merge($attrs, [
'class' => 'svg-icon'
]);
$attrString = ' ';
foreach ($attrs as $attrName => $attr) {
$attrString .= $attrName . '="' . $attr . '" ';