diff --git a/admin/generer_recus.php b/admin/generer_recus.php index 6fa83bf..b903c40 100644 --- a/admin/generer_recus.php +++ b/admin/generer_recus.php @@ -22,6 +22,8 @@ $signature = \KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . $plugin->getConfig('signature') : ""); +// http://test.paheko.bzh/config/cavalier.png +error_log('signature = ' . $signature); // logo $config = Config::getInstance(); $logo_asso = @@ -208,9 +210,9 @@ function genererRecusPDF($totalPersonnes, ); //supprimer les fichiers pdf - foreach ($listeFichiersPDF as $f) { - \Paheko\Utils::safe_unlink($f); - } + // foreach ($listeFichiersPDF as $f) { + // \Paheko\Utils::safe_unlink($f); + // } } // genererRecusPDF function generererRecusHTML($tpl, diff --git a/admin/script.js b/admin/script.js index 8f68766..8faea47 100644 --- a/admin/script.js +++ b/admin/script.js @@ -285,8 +285,10 @@ function verifierCases(conteneur, type, message) { */ function changerStyle(document) { let styles = document.querySelectorAll('link[rel="stylesheet"]'); + // console.log(styles); for (let sheet of styles) { - if (sheet.href.includes('print.css')) { sheet.media = "tv"; } + if (sheet.href.includes('print.css')) { sheet.media = "tv"; sheet.remove; } if (sheet.href.includes('imprimer_recu.css')) { sheet.media = 'print'; } } + // console.log(styles); } diff --git a/templates/_nav.tpl b/templates/_nav.tpl index 4f41861..2f6512a 100644 --- a/templates/_nav.tpl +++ b/templates/_nav.tpl @@ -1,5 +1,5 @@ -{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.name} +{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.id}