fix(iframe): on print in new window

This commit is contained in:
Florian Schmitt 2025-01-30 14:37:18 +03:00
parent 8a673d381d
commit ac591c34ba

View file

@ -5,7 +5,7 @@ if (empty($_GET['print']) || $_GET['print'] != 1) {
$renderedEntry .= $field->renderStaticIfPermitted($fiche, $GLOBALS['wiki']->GetUsername());
}
echo $renderedEntry;
echo '<a class="btn btn-primary no-print" href="'.$GLOBALS['wiki']->href('', '', 'print=1&returnTo='.$GLOBALS['wiki']->href('', '')).'"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</a>';
echo '<a class="btn btn-primary no-print new-window" href="'.$GLOBALS['wiki']->href('', '', 'print=1&returnTo='.$GLOBALS['wiki']->href('', '')).'"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</a>';
} else {
$imgwidth = $imgheight = 600;
$imgCarree = '';
@ -76,7 +76,7 @@ echo <<<TEMPLATE
<div class="full-portrait-a4 indications2">
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.jpg" alt="instructions verso" />
</div>
<button style="margin-top:1em;" class="btn btn-primary no-print" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
<button style="margin-top:1em;" class="btn btn-primary no-print new-window" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
<style>
.full-portrait-a4 {