mbr_popup_inliner
Usage
This shortcode returns a HTML link which triggers a responsive popup window displaying the code embedded between the shortcodes opening and closing tags.
Parameters
Parameters | Description |
---|---|
title | Specifies the title for the popup window. Default: none. Required: no. |
link_text | Specifies the text to be used for the HTML link anchor text. Only applicable when the autopopup parameter is false. Default: Click here. Required: yes. |
w | Specifies the width of the popup window. Accepts px, vw and % as a suffix. If no suffix is used px, pixels, is the default suffix. Default: none i.e. auto adjust Required: no. |
h | Specifies the height of the popup window. Accepts px, vw and % as a suffix. If no suffix is used px, pixels, is the default suffix. Default: none i.e. auto adjust Required: no. |
header | Specifies whether the popup should have a header section or not. If true, the title will be displayed within the header. Default: true Required: no. |
footer | Specifies whether the popup should have a footer section or not. If true, the close_link will be displayed within the header. Default: true Required: no. |
autopopup | Specifies whether the popup window should automatically popup on entering the page or whether the user should click a link to display the popup. Default: false Required: no. |
delay | Specifies the delay in seconds before which an autopopup window should display. Default: 0 Required: no. |
modal | Specifies if the popup window should open as a modal popup window. Default: false Required: no. |
modal_reload_after | Specifies whether the underlying page should be reloaded upon exiting a modal window. Ignored when autopopup parameter is true. Default: true Required: no. |
close_link | Specifies the text to be used for the popup window close link. Default: Close Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_popup_inliner].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
- Example 3
Display a popup window with the title Bonus Video in the header in a h1 tag after the user clicks the link labelled Click here to watch the video, automatically sized with content including My Header, Paragraph 1 and Paragraph 2 and also showing the close_link text in the footer:
[mbr_popup_inliner title='Bonus Video' link_text='Click here to watch the video']
My Header
Paragraph 1
Paragraph 2
[/mbr_popup_inliner]
Display a modal popup window with the title Terms & Conditions in the header as a h1 tag automatically 2 seconds after the user visits the page, automatically sized with content including Paragraph 1 and Paragraph 2 and also showing the close_link text in the footer.
[mbr_popup_inliner title='Terms & Conditions' autopopup='true' delay='2' modal='true']
Paragraph 1
Paragraph 2
[/mbr_popup_inliner]
Display a popup window with the title Important Data with no header or footer to the window after the user clicks the link labelled Reveal, automatiaclly sized with content including the resolved shortcode [mbr_db_first_name] and custom shortcode [mbr_custom_shortcode]:
[mbr_popup_inliner title='Important Data' link_text='Reveal' header='false' footer='false']
[mbr_db_first_name]
[mbr_custom_shortcode]
[/mbr_popup_inliner]
API
There is currently no ActiveMember360 API function equivalent for this shortcode.