[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/blocks/ -> page-list.php (summary)

Server-side rendering of the `core/pages` block.

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

Defines 6 functions

  block_core_page_list_build_css_colors()
  block_core_page_list_build_css_font_sizes()
  block_core_page_list_render_nested_page_list()
  block_core_page_list_nest_pages()
  render_block_core_page_list()
  register_block_core_page_list()

Functions
Functions that are not part of a class:

block_core_page_list_build_css_colors( $context )   X-Ref
Build an array with CSS classes and inline styles defining the colors
which will be applied to the pages markup in the front-end when it is a descendant of navigation.

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

block_core_page_list_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 pages markup in the front-end when it is a descendant of navigation.

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

block_core_page_list_render_nested_page_list( $nested_pages )   X-Ref
Outputs Page list markup from an array of pages with nested children.

return: string List markup.
param: array $nested_pages The array of nested pages.

block_core_page_list_nest_pages( $current_level, $children )   X-Ref
Outputs nested array of pages

return: array The nested array of pages.
param: array $current_level The level being iterated through.
param: array $children The children grouped by parent post ID.

render_block_core_page_list( $attributes, $content, $block )   X-Ref
Renders the `core/page-list` block on server.

return: string Returns the page list markup.
param: array $attributes The block attributes.
param: array $content The saved content.
param: array $block The parsed block.

register_block_core_page_list()   X-Ref
Registers the `core/pages` block on server.




Generated: Sun Aug 1 01:00:05 2021 Cross-referenced by PHPXref 0.7.1