Skip to main content

i4w_inline_popup

Usage

This shortcode returns an HTML link which triggers a popup window displaying the code embedded between its opening and closing tags.

Using the correct parameter, it can also trigger the popup window without clicking on the link.

[ELSE_inline_popup] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
titleSets the title of the popup window.NoneNo
delaySpecifies the delay in seconds before which an auto popup window should activate.NoneNo
linktextSet the text to appear in the anchor link (can be HTML).NoneYes
wSets the width of the popup window.500No
hSets the height of the popup window.400No
autopopDefines whether the popup window should automatically popup on entering the page or whether the user should click first.falseNo
modalDefines whether the popup window should be opened as a modal window or not.falseNo
closelinkDefines the label to be used for the "close" link.CloseNo
modalreloadafterDefines whether the underlying page should be reloaded upon exiting the modal popup. This option is automatically set to false with autopopup windows.trueNo

Example

Shortcode
[i4w_inline_popup title='My Window Title' linktext='Click here to watch the video' w='800' h='500']
<h1>My Header</h1>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
[/i4w_inline_popup]
Shortcode
[i4w_inline_popup title='My Window Title' linktext='<img src="http://domain.com/images/mybutton.jpg" />' w='800' h='500']
<h1>My Header</h1>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
[/i4w_inline_popup]
Shortcode
[i4w_inline_popup delay='12' title='My Window Title' linktext='<img src="http://domain.com/images/mybutton.jpg" />' w='800' h='500']
<h1>[i4w_db_firstname]</h1>
<p>[i4w_custom_shortcode]</p>
<p>Paragraph 2</p>
[/i4w_inline_popup]