root('kirby') . '/panel/dist/img/icons.svg'); if ($panelIcons && $name) { if (preg_match('/]*id="icon-' . $name . '"[^>]*viewBox="(.*?)"[^>]*>(.*?)<\/symbol>/s', $panelIcons, $matches)) { if (preg_match('/]*?>/s', $matches[2], $use)) { return icon($use[1]); } echo '' . $matches[2] . ''; } }