Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PullRequest adds two shortcodes in order to help placing images in a page:
floating.html
: it is just applying the CSS stylefloat: left/right
on a given content. This content can be an image but also anything else. It may take one (un-named) parameter:left
(default) orright
Usage example:
side-image
: this shortcode is entirely dedicated to images.It takes at least one parameter, the URL of the side image:
image
.It also accepts another parameter to give the URL of a thumbnail of the image:
thumbnail
. With this additional parameter, the image becomes clickable ; the click leads to the full size image.A third parameter lets specify whether the side image should be on the left or on the right:
position
. If unspecified, it will be on the left.The body content of this shortcode, is the content (text or not) to be placed on right or the left of the image.
Usage example:
This shortcode could be improved by adding a target URL. Then, the click would not lead to the full size image but to the given URL. The full size image could then be displayed on mouse hover or with a small magnifier button appearing over the image. Similarly, it could be possible to do the same with a figure (then, with a numbered caption) instead of a simple image. All these improvements (and maybe others) can be made later when needed.
Fixes #84