Code Duplication    Length = 22-26 lines in 2 locations

shortcodes/espresso_thank_you/templates/thank-you-page-overview.template.php 1 location

@@ 12-33 (lines=22) @@
9
10
<div id="espresso-thank-you-page-overview-dv" class="width-100" >
11
12
	<?php if ( ! $revisit ) : ?>
13
	<div class="ee-attention">
14
		<div class="extra-padding-sides">
15
			<?php echo apply_filters(
16
				'FHEE__thank_you_page_overview_template__order_conf_desc',
17
				sprintf(
18
					$order_conf_desc,
19
					'<h3 class="">',
20
					'</h3>',
21
					'<br />'
22
				)
23
			);
24
			if ( ! empty( $TXN_receipt_url )) : ?>
25
			<br/>
26
			<div class="jst-rght">
27
				<a class="ee-button ee-roundish indented-text big-text" href="<?php echo $TXN_receipt_url;?>"><span class="ee-icon ee-icon-PDF-file-type"></span><?php echo apply_filters( 'FHEE__thank_you_page_overview_template__order_conf_button_text', __( 'View Full Order Confirmation Receipt', 'event_espresso' )); ?></a>
28
			</div>
29
			<?php endif; ?>
30
		</div>
31
	</div>
32
	<br/>
33
	<?php endif; ?>
34
	<br/>
35
36
	<?php  do_action( 'AHEE__thank_you_page_overview_template__content', $transaction ); ?>

modules/thank_you_page/EED_Thank_You_Page.module.php 1 location

@@ 790-815 (lines=26) @@
787
     */
788
    public function display_details_for_events_requiring_pre_approval($events = array())
789
    {
790
        if ( ! empty($events)) {
791
            ?>
792
            <div id="espresso-thank-you-page-not-approved-message-dv">
793
                <h4 class="orange-text"><?php _e('Important Notice:', 'event_espresso'); ?></h4>
794
                <p id="events-requiring-pre-approval-pg" class="small-text">
795
                    <?php echo apply_filters(
796
                        'AHEE__EED_Thank_You_Page__get_ajax_content__not_approved_message',
797
                        __(
798
                            'The following Event(s) you have registered for do not require payment at this time and will not be billed for during this transaction. Billing will only occur after all attendees have been approved by the event organizer. You will be notified when your registration has been processed. If this is a free event, then no billing will occur.',
799
                            'event_espresso'
800
                        )
801
                    ); ?>
802
                </p>
803
                <ul class="events-requiring-pre-approval-ul">
804
                    <?php foreach ($events as $event) {
805
                        if ($event instanceof EE_Event) {
806
                            echo '<li><span class="dashicons dashicons-marker ee-icon-size-16 orange-text"></span>',
807
                            $event->name(),
808
                            '</li>';
809
                        }
810
                    } ?>
811
                </ul>
812
                <div class="clear"></div>
813
            </div>
814
            <?php
815
        }
816
    }
817
818