block_core_navigation_submenu_render_submenu_icon

函数
block_core_navigation_submenu_render_submenu_icon ( No parameters )

block_core_navigation_submenu_render_submenu_icon: 这个函数用来渲染导航子菜单的子菜单图标: 当子菜单被点击时,它显示子菜单的展开或折叠图标。

返回顶层子菜单的SVG chevron图标。

function block_core_navigation_submenu_render_submenu_icon() {
	return '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true" focusable="false"><path d="M1.50002 4L6.00002 8L10.5 4" stroke-width="1.5"></path></svg>';
}

常见问题

FAQs
查看更多 >