coldtrick/image_enlarger

Allows images to be enlarged in content

Installs: 882

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:elgg-plugin

v2.0.3 2019-05-29 10:10 UTC

This package is auto-updated.

Last update: 2020-03-27 17:43:35 UTC


README

Elgg 3.0 Build Status Scrutinizer Code Quality Latest Stable Version License

Allows images to be enlarged in content. Clicking them will open a lightbox with the image

How it works

All images in the content of a page will be checked if they can be enlarged in a lightbox.

The following conditions must apply:

  • The image is not inside a link
  • The image must have a src attribute

High resolution alternative

If you have a high resolution alternative of the image you wish to show in the lightbox, you can set a data attribute with the high resolution URL.

Set the URL in the attribute data-highres-url on the img tag.