Description
This action can be used to output HTML markup for a registered Conductor Widget display in the Conductor Widget Display Settings section. This action is triggered for each registered Conductor Widget display that is not a default Conductor Widget display.
The following is a list of default CSS classes which can be used in HTML markup for registered Conductor Widget display previews (see examples below):
posts(wrapper, designates posts)post(post, designates a post, use inside ofposts)post-medium(post modifier, designates one medium post, use withpost)post-small(post modifier, designates one small post, use withpost)post-featured-image(post component, designates a featured image block, use inside ofpost)post-title(post component, designates a title block, use inside ofpost)post-content(post component, designates a content block, use inside ofpost)
This action is executed when the Conductor Widget displays are output in the Conductor Widget form via Conductor_Widget::form().
Technical Details
Type: ActionParameters:$size (string): The ID of the Conductor Widget display$instance (array): The Conductor Widget instance (settings)$widget (Conductor_Widget): The Conductor_Widget instance
Resources
- View on GitHub
Class: Conductor_Widgetconductor_widget_displaysconductor_widget_settings_display_preview_{$size}
Examples
The following example outputs HTML markup for Conductor Widget displays. It can be used in conjunction with the example on the conductor_widget_displays documentation page.