ceinture-culturelle/template-parts/events-add.php
2024-11-29 13:49:01 +01:00

21 lines
895 B
PHP

<section class="section-add-event rounded-md mb-4">
<div>
<h2 class="add-event bg-secondary py-2 px-4 rounded-md text-white float-right cursor-pointer block">Ajouter un événement +</h2>
<div class="clear-both"></div>
</div>
<div class="form-add-event hidden opacity-0 transform scale-95 transition-all duration-500 my-4 py-8 px-12 bg-slate-200 rounded-md">
<?php
acf_form(array(
'post_id' => 'new_post',
'new_post' => array(
'post_type' => 'evenements',
'post_status' => 'publish'
),
'submit_value' => 'Ajouter un événement',
'post_title' => true,
'field_groups' => array('group_67405fd4d1648'),
'return' => site_url('/'),
));
?>
</div>
</section>