coldtrick/image_enlarger

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

Fund package maintenance!
ColdTrick
www.paypal.me/ColdTrick

Installs: 2 249

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:elgg-plugin

v5.0 2024-06-28 06:53 UTC

This package is auto-updated.

Last update: 2024-12-18 11:30:52 UTC


README

Elgg 6.0 Lint Checks 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.