The Tree of Widsdom

智慧の樹

MediaFigLR

^do( MediaFigLR, filename1, filename2, title )^

Type: Macro

Purpose: Embeds a before/after image pair with caption

The MediaFigLR macro inserts two images with a rightwards arrow between them, showing transformation.

Hover below to reveal BoxPress code

<figure>
<div class="row vert-cent m-t-img m-b-md">
<div class="col-xs-6"><div class="thumbnail"><a href="^root^img/$1"><img src="^root^img/$1" alt="Before" title="Before"></a></div></div>
<img class="right-arrow" src="^root^img/BoxPressThemes/arrow_right.png" alt="Transformation" title="Transformation"></a>
<div class="col-xs-6"><div class="thumbnail"><a href="^root^img/$2"><img src="^root^img/$2" alt="After" title="After"></a></div></div></div>
<figcaption>$3</figcaption>
</figure>

MediaFigLR sample

This is the markup that is rendered below

^do(MediaFigLR, "sample.jpg", "sample_hover.jpg", "The lefthand image becomes the righthand image.")^

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Before
Transformation
After
The lefthand image becomes the righthand image.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.