Design. It's all about design. Today's post is a sequel to my earlier post on the same subject. In that post, I enabled my PDF and ODF files to open in a Lightbox-like window, when clicked upon, in three themes: Evolve-D, Academi and BCU. I had used FancyBox and ViewerJS to achieve this. I couldn't get Fancybox to work with other themes.
The great news is that I have since discovered that ShadowBox (in place of FancyBox) works on Essential theme. The installation is much easier, and I managed to optimise the look and feel of ShadowBox by tweaking its original CSS file.
At the end of this post, you will be able to hack your beloved and sacred Moodle site so that PDF files will open as pop-ups. That's all. Nothing earth-shattering. However, I strongly believe that my post today is going to touch lives and make a difference in your Moodle experience (XP). As well as your teachers' and students' Moodle XP. Read on!
Via Miloš Bajčetić