Code Duplication    Length = 20-21 lines in 2 locations

includes/forms/template.php 2 locations

@@ 848-868 (lines=21) @@
845
846
		</p>
847
848
		<?php if ( give_is_anonymous_donation_field_enabled( $form_id ) ) : ?>
849
			<?php $is_anonymous_donation = isset( $_POST['give_anonymous_donation'] ) ? absint( $_POST['give_anonymous_donation'] ) : 0; ?>
850
			<p id="give-anonymous-donation-wrap" class="form-row form-row-wide">
851
				<label class="give-label" for="give-anonymous-donation">
852
					<input
853
						type="checkbox"
854
						class="give-input<?php echo( give_field_is_required( 'give_anonymous_donation', $form_id ) ? ' required' : '' ); ?>"
855
						name="give_anonymous_donation"
856
						id="give-anonymous-donation"
857
						value="1"
858
						<?php echo( give_field_is_required( 'give_anonymous_donation', $form_id ) ? ' required aria-required="true" ' : '' ); ?>
859
						<?php checked( 1, $is_anonymous_donation ); ?>
860
					>
861
					<?php _e( 'Make this an anonymous donation', 'give' ); ?>
862
					<?php if ( give_field_is_required( 'give_comment', $form_id ) ) { ?>
863
						<span class="give-required-indicator">*</span>
864
					<?php } ?>
865
					<?php echo Give()->tooltips->render_help( esc_html__( 'Would you like to prevent this donation from being displayed publicly?', 'give' ) ); ?>
866
				</label>
867
			</p>
868
		<?php endif; ?>
869
870
		<?php if ( give_is_donor_comment_field_enabled( $form_id ) ) : ?>
871
			<p id="give-comment-wrap" class="form-row form-row-wide">
@@ 870-889 (lines=20) @@
867
			</p>
868
		<?php endif; ?>
869
870
		<?php if ( give_is_donor_comment_field_enabled( $form_id ) ) : ?>
871
			<p id="give-comment-wrap" class="form-row form-row-wide">
872
				<label class="give-label" for="give-comment">
873
					<?php _e( 'Comment', 'give' ); ?>
874
					<?php if ( give_field_is_required( 'give_comment', $form_id ) ) { ?>
875
						<span class="give-required-indicator">*</span>
876
					<?php } ?>
877
					<?php echo Give()->tooltips->render_help( __( 'Would you like to add a comment to this donation?', 'give' ) ); ?>
878
				</label>
879
880
				<textarea
881
					class="give-input<?php echo( give_field_is_required( 'give_comment', $form_id ) ? ' required' : '' ); ?>"
882
					name="give_comment"
883
					placeholder="<?php _e( 'Leave a comment', 'give' ); ?>"
884
					id="give-comment"
885
					<?php echo( give_field_is_required( 'give_comment', $form_id ) ? ' required aria-required="true" ' : '' ); ?>
886
				><?php echo isset( $_POST['give_comment'] ) ? give_clean( $_POST['give_comment'] ) : ''; ?></textarea>
887
888
			</p>
889
		<?php endif; ?>
890
		<?php
891
		/**
892
		 * Fire after user email field