| 24 |
Example in code: |
Example in code: |
| 25 |
popups_add_popups(); |
popups_add_popups(); |
| 26 |
$output .= l("Pop up entire local page.", 'popups/test/response', array('class' => 'popups')) ."<br />"; |
$output .= l("Pop up entire local page.", 'popups/test/response', array('class' => 'popups')) ."<br />"; |
| 27 |
|
|
| 28 |
Example on the theme level (only works if the "Scan all pages for popups links" checkbox is checked): |
class="popups" requests an informational popup. |
| 29 |
<a href="popups/test/response" class="popups"> |
class="popups-form" requests a popup with a form that modifies the content of the original page. |
|
|
|
|
class="popups" requests an informational popup. |
|
|
class="popups-form" requests a popup with a form that modifies the content of the original page. |
|
| 30 |
|
|
| 31 |
And you can use the pseudo-attribute, "on-popups-options" to send options, if you don't mind having non-validating HTML. |
And you can use the pseudo-attribute, "on-popups-options" to send options, if you don't mind having non-validating HTML. |
| 32 |
The advantage to this attribute, is that it will be removed from user content by the HTML filter. |
The advantage to this attribute, is that it will be removed from user content by the HTML filter. |