55 lines
2.0 KiB
PHP
55 lines
2.0 KiB
PHP
<?php
|
|
|
|
?>
|
|
|
|
<fieldset class="field-order-paper-publications">
|
|
<?php
|
|
?>
|
|
<?php foreach ($this->choices as $index => $document) : ?>
|
|
|
|
<?php
|
|
$test = get_term(143, 'thematiques');
|
|
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . "143");
|
|
|
|
write_log($thematiqueCover);
|
|
|
|
?>
|
|
|
|
<div class=" gchoice brochure-order-field">
|
|
<div class="thematique-tag thematique-tag--general">
|
|
<?php if ($thematiqueCover && $thematiqueCover['icon']) : ?>
|
|
<img class="thematique-icon" src="<?php echo $thematiqueCover['icon']['url'] ?>" alt="">
|
|
<?php endif; ?>
|
|
<p>
|
|
<?php echo __("Autre", "homegrade-theme__texte-fonctionnel") ?>
|
|
|
|
</p>
|
|
</div>
|
|
<legend class="brochure-legend gform-field-label gform-field-label--type-inline"><?php echo $document['text'] ?></legend>
|
|
<a class="preview-brochure" href="<?php echo get_the_permalink($document['ID']) ?>" target="_blank"><?php echo __("Voir le document", "homegrade-theme__texte-fonctionnel") ?></a>
|
|
<div class="inputs-container">
|
|
<div class="publications-amount-fr">
|
|
<label id="publications-amount__label-fr" for="<?php echo 'input_' . $id . '[]' ?>" title="<?php echo __("Quantité désiré de brochures en Français", "homegrade-theme__texte-fonctionnel") ?>">fr</label>
|
|
<input type="number" size="1" min="0" name="<?php echo 'input_' . $id . '[]' ?>" />
|
|
</div>
|
|
<div class="publications-amount publications-amount-nl">
|
|
<label id="publications-amount__label-nl" for="<?php echo 'input_' . $id . '[]' ?>" title="<?php echo __("Quantité désiré de brochures en Néerlandais", "homegrade-theme__texte-fonctionnel") ?>">nl</label>
|
|
<input type="number" size="1" min="0" name="<?php echo 'input_' . $id . '[]' ?>" />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if ($document['value']) : ?>
|
|
<p class="legend"><?php echo $document['value'] ?></p>
|
|
<?php endif; ?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="gchoice brochure-order-field">
|
|
|
|
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</fieldset>
|