<?php do_action( 'snax_template_before_poll_questions_loop' ); ?>

<?php
global $post;
$current_post = $post;
$snax_q_query = snax_get_poll_questions_query();
?>
<div class="snax-poll-questions-wrapper">
	<?php if ( $snax_q_query->have_posts() ) : ?>
		<ul class="snax-poll-questions-items">

		<?php while ( $snax_q_query->have_posts() ) : $snax_q_query->the_post(); ?>
			<li class="snax-poll-questions-item">

				<?php
				do_action( 'snax_before_poll_question', get_post(), $snax_q_query->current_post );

				snax_get_template_part( 'polls/binary/content-question' );

				do_action( 'snax_after_poll_question', get_post(), $snax_q_query->current_post );
				?>

			</li>
		<?php endwhile; ?>
		</ul>
	<?php endif; ?>
</div>

<?php
$post = $current_post;
wp_reset_postdata();
?>

<?php do_action( 'snax_template_after_poll_questions_loop' );
