/* ======================= */
/* SECTION: Layout Spacing */
<?php if ( forminator_array_value_exists( $properties, 'quiz-spacing' ) && ! empty( $properties['quiz-custom-spacing'] ) ) { ?>
	<?php if ( forminator_array_value_exists( $properties, 'visual_style' ) ) { ?>
		<?php if ( 'grid' == $properties['visual_style'] && ! empty( $properties['visual_style'] ) ) { ?>
			<?php include('global/spacing/layout-grid.html') ?>
		<?php } else if ( 'grid' != $properties['visual_style'] && ! empty( $properties['visual_style'] ) ) { ?>
			<?php include('global/spacing/layout-list.html') ?>
		<?php } ?>
	<?php } ?>
<?php } else { ?>
/* No custom layout is enabled. */
<?php } ?>

/* =============== */
/* SECTION: Global */
<?php include('global/quiz-container.html') ?>
<?php include('global/response-error-colors.html') ?>

/* =============== */
/* SECTION: Header */
<?php include('global/header/quiz-title.html') ?>
<?php include('global/header/quiz-description.html') ?>

/* ================ */
/* SECTION: Content */
<?php include('global/content/questions-container.html') ?>
<?php include('global/content/questions-legend.html') ?>
<?php include('global/content/page-indicator.html') ?>
<?php include('global/content/start-button.html') ?>
<?php include('global/content/questions-description.html') ?>
<?php include('global/content/questions-result.html') ?>
<?php include('global/content/answers-text.html') ?>
<?php include('global/content/field-image-size.html') ?>

/* =============== */
/* SECTION: Footer */
<?php include('global/footer/quiz-footer.html') ?>
<?php include('global/footer/submit-button.html') ?>
<?php include('global/footer/navigation-button.html') ?>
<?php include('global/footer/social-share.html') ?>


<?php if ( forminator_array_value_exists( $properties, 'forminator-quiz-theme' ) && 'none' != $properties['forminator-quiz-theme'] ) { ?>
	<?php include self::get_template( $properties['forminator-quiz-theme'], 'answers-container.html'); ?>
	<?php include self::get_template( $properties['forminator-quiz-theme'], 'answers-checkbox.html'); ?>
	<?php if ( in_array( $properties['forminator-quiz-theme'], array( 'flat', 'bold', 'material' ), true ) ) { ?>
		<?php include( $properties['forminator-quiz-theme'] . '/quiz-result.html') ?>
	<?php } else { ?>
		<?php include('default/quiz-result.html') ?>
	<?php } ?>
	<?php if ( in_array( $properties['forminator-quiz-theme'], array( 'material' ), true ) ) { ?>
		<?php include( $properties['forminator-quiz-theme'] . '/retake-button.html') ?>
		<?php include( $properties['forminator-quiz-theme'] . '/back-to-question.html') ?>
	<?php } else { ?>
		<?php include('global/footer/retake-button.html') ?>
		<?php include('global/footer/back-to-question.html') ?>
	<?php } ?>
<?php } ?>

/* ============= */
/* Custom Styles */
<?php if ( forminator_array_value_exists( $properties, 'use-custom-css' ) && forminator_array_value_exists( $properties, 'custom_css' ) ) { ?>
	<?php echo $properties['custom_css'] ?>
<?php } ?>
