Метод |
Описание |
|
add_pullquote_if_needed ( &$components ) |
Add a pullquote component if needed. |
|
add_thumbnail_if_needed ( &$components ) |
Add a thumbnail if needed. |
|
anchor_components ( &$components ) |
Anchor components that are marked as can_be_anchor_target. |
|
anchor_together ( Component $component, Component $target_component ) |
Given two components, anchor the first one to the second. |
|
get_component_from_shortname ( string $shortname, string $html = null ) : Component |
Get a component from the shortname. |
|
get_components_from_node ( DomNode $node ) : Component |
Get a component from a node. |
|
group_body_components ( array $components ) : array |
Given an array of components in array format, group all the elements of
role 'body'. Ignore body elements that have an ID, as they are used for
anchoring. |
|
meta_components ( ) : array |
Meta components are those which were not created from the HTML content. |
|
split_into_components ( ) : array |
Split components from the source WordPress content. |
|