56 lines
2.1 KiB
PHP
56 lines
2.1 KiB
PHP
<?php
|
|
|
|
?>
|
|
|
|
<fieldset class="field-order-paper-publications">
|
|
<?php
|
|
// $choices = $this->buildChoices();
|
|
$otherPublicationsArray = $this->buildChoicesArray();
|
|
?>
|
|
|
|
<?php foreach ($otherPublicationsArray as $index => $document) : ?>
|
|
|
|
<?php
|
|
$thematiqueCover = get_field('taxonomy_pictures', "thematiques_" . "143");
|
|
$documentPost = get_post($document['ID']);
|
|
$metadata = wp_get_attachment_metadata($document['ID']);
|
|
?>
|
|
|
|
<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 $documentPost->post_title ?></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 ($documentPost->post_content) : ?>
|
|
<!-- <p class="legend"><?php echo $documentPost->post_content ?></p> -->
|
|
<?php endif; ?>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="gchoice brochure-order-field">
|
|
|
|
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</fieldset>
|