feat(parcours): print parcours thematique
This commit is contained in:
parent
32389d740e
commit
61cfb73bce
1 changed files with 15 additions and 0 deletions
15
templates/bazar/fiche-21.tpl.html
Normal file
15
templates/bazar/fiche-21.tpl.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
use YesWiki\Core\Service\AssetsManager;
|
||||||
|
$GLOBALS['wiki']->services->get(AssetsManager::class)->AddCSSFile('custom/templates/bazar/assets/activites.css');
|
||||||
|
if (empty($_GET['print']) || $_GET['print'] != 1) { $renderedEntry = ''; foreach
|
||||||
|
($form['prepared'] as $field) { $renderedEntry .=
|
||||||
|
$field->renderStaticIfPermitted($fiche, $GLOBALS['wiki']->GetUsername()); } echo
|
||||||
|
$renderedEntry; 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 ce parcours thématique </a
|
||||||
|
>'; } else { $activites = explode(',', $fiche['bf_activite']); foreach
|
||||||
|
($activites as $activite) { echo $GLOBALS['wiki']->Format('{{include
|
||||||
|
page="'.$activite.'"}}'); } $_GET['returnTo'] = $GLOBALS['wiki']->href('', '');
|
||||||
|
} ?>
|
Loading…
Add table
Reference in a new issue