';
break;
case 'close':
$output = '';
break;
case 'search':
$output = '';
break;
case 'arrow':
$output = '';
break;
case 'cart':
$output = '';
break;
case 'bag':
$output = '';
break;
case 'basket':
$output = '';
break;
default:
$output = '';
break;
}
if ( $replace ) {
$output .= '';
}
} else {
if ( 'menu-bars' === $icon ) {
$menu_icon = apply_filters( 'astra_' . $menu_location . '_menu_toggle_icon', 'menu-toggle-icon' );
$output = '';
}
}
$output = apply_filters( 'astra_svg_icon_element', $output, $icon );
$classes = array(
'ast-icon',
'icon-' . $icon,
);
/**
* @psalm-suppress TooManyArguments
*/
$output = apply_filters(
'astra_svg_icon', // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
sprintf(
'%2$s',
implode( ' ', $classes ),
$output
),
$icon
);
$allowed_svg_args = array(
'span' => array( 'class' => array() ),
'svg' => array(
'xmlns:xlink' => array(),
'version' => array(),
'id' => array(),
'x' => array(),
'y' => array(),
'enable-background' => array(),
'xml:space' => array(),
'class' => array(),
'aria-hidden' => array(),
'aria-labelledby' => array(),
'role' => array(),
'xmlns' => array(),
'width' => array(),
'height' => array(),
'viewbox' => array(),
),
'g' => array( 'fill' => array() ),
'title' => array( 'title' => array() ),
'path' => array(
'd' => array(),
'fill' => array(),
),
);
if ( $is_echo !== true ) {
return wp_kses( $output, $allowed_svg_args );
}
echo wp_kses( $output, $allowed_svg_args );
}
}
new Astra_Icons();