diff --git a/templates/bazar/assets/Instructions_pliage_recto.jpg b/templates/bazar/assets/Instructions_pliage_recto.jpg deleted file mode 100644 index 6a10bd6..0000000 Binary files a/templates/bazar/assets/Instructions_pliage_recto.jpg and /dev/null differ diff --git a/templates/bazar/assets/Instructions_pliage_recto.webp b/templates/bazar/assets/Instructions_pliage_recto.webp new file mode 100644 index 0000000..1c37dd6 Binary files /dev/null and b/templates/bazar/assets/Instructions_pliage_recto.webp differ diff --git a/templates/bazar/assets/Instructions_pliage_verso.jpg b/templates/bazar/assets/Instructions_pliage_verso.jpg deleted file mode 100644 index a67477f..0000000 Binary files a/templates/bazar/assets/Instructions_pliage_verso.jpg and /dev/null differ diff --git a/templates/bazar/assets/Instructions_pliage_verso.webp b/templates/bazar/assets/Instructions_pliage_verso.webp new file mode 100644 index 0000000..19e69c1 Binary files /dev/null and b/templates/bazar/assets/Instructions_pliage_verso.webp differ diff --git a/templates/bazar/assets/activites.css b/templates/bazar/assets/activites.css new file mode 100644 index 0000000..1f9be40 --- /dev/null +++ b/templates/bazar/assets/activites.css @@ -0,0 +1,219 @@ +.full-portrait-a4 { + display: grid; + grid-template-columns: repeat(2, minmax(50%, 50%)); + gap: 0; + justify-content: center; + width: 205mm; + height: 295mm; + border: 1px dotted #aaa; +} +.indications, +.indications2 { + display: none; +} +.yw-main-content.alone .indications, +.yw-main-content.alone .indications2, +.include:last-child .indications, +.include:last-child .indications2 { + display: block; +} +.indications img, +.indications2 img { + width: 200mm; + height: 286mm; + display: block; + margin: 0 auto; +} +.left, +.right { + padding: 8mm; + height: 285mm; + position: relative; +} +.right { + border-left: 1px dotted #aaa; +} +img { + border-radius: 0; +} +/* RECTO GAUCHE */ + +/* RECTO DROITE */ +.recto .right { + display: grid; + grid-template-columns: 1fr; + grid-template-rows: 20mm 16mm 88mm 88mm 10mm 28mm 24mm; +} +.logo { + display: flex; + align-items: flex-start; + justify-content: flex-end; +} +.main-logo { + width: 36mm; + margin-right: -2.7mm; +} +.main-title { + background-color: #759440 !important; + color: white !important; + font-size: 22px; + text-transform: uppercase; + padding: 2mm; + margin: 0; + line-height: 1.17em; + align-content: center; + overflow: hidden; +} +.description, +.reponse { + font-size: 18px; + padding: 2mm; +} +.description { + align-content: start; +} +.credit-photo { + align-content: start; + text-align: right; + font-size: 15px; + font-style: italic; +} +.footer-fiche { + display: flex; + justify-content: space-between; + align-content: end; +} +.link { + color: #759440 !important; + align-content: end; + font-weight: bolder; + text-decoration: underline; +} + +.qrcode { + align-content: end; + align-items: end; + display: flex; + justify-content: end; + gap: 0; +} +.infos { + display: flex; + justify-content: space-between; + align-items: end; +} +.rotated-img img { + width: 30px; + display: block; +} +.qrcode-img { + width: 100px; + height: 100px; + display: block; +} +.green-bg { + color: white !important; + background: #759440 !important; + padding: 0.5mm 2mm; + font-style: italic; +} +.author .green-bg { + display: block; + width: fit-content; + padding: 0 2mm; +} +.rotated-text { + background: #759440; + color: white; + padding: 0.5mm 2mm; + transform: rotate(-0.25turn) translateX(6mm) translateY(4mm); + font-size: 15px; +} +.recto .rotated-text { + margin-right: -13mm; +} +.recto .right .footer-fiche img { + width: 20mm; + margin-right: -3mm; + margin-bottom: -7mm; +} + +/* VERSO GAUCHE */ + +/* VERSO DROITE */ +.verso .right { + background: url('custom/templates/bazar/assets/petits_pas.svg') repeat-y 3mm 14mm; + padding-left: 24mm; + background-size: 60px; + display: grid; + grid-template-columns: 1fr; + grid-template-rows: 146mm 72mm 10mm 32mm 14mm; +} +.verso .footer-fiche { + margin-left: -24mm; + margin-right: -8mm; + background: white !important; + padding: 0 8mm; +} +.petit-pimp { + width: 30mm; + margin-bottom: -4mm; + position: relative; + display: block; + background: white; +} +.trou { + display: none; + background-color: black; + width: 16px; + height: 16px; + border-radius: 50%; + position: absolute; + top: 16mm; + left: 16mm; +} + +@media print { + @page { + size: A4 portrait; + margin: 0; + } + + ::-webkit-scrollbar { + display: none; + } + + body { + print-color-adjust: exact; + -webkit-print-color-adjust: exact; + margin: 0; + } + a[href]::after { + content: none; + } + .footer, + #yw-topnav, + #yw-header, + #yw-footer, + .filters-col, + .debug, + .BAZ_fiche_info, + .embed-responsive, + .no-print { + display: none !important; + } + .right, + .full-portrait-a4 { + border: none; + } + #yw-main { + padding: 0; + } + .indications img, + .indications2 img { + width: 200mm; + height: 286mm; + display: block; + margin: 0 auto; + } +} diff --git a/templates/bazar/assets/instructions.png b/templates/bazar/assets/instructions.png deleted file mode 100644 index 044a978..0000000 Binary files a/templates/bazar/assets/instructions.png and /dev/null differ diff --git a/templates/bazar/assets/l-info-en-plus.png b/templates/bazar/assets/l-info-en-plus.png new file mode 100644 index 0000000..d039f3b Binary files /dev/null and b/templates/bazar/assets/l-info-en-plus.png differ diff --git a/templates/bazar/assets/vers-fiche.png b/templates/bazar/assets/vers-fiche.png new file mode 100644 index 0000000..d24f348 Binary files /dev/null and b/templates/bazar/assets/vers-fiche.png differ diff --git a/templates/bazar/fiche-20.tpl.html b/templates/bazar/fiche-20.tpl.html index 697a06c..c40fa93 100644 --- a/templates/bazar/fiche-20.tpl.html +++ b/templates/bazar/fiche-20.tpl.html @@ -1,4 +1,6 @@ services->get(AssetsManager::class)->AddCSSFile('custom/templates/bazar/assets/activites.css'); if (empty($_GET['print']) || $_GET['print'] != 1) { $renderedEntry = ''; foreach ($form['prepared'] as $field) { @@ -21,10 +23,10 @@ if (isset($fiche['imagebf_image1']) && $fiche['imagebf_image1']!='') { $fiche['bf_credit2'] = $fiche['bf_credit']; } -$qrcode = 'vers fiche'.$GLOBALS['wiki']->format('{{qrcode text="' . $GLOBALS['wiki']->href('', $fiche['id_fiche']) . '"}}').''; +$qrcode = 'vers fiche'.$GLOBALS['wiki']->format('{{qrcode text="' . $GLOBALS['wiki']->href('', $fiche['id_fiche']) . '"}}').''; $qrcodeurl = ''; if (!empty($fiche['bf_url'])) { -$qrcodeurl = 'l\'info en +'.$GLOBALS['wiki']->format('{{qrcode text="'.$fiche['bf_url'].'"}}').''; +$qrcodeurl = 'l\'info en +'.$GLOBALS['wiki']->format('{{qrcode text="'.$fiche['bf_url'].'"}}').''; } else { $qrcodeurl = $qrcode; } @@ -42,13 +44,15 @@ echo <<