<?php
/**
 *
 * Email content
 *
 */
?>
<?php echo html_entity_decode( $form['confirmation_email_content'] ); ?>

<br><br>

<?php if ( happyforms_get_form_property( $form, 'confirmation_email_include_values' ) ) : ?>

	<?php foreach( $form['parts'] as $part ) : ?>

		<?php if ( happyforms_email_is_part_visible( $part, $form, $response ) ) : ?>

		<b><?php echo happyforms_get_email_part_label( $response, $part, $form ); ?></b><br>
		<?php echo happyforms_get_email_part_value( $response, $part, $form, 'user-email' ); ?>
		<br><br>

		<?php endif; ?>

	<?php endforeach; ?>

<?php endif; ?>

<?php
/**
 *
 * Tracking number
 *
 */
?>
<?php if ( happyforms_get_form_property( $form, 'unique_id' ) ) : ?>

#<?php echo $response['tracking_id']; ?>

<?php endif; ?>
