Description
This function returns the Conductor content layout data for the current piece of content. Optionally, a Conductor content layout can be passed to fetch data for a specific Conductor content layout.
Conductor content layout data is setup/configured when registering a Conductor content layout.
The Conductor content layout data is passed to the conductor_content_layout_data
filter before it is returned.
Technical Details
Type: Function
Parameters:
$content_layout (Boolean, array): Conductor content layout
Default: false
Return Value: array
Resources
- View on GitHub
conductor_template_path
Conductor_Template_Loader::template_include()
conductor_content_layout_data
Examples
The following example demonstrates how to use the current Conductor content layout data to load a custom Conductor template based on the body_class
parameter.
Note: If the template
parameter is specified in the Conductor content layout data, Conductor will attempt to load that template automatically.