[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/blocks/ -> home-link.php (summary)

Server-side rendering of the `core/home-link` block.

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

Defines 5 functions

  block_core_home_link_build_css_colors()
  block_core_home_link_build_css_font_sizes()
  block_core_home_link_build_li_wrapper_attributes()
  render_block_core_home_link()
  register_block_core_home_link()

Functions
Functions that are not part of a class:

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

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

block_core_home_link_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 home link markup in the front-end.

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

block_core_home_link_build_li_wrapper_attributes( $context )   X-Ref
Builds an array with classes and style for the li wrapper

param: array $context    Home link block context.
return: array The li wrapper attributes.

render_block_core_home_link( $attributes, $content, $block )   X-Ref
Renders the `core/home-link` 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 home url added.

register_block_core_home_link()   X-Ref
Register the home block




Generated: Tue Dec 3 01:00:02 2024 Cross-referenced by PHPXref 0.7.1