mbr_popup_inline
Usage
This shortcode returns a HTML link which triggers a WordPress ThickBox popup window displaying the code embedded between the shortcodes opening and closing tags.
Parameters
Parameters | Description |
---|---|
title | Specifies the title for the popup window. Ignored when the modal parameter is true. 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: none. Required: yes. |
w | Specifies the width of the popup window. Default: 500 Required: no. |
h | Specifies the height of the popup window. Default: 400 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 popup window. Default: true except when autopopup is also true and then the default is false Required: no. |
close_link | Specifies the text to be used for the modal 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_inline].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
- Example 3
Display a popup window titled Bonus Video after the user clicks the link labelled Click here to watch the video, sized as 800 pixels wide and 500 pixels high with content including My Header, Paragraph 1 and Paragraph 2:
[mbr_popup_inline title='Bonus Video' link_text='Click here to watch the video' w='800' h='500']
My Header
Paragraph 1
Paragraph 2
[/mbr_popup_inline]
Display a modal popup window titled Terms & Conditions automatically 2 seconds after the user visits the page, sized as 800 pixels wide and 500 pixels high with content including Paragraph 1 and Paragraph 2. Do not reload the page after exiting the modal window:
[mbr_popup_inline title='Terms & Conditions' autopopup='true' delay='2' modal='true' w='800' h='500']
Paragraph 1
Paragraph 2
[/mbr_popup_inline]
Display a popup window titled Important Data after the user clicks the link labelled Reveal, sized as 800 pixels wide and 500 pixels high with content including the resolved shortcode [mbr_db_first_name] and custom shortcode [mbr_custom_shortcode]:
[mbr_popup_inline title='Important Data' link_text='Reveal' w='800' h='500']
[mbr_db_first_name]
[mbr_custom_shortcode]
[/mbr_popup_inline]
API
There is currently no ActiveMember360 API function equivalent for this shortcode.