Wiki source code of User Macro: me-image - Image lightbox with fancybox
Last modified by Normann P. Nielsen on 2013/08/26 21:17
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | This requires the [[User Macro: include-lightbox - Slimbox2 including>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.user-macro-include-lightbox-slimbox2-including]] macro on the page also |
| 2 | |||
| 3 | |= Name| me-image | ||
| 4 | |= Macro Body Processing| No macro body | ||
| 5 | |= Output format| HTML | ||
| 6 | |||
| 7 | A kind of pre-requisite is the [[include-fancybox>>Main.atlassian.atlassian-confluence.mos-eisley-gallery.user-macro-include-lightbox-fancybox-including]] macro, that attaches to the id "single image" | ||
| 8 | |||
| 9 | 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 | <a id="single_image" href="/media/${parampath}thumbs/800pxHigh/${paramimage}" rel="lightbox-${paramgroup}" title="${paramimage}"><img src="/media/${parampath}thumbs/200pxHigh/${paramimage}"></a> | ||
| 18 | |||
| 19 | {{/code}} |