<?php
$wrapper_attributes = get_block_wrapper_attributes(['class' => 'subscribe-infolettre alignfull']);
$title = $attributes['title'] ?? null;
?>

<section <?php echo $wrapper_attributes; ?>>
	<div class="subscribe-infolettre__inner">
		<div class="subscribe-infolettre__content">
			<p class="block-title">infolettre</p>
			<?php if ($title) : ?>
				<h2 class="subscribe-infolettre__title"><?php echo $title; ?></h2>
			<?php endif; ?>
			<?php echo $content; ?>
		</div>

		<div class="subscribe-infolettre__form">
			<?php echo do_shortcode('[mailpoet_form id="1"]'); ?>
			<!-- <form action="">
				<input type="text" placeholder="Nom" />
				<input type="email" placeholder="Adresse email" />
				<button type="submit">S'abonner</button>
			</form> -->
		</div>
	</div>
</section>