*/ function aivastark_admin_icon_paths() { return array( 'home' => '', 'palette' => '', 'book' => '', 'bot' => '', 'sliders' => '', 'workflow' => '', 'inbox' => '', 'message' => '', 'user-plus' => '', 'ticket' => '', 'chart' => '', 'eye' => '', 'layout' => '', 'settings' => '', 'help' => '', 'card' => '', 'external' => '', 'menu' => '', 'close' => '', 'check' => '', 'arrow' => '', 'plug' => '', 'globe' => '', 'copy' => '', 'shield' => '', 'sparkles' => '', 'refresh' => '', 'zap' => '', 'users' => '', 'phone' => '', 'laptop' => '', 'power' => '', 'info' => '', 'alert' => '', 'key' => '', 'code' => '', 'lock' => '', 'unlink' => '', 'play' => '', 'mail' => '', 'send' => '', 'chevron' => '', ); } /** Tags/attributes an icon may contain, for wp_kses. */ function aivastark_admin_icon_kses() { $shape = array( 'd' => true, 'cx' => true, 'cy' => true, 'r' => true, 'x' => true, 'y' => true, 'width' => true, 'height' => true, 'rx' => true, ); return array( 'svg' => array( 'class' => true, 'width' => true, 'height' => true, 'viewbox' => true, 'fill' => true, 'stroke' => true, 'stroke-width' => true, 'stroke-linecap' => true, 'stroke-linejoin' => true, 'aria-hidden' => true, 'focusable' => true, ), 'path' => $shape, 'circle' => $shape, 'rect' => $shape, ); } /** * Print an icon. * * @param string $name Key of aivastark_admin_icon_paths(). * @param int $size Pixel size. */ function aivastark_admin_icon( $name, $size = 18 ) { $paths = aivastark_admin_icon_paths(); if ( ! isset( $paths[ $name ] ) ) { return; } $size = (int) $size; $svg = ''; echo wp_kses( $svg, aivastark_admin_icon_kses() ); } /** Print the four-shape Aivastark mark (public/favicon.svg). */ function aivastark_admin_brand_mark( $size = 30 ) { $size = (int) $size; ?>