mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #65343
[Bug 1963986] Re: Fancybox lightbox JS & CSS not included in HTML Export
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:
Add fancybox file to export
$directoriestocopy[get_config('docroot') . 'js/fancybox/jquery.fancybox.min.js'] = $jsdir . 'fancybox.min.js';
Also:
Copy fancybox.min.css to /htdocs/theme/raw/style/jquery.fancybox.min.css (original location is js/fancybox/jquery.fancybox.min.css)
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1963986
Title:
Fancybox lightbox JS & CSS not included in HTML Export
Status in Mahara:
New
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/extensions/pluginconfig.php?plugintype=blocktype&pluginname=file/gallery),
then Fancybox JS & CSS be included in the <head> of the index.html on
HTML exports.
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 manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1963986/+subscriptions
References