Wiki source code of User Macro: me-image - Image lightbox with Floatbox
Last modified by Normann P. Nielsen on 2014/01/19 20:15
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 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 | |||
| 13 | |||
| 14 | {{code}} | ||
| 15 | ## @param path:title=Status|type=string|required=true|desc=File Path | ||
| 16 | ## @param image:title=Status|type=string|required=true|desc=Image Name | ||
| 17 | ## @param group:title=Status|type=string|required=true|desc=Group | ||
| 18 | ## @param thumbsize:title=Thumbsize|type=string|required=false|desc=Thumbnail Size | ||
| 19 | ## @param displaysize:title=Displaysize|type=string|required=false|desc=Display Size | ||
| 20 | |||
| 21 | ## Default Thumb and Display Sizes: | ||
| 22 | #set($ThumbSizeDefault=200) | ||
| 23 | #set($DisplaySizeDefault=800) | ||
| 24 | |||
| 25 | #if (${paramthumbsize} != "" ) | ||
| 26 | #set($ThumbSizeDefault=${paramthumbsize}) | ||
| 27 | #end | ||
| 28 | |||
| 29 | #if (${paramdisplaysize} != "" ) | ||
| 30 | #set($DisplaySizeDefault=${paramdisplaysize}) | ||
| 31 | #end | ||
| 32 | |||
| 33 | #set ($title=$parampath.replace("//", "")) | ||
| 34 | #set ($title=$title.replace("%20", "_")) | ||
| 35 | |||
| 36 | <a href="/media/${parampath}/thumbs/${DisplaySizeDefault}pxHigh/${paramimage}" class="floatbox" data-fb-options="group:all captionPos: 'tc' caption2Pos: 'bl' caption:${title} caption2:${paramimage} colorTheme: black showClose: false showOuterClose: true"><img src="/media/${parampath}/thumbs/${ThumbSizeDefault}pxHigh/${paramimage}" tilte="${paramimage}"></a> | ||
| 37 | {{/code}} |