Skip to content
This repository was archived by the owner on Oct 30, 2021. It is now read-only.

Commit 2f97a80

Browse files
committed
Adds removal of jcaption inline script
1 parent 7a08413 commit 2f97a80

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

elements/logic.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@
9595
unset($doc->_scripts[$this->baseurl . '/media/system/js/core.js']);
9696
unset($doc->_scripts[$this->baseurl . '/media/system/js/caption.js']);
9797
unset($doc->_scripts[$this->baseurl . '/media/system/js/modal.js']);
98+
99+
if (isset($doc->_script['text/javascript']))
100+
{
101+
$doc->_script['text/javascript'] = preg_replace("/jQuery\(window\).on\('load', function\(\) {\n\s*new JCaption\('img.caption'\);\n\s*}\);/", '', $doc->_script['text/javascript']);
102+
}
98103
}
99104

100105
// Change Google Web Font name for CSS

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy