Fancybox lightbox JS & CSS not included in HTML Export
Bug #1963986 reported by
Tristan daCosta
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
New
|
Undecided
|
Unassigned |
Bug Description
I've noticed that the Fancybox 3 JS & CSS is not included in the HTML export, regardless of whether the Fancybox option is enabled in the Gallery block or not.
I would propose that if Fancybox is enabled (/admin/
I can see how to easily add in fancybox into the 'scripts' array, but the CSS array is built by looking through css within the 'themes' folders and I'm not sure what the best way to add fancybox CSS into this one (minified Fancybox CSS lives in the 'JS/Fancybox' folder).
Thanks
To post a comment you must log in.
I can confirm the following will fix this issue.
htdocs/ export/ html/lib. php
Line 65:
private $scripts = array('jquery', 'popper.min', 'bootstrap.min', 'dock', 'modal', 'lodash', 'gridstack', 'gridlayout', 'masonry.min', 'select2.full', 'fancybox.min', 'theme');
Line 1085: opy[get_ config( 'docroot' ) . 'js/fancybox/ jquery. fancybox. min.js' ] = $jsdir . 'fancybox.min.js';
Add fancybox file to export
$directoriestoc
Also: fancybox. min.css to /htdocs/ theme/raw/ style/jquery. fancybox. min.css (original location is js/fancybox/ jquery. fancybox. min.css)
Copy jquery.