Hiya All
I have done it. The PDF.js viewer pop-up (inside a ShadowBox window) now works with all these themes: Aardvark, Academi, Archaius, BCU, Campus, Clean, Contemporary, Crisp, Dynamic, Educacionbe, Eguru, Elegance, Essential, Evolve-D, More, Pioneer, Rocket, Roshnilite, Simple, Shoehorn, Squared, and most probably all other themes as well.
Sharing the 'solution' with all:
http://moodurian.blogspot.my/2015/11/view-pdf-files-in-pop-up-window-in.html
My hack on the /course/renderer.php works on a coursepage where all the lecturer did was to drag and drop PDF files. By default, the PDF file resouce's Display setting is 'Automatic'. If the lecturer had earlier set every PDF file resource's Display to 'pop-up', then the ShadowBox/FancyBox pop-up will NOT work. In such a case, the lecturer would have to change the Display setting to 'Automatic' just to enjoy the Lightbox-like PDF pop-up. Something I want to avoid. No admin or lecturer would want to manually change 100s of PDF file resource Display settings. It's too much work. My point is that I tried hard to create a silver bullet that would automatically open PDF file resoures in pop-ups, regardless of the 'Display' setting value. Failed. I achieved only 50% since only PDF file resources with 'Display' setting kept as the default 'Automatic' value would show up in Lightbox-like pop-up window.
My next step is to see if I can avoid hacking the code. Perhaps by applying course render over-ridding, or by using Generico or VideoEasy (?).
Cheers,
Frankie Kam, Malaysia