1. added the folder jm_cookie_control/data
2. saved files GDPR-(lang).html
3. adjusted the function (added the path to the GDPR file and added the class "zoom_i" for opening the file in hi_fancybox <shall be also installed>)
Code: Select all
function jm_cookie_control() {
global $hjs, $pth, $plugin_cf, $plugin_tx, $sl;
$ptx = $plugin_tx['jm_cookie_control'];
// folder /data shall contain the GDPR file
$pdata = $pth['folder']['plugin'].'data/'.$ptx['link'];
$o = ' <script src="'.$pth['folder']['plugins'].'jm_cookie_control/jm_cookie_control.js"></script>
<div id="cookie-space"></div>
<div id="cookie-consent">
<div id="cookie-inner">
<div id="cookie-text">
<button id="accept">'.$ptx['button'].'</button>'
.$ptx['text'].'
<a class="zoom_i" href="'.$pdata.'" target="_blank">'
.$ptx['linkbutton'].'
</a>
</div>
</div>
</div>';
return $o;
}
Have a look at https://cmsimple.sk/