[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/blocks/ -> navigation-submenu.php (summary)

Server-side rendering of the `core/navigation-submenu` block.

File Size: 267 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  block_core_navigation_submenu_build_css_colors()
  block_core_navigation_submenu_build_css_font_sizes()
  block_core_navigation_submenu_render_submenu_icon()
  render_block_core_navigation_submenu()
  register_block_core_navigation_submenu()

Functions
Functions that are not part of a class:

block_core_navigation_submenu_build_css_colors( $context, $attributes )   X-Ref
Build an array with CSS classes and inline styles defining the colors
which will be applied to the navigation markup in the front-end.

param: array $context    Navigation block context.
param: array $attributes Block attributes.
return: array Colors CSS classes and inline styles.

block_core_navigation_submenu_build_css_font_sizes( $context )   X-Ref
Build an array with CSS classes and inline styles defining the font sizes
which will be applied to the navigation markup in the front-end.

param: array $context Navigation block context.
return: array Font size CSS classes and inline styles.

block_core_navigation_submenu_render_submenu_icon()   X-Ref
Returns the top-level submenu SVG chevron icon.

return: string

render_block_core_navigation_submenu( $attributes, $content, $block )   X-Ref
Renders the `core/navigation-submenu` block.

param: array    $attributes The block attributes.
param: string   $content    The saved content.
param: WP_Block $block      The parsed block.
return: string Returns the post content with the legacy widget added.

register_block_core_navigation_submenu()   X-Ref
Register the navigation submenu block.




Generated: Wed Aug 10 01:00:02 2022 Cross-referenced by PHPXref 0.7.1