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 062

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Language:JavaScript

Type:elgg-plugin

v4.0.1 2023-11-30 09:13 UTC

This package is auto-updated.

Last update: 2024-03-30 00:23:28 UTC


README

Elgg 5.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.