← Back to team overview

mahara-contributors team mailing list archive

[Bug 1963986] [NEW] Fancybox lightbox JS & CSS not included in HTML Export

 

Public bug reported:

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

** Affects: mahara
     Importance: Undecided
         Status: New

** Attachment added: "Screenshot 2022-03-07 at 4.29.58 pm.png"
   https://bugs.launchpad.net/bugs/1963986/+attachment/5566581/+files/Screenshot%202022-03-07%20at%204.29.58%20pm.png

-- 
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



Follow ups