Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Oct 29, 2014
1 parent ac66274 commit 0c64cf0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,12 @@ By default, the extension defines the type for all Magnific Popup instances as `
<a href="page.html" data-lightbox="iframe group1">Page</a>
```

- through the `data-mfp-type` parameter, e.g.

```html
<a href="page.html" data-lightbox="" data-mfp-type="iframe">Page</a>
```

- by using your own Magnific Popup initialisation
- by setting the type globally through the options in your own `j_magnific_popup` template

## Additional Parameters

I have also added another parameter, which will alow you to inject a custom CSS class to the main wrapper of the overlay:
To support some compatibility with the old lightbox parameters of Contao, you can also define the width and height of the iframe popup like so:
```html
<a href="page.html" data-lightbox="iframe" data-mfp-class="myClass">Page</a>
<a href="page.html" data-lightbox="iframe 800 600">Page</a>
```

0 comments on commit 0c64cf0

Please sign in to comment.