Wiki source code of User Macro: me-image - Image lightbox with OrangeBox
Last modified by Normann P. Nielsen on 2013/08/26 21:15
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | This requires theĀ [[User Macro: include-lightbox - OrangeBox>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.user-macro-include-lightbox-orangebox]] macro on the page also. or in Custom HTML | ||
| 2 | |||
| 3 | |= Name| me-image | ||
| 4 | |= Macro Body Processing| No macro body | ||
| 5 | |= Output format| HTML | ||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | Macro Code | ||
| 10 | |||
| 11 | |||
| 12 | {{code}} | ||
| 13 | ## @param path:title=Status|type=string|required=true|desc=File Path | ||
| 14 | ## @param image:title=Status|type=string|required=true|desc=Image Name | ||
| 15 | ## @param group:title=Status|type=string|required=true|desc=Group | ||
| 16 | |||
| 17 | #set ($title=$parampath.replace("//", "")) | ||
| 18 | #set ($title=$title.replace("%20", " ")) | ||
| 19 | |||
| 20 | <a id="single_image" href="/media/${parampath}thumbs/800pxHigh/${paramimage}" data-ob="lightbox[${parampath}]" title="${title}" data-ob_caption="URL: /media/${parampath}${paramimage}"><img src="/media/${parampath}thumbs/200pxHigh/${paramimage}"></a> | ||
| 21 | {{/code}} |