Completed
Branch master (9f32eb)
by
unknown
07:23 queued 05:06
created
reg_steps/attendee_information/copy_attendee_info.template.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
     <p class="spco-copy-all-attendee-pg">
13 13
         <label class="ee-checkbox-label-before ee-checkbox-label-wide">
14 14
             <?php esc_html_e(
15
-                'Use Attendee #1\'s information for ALL attendees',
16
-                'event_espresso'
17
-            ); ?>
15
+				'Use Attendee #1\'s information for ALL attendees',
16
+				'event_espresso'
17
+			); ?>
18 18
             <input class='spco-copy-all-attendee-chk ee-do-not-validate'
19 19
                    id="spco-copy-all-attendee-chk"
20 20
                    type="checkbox"
@@ -25,16 +25,16 @@  discard block
 block discarded – undo
25 25
 
26 26
     <p class="spco-copy-attendee-pg">
27 27
         <?php echo apply_filters(
28
-            'FHEE__registration_page_attendee_information__copy_attendee_pg',
29
-            sprintf(
30
-                esc_html__(
31
-                    'This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.',
32
-                    'event_espresso'
33
-                ),
34
-                '<strong>',
35
-                '</strong>'
36
-            )
37
-        ); ?></p>
28
+			'FHEE__registration_page_attendee_information__copy_attendee_pg',
29
+			sprintf(
30
+				esc_html__(
31
+					'This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.',
32
+					'event_espresso'
33
+				),
34
+				'<strong>',
35
+				'</strong>'
36
+			)
37
+		); ?></p>
38 38
 
39 39
     <a class='display-the-hidden smaller-text float-right'
40 40
        id="display-more-attendee-copy-options"
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
     <div id="more-attendee-copy-options-dv" class="" style="display: none;">
55 55
         <p class="spco-copy-attendee-pg">
56 56
             <?php esc_html_e(
57
-                'Only copy the above information to the following selected additional attendees.',
58
-                'event_espresso'
59
-            ); ?>
57
+				'Only copy the above information to the following selected additional attendees.',
58
+				'event_espresso'
59
+			); ?>
60 60
         </p>
61 61
 
62 62
         <?php
63
-        foreach ($spco_copy_attendee_chk as $spco_copy_chk) {
64
-            echo wp_kses($spco_copy_chk, AllowedTags::getWithFormTags());
65
-        } ?>
63
+		foreach ($spco_copy_attendee_chk as $spco_copy_chk) {
64
+			echo wp_kses($spco_copy_chk, AllowedTags::getWithFormTags());
65
+		} ?>
66 66
 
67 67
     </div>
68 68
     <div class="clear-float"></div>
Please login to merge, or discard this patch.
reg_steps/attendee_information/attendee_info_single.template.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@  discard block
 block discarded – undo
14 14
 <?php if (! is_admin()) : ?>
15 15
     <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
16 16
         <?php echo apply_filters(
17
-            'FHEE__registration_page_attendee_information__attendee_information_pg',
18
-            sprintf(
19
-                esc_html__(
20
-                    'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.',
21
-                    'event_espresso'
22
-                ),
23
-                '<br />',
24
-                '<span class="asterisk">*</span>'
25
-            )
26
-        ); ?>
17
+			'FHEE__registration_page_attendee_information__attendee_information_pg',
18
+			sprintf(
19
+				esc_html__(
20
+					'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.',
21
+					'event_espresso'
22
+				),
23
+				'<br />',
24
+				'<span class="asterisk">*</span>'
25
+			)
26
+		); ?>
27 27
     </p>
28 28
 <?php endif; ?>
29 29
 
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 $prev_ticket = 0;
34 34
 
35 35
 if (count($registrations) > 0) {
36
-    $ticketID = esc_attr(key($template_args['ticket_count']));
37
-    ?>
36
+	$ticketID = esc_attr(key($template_args['ticket_count']));
37
+	?>
38 38
 
39 39
     <div id="spco-attendee-panel-dv-<?php echo esc_attr($ticketID); ?>"
40 40
          class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo sanitize_html_class($ticketID); ?>"
@@ -62,37 +62,37 @@  discard block
 block discarded – undo
62 62
                 </thead>
63 63
                 <tbody>
64 64
                     <?php
65
-                    // Store previous values to avoid duplicated rows.
66
-                    $prev_ticket = 0;
67
-                    // Display all tickets inside.
68
-                    foreach ($registrations as $registration) {
69
-                        if ($registration instanceof EE_Registration) {
70
-                            if ($registration->ticket()->ID() !== $prev_ticket) {
71
-                                echo wp_kses($ticket_line_item[ $registration->ticket()->ID() ], AllowedTags::getWithFormTags());
72
-                            }
65
+					// Store previous values to avoid duplicated rows.
66
+					$prev_ticket = 0;
67
+					// Display all tickets inside.
68
+					foreach ($registrations as $registration) {
69
+						if ($registration instanceof EE_Registration) {
70
+							if ($registration->ticket()->ID() !== $prev_ticket) {
71
+								echo wp_kses($ticket_line_item[ $registration->ticket()->ID() ], AllowedTags::getWithFormTags());
72
+							}
73 73
 
74
-                            $prev_ticket = $registration->ticket()->ID();
75
-                        }
76
-                    }
77
-                    ?>
74
+							$prev_ticket = $registration->ticket()->ID();
75
+						}
76
+					}
77
+					?>
78 78
                 </tbody>
79 79
             </table>
80 80
         </div><!-- close spco-ticket-info-dv -->
81 81
 
82 82
         <?php
83
-        // Display the forms below the table.
84
-        foreach ($registrations as $registration) {
85
-            if ($registration instanceof EE_Registration) {
86
-                // Attendee Questions.
87
-                $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link());
88
-                echo wp_kses(${$reg_form}, AllowedTags::getWithFormTags());
89
-            } // if ( $registration instanceof EE_Registration )
90
-        } // end foreach ( $registrations as $registration )
83
+		// Display the forms below the table.
84
+		foreach ($registrations as $registration) {
85
+			if ($registration instanceof EE_Registration) {
86
+				// Attendee Questions.
87
+				$reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link());
88
+				echo wp_kses(${$reg_form}, AllowedTags::getWithFormTags());
89
+			} // if ( $registration instanceof EE_Registration )
90
+		} // end foreach ( $registrations as $registration )
91 91
 
92
-        ?>
92
+		?>
93 93
     </div><!-- close spco-attendee-panel-dv -->
94 94
     <?php
95
-    echo wp_kses($default_hidden_inputs, AllowedTags::getWithFormTags());
95
+	echo wp_kses($default_hidden_inputs, AllowedTags::getWithFormTags());
96 96
 } // end if ( count( $registrations ) > 0 )
97 97
 
98 98
 ?>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 use EventEspresso\core\services\request\sanitizers\AllowedTags;
12 12
 
13 13
 ?>
14
-<?php if (! is_admin()) : ?>
14
+<?php if ( ! is_admin()) : ?>
15 15
     <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
16 16
         <?php echo apply_filters(
17 17
             'FHEE__registration_page_attendee_information__attendee_information_pg',
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
          class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo sanitize_html_class($ticketID); ?>"
41 41
     >
42 42
         <div class="spco-ticket-info-dv small-text">
43
-            <?php if (! is_admin()) : ?>
43
+            <?php if ( ! is_admin()) : ?>
44 44
                 <h5><?php esc_html_e('Details', 'event_espresso'); ?></h5>
45 45
             <?php endif; ?>
46 46
             <table class="spco-ticket-details">
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                     foreach ($registrations as $registration) {
69 69
                         if ($registration instanceof EE_Registration) {
70 70
                             if ($registration->ticket()->ID() !== $prev_ticket) {
71
-                                echo wp_kses($ticket_line_item[ $registration->ticket()->ID() ], AllowedTags::getWithFormTags());
71
+                                echo wp_kses($ticket_line_item[$registration->ticket()->ID()], AllowedTags::getWithFormTags());
72 72
                             }
73 73
 
74 74
                             $prev_ticket = $registration->ticket()->ID();
Please login to merge, or discard this patch.
reg_steps/attendee_information/attendee_info_main.template.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@  discard block
 block discarded – undo
13 13
 <?php if (! is_admin()) : ?>
14 14
     <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
15 15
         <?php echo apply_filters(
16
-            'FHEE__registration_page_attendee_information__attendee_information_pg',
17
-            sprintf(
18
-                esc_html__(
19
-                    'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.',
20
-                    'event_espresso'
21
-                ),
22
-                '<br />',
23
-                '<span class="asterisk">*</span>'
24
-            )
25
-        ); ?>
16
+			'FHEE__registration_page_attendee_information__attendee_information_pg',
17
+			sprintf(
18
+				esc_html__(
19
+					'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.',
20
+					'event_espresso'
21
+				),
22
+				'<br />',
23
+				'<span class="asterisk">*</span>'
24
+			)
25
+		); ?>
26 26
     </p>
27 27
 <?php endif; ?>
28 28
 
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 $prev_ticket = 0;
33 33
 
34 34
 if (count($registrations) > 0) {
35
-    foreach ($registrations as $registration) {
36
-        if ($registration instanceof EE_Registration) {
37
-            $att_nmbr++;
38
-            ?>
35
+	foreach ($registrations as $registration) {
36
+		if ($registration instanceof EE_Registration) {
37
+			$att_nmbr++;
38
+			?>
39 39
 
40 40
             <div id="spco-attendee-panel-dv-<?php echo esc_url_raw($registration->reg_url_link()); ?>"
41 41
                  class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo esc_attr($registration->ticket()->ID());
42
-                    ?>"
42
+					?>"
43 43
             >
44 44
 
45 45
                 <?php if (! is_admin() && $registration->event()->ID() !== $prev_event) { ?>
@@ -81,19 +81,19 @@  discard block
 block discarded – undo
81 81
                 <?php } ?>
82 82
 
83 83
                 <?php
84
-                // ATTENDEE QUESTIONS
85
-                $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link());
86
-                echo wp_kses(${$reg_form}, AllowedTags::getWithFormTags());
87
-                ?>
84
+				// ATTENDEE QUESTIONS
85
+				$reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link());
86
+				echo wp_kses(${$reg_form}, AllowedTags::getWithFormTags());
87
+				?>
88 88
 
89 89
             </div>
90 90
             <?php
91
-            $prev_event  = $registration->event()->ID();
92
-            $prev_ticket = $registration->ticket()->ID();
93
-        } // if ( $registration instanceof EE_Registration )
94
-    } // end foreach ( $registrations as $registration )
91
+			$prev_event  = $registration->event()->ID();
92
+			$prev_ticket = $registration->ticket()->ID();
93
+		} // if ( $registration instanceof EE_Registration )
94
+	} // end foreach ( $registrations as $registration )
95 95
 
96
-    echo wp_kses($default_hidden_inputs, AllowedTags::getWithFormTags());
96
+	echo wp_kses($default_hidden_inputs, AllowedTags::getWithFormTags());
97 97
 } // end if ( count( $registrations ) > 0 )
98 98
 
99 99
 ?>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 use EventEspresso\core\services\request\sanitizers\AllowedTags;
11 11
 
12 12
 ?>
13
-<?php if (! is_admin()) : ?>
13
+<?php if ( ! is_admin()) : ?>
14 14
     <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
15 15
         <?php echo apply_filters(
16 16
             'FHEE__registration_page_attendee_information__attendee_information_pg',
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                     ?>"
43 43
             >
44 44
 
45
-                <?php if (! is_admin() && $registration->event()->ID() !== $prev_event) { ?>
45
+                <?php if ( ! is_admin() && $registration->event()->ID() !== $prev_event) { ?>
46 46
                     <h4 id="event_title-<?php echo esc_attr($registration->event()->ID()) ?>"
47 47
                         class="big-event-title-hdr"
48 48
                     >
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
                     </h4>
51 51
                 <?php } ?>
52 52
                 <?php if ($registration->ticket()->ID() !== $prev_ticket) { ?>
53
-                    <?php if (! $revisit) { ?>
53
+                    <?php if ( ! $revisit) { ?>
54 54
                         <div class="spco-ticket-info-dv small-text">
55
-                            <?php if (! is_admin()) : ?>
55
+                            <?php if ( ! is_admin()) : ?>
56 56
                                 <h5><?php esc_html_e('Details', 'event_espresso'); ?></h5>
57 57
                             <?php endif; ?>
58 58
                             <table class="spco-ticket-details">
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                                     </tr>
74 74
                                 </thead>
75 75
                                 <tbody>
76
-                                    <?php echo wp_kses($ticket_line_item[ $registration->ticket()->ID() ], AllowedTags::getWithFormTags()); ?>
76
+                                    <?php echo wp_kses($ticket_line_item[$registration->ticket()->ID()], AllowedTags::getWithFormTags()); ?>
77 77
                                 </tbody>
78 78
                             </table>
79 79
                         </div>
Please login to merge, or discard this patch.
modules/invalid_checkout_access/EED_Invalid_Checkout_Access.module.php 1 patch
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -14,84 +14,84 @@
 block discarded – undo
14 14
 class EED_Invalid_Checkout_Access extends EED_Module
15 15
 {
16 16
 
17
-    /**
18
-     * @var InvalidCheckoutAccess $invalid_checkout_access_form
19
-     */
20
-    private static $invalid_checkout_access_form;
17
+	/**
18
+	 * @var InvalidCheckoutAccess $invalid_checkout_access_form
19
+	 */
20
+	private static $invalid_checkout_access_form;
21 21
 
22
-    /**
23
-     * set_hooks - for hooking into EE Core, other modules, etc
24
-     */
25
-    public static function set_hooks()
26
-    {
27
-    }
22
+	/**
23
+	 * set_hooks - for hooking into EE Core, other modules, etc
24
+	 */
25
+	public static function set_hooks()
26
+	{
27
+	}
28 28
 
29 29
 
30
-    /**
31
-     * set_hooks_admin - for hooking into EE Admin Core, other modules, etc
32
-     */
33
-    public static function set_hooks_admin()
34
-    {
35
-        add_action(
36
-            'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template',
37
-            array('EED_Invalid_Checkout_Access', 'display_invalid_checkout_access_form'),
38
-            15
39
-        );
40
-        add_filter(
41
-            'FHEE__Extend_Registration_Form_Admin_Page___update_reg_form_settings__CFG_registration',
42
-            array('EED_Invalid_Checkout_Access', 'process_invalid_checkout_access_form')
43
-        );
44
-    }
30
+	/**
31
+	 * set_hooks_admin - for hooking into EE Admin Core, other modules, etc
32
+	 */
33
+	public static function set_hooks_admin()
34
+	{
35
+		add_action(
36
+			'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template',
37
+			array('EED_Invalid_Checkout_Access', 'display_invalid_checkout_access_form'),
38
+			15
39
+		);
40
+		add_filter(
41
+			'FHEE__Extend_Registration_Form_Admin_Page___update_reg_form_settings__CFG_registration',
42
+			array('EED_Invalid_Checkout_Access', 'process_invalid_checkout_access_form')
43
+		);
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * run - initial module setup
49
-     * this method is primarily used for activating resources in the EE_Front_Controller thru the use of filters
50
-     *
51
-     * @var WP $WP
52
-     */
53
-    public function run($WP)
54
-    {
55
-        // TODO: Implement run() method.
56
-    }
47
+	/**
48
+	 * run - initial module setup
49
+	 * this method is primarily used for activating resources in the EE_Front_Controller thru the use of filters
50
+	 *
51
+	 * @var WP $WP
52
+	 */
53
+	public function run($WP)
54
+	{
55
+		// TODO: Implement run() method.
56
+	}
57 57
 
58 58
 
59
-    /**
60
-     * @return InvalidCheckoutAccess
61
-     */
62
-    public static function getInvalidCheckoutAccess()
63
-    {
64
-        if (! self::$invalid_checkout_access_form instanceof InvalidCheckoutAccess) {
65
-            self::$invalid_checkout_access_form = new InvalidCheckoutAccess();
66
-        }
67
-        return self::$invalid_checkout_access_form;
68
-    }
59
+	/**
60
+	 * @return InvalidCheckoutAccess
61
+	 */
62
+	public static function getInvalidCheckoutAccess()
63
+	{
64
+		if (! self::$invalid_checkout_access_form instanceof InvalidCheckoutAccess) {
65
+			self::$invalid_checkout_access_form = new InvalidCheckoutAccess();
66
+		}
67
+		return self::$invalid_checkout_access_form;
68
+	}
69 69
 
70 70
 
71
-    /**
72
-     * email_validation_settings_form
73
-     *
74
-     * @return    void
75
-     * @throws EE_Error
76
-     */
77
-    public static function display_invalid_checkout_access_form()
78
-    {
79
-        $invalid_checkout_access_form = EED_Invalid_Checkout_Access::getInvalidCheckoutAccess();
80
-        echo wp_kses($invalid_checkout_access_form->getForm()->get_html(), AllowedTags::getWithFormTags());
81
-    }
71
+	/**
72
+	 * email_validation_settings_form
73
+	 *
74
+	 * @return    void
75
+	 * @throws EE_Error
76
+	 */
77
+	public static function display_invalid_checkout_access_form()
78
+	{
79
+		$invalid_checkout_access_form = EED_Invalid_Checkout_Access::getInvalidCheckoutAccess();
80
+		echo wp_kses($invalid_checkout_access_form->getForm()->get_html(), AllowedTags::getWithFormTags());
81
+	}
82 82
 
83 83
 
84
-    /**
85
-     * email_validation_settings_form
86
-     *
87
-     * @param EE_Registration_Config $EE_Registration_Config
88
-     * @return EE_Registration_Config
89
-     * @throws EE_Error
90
-     * @throws ReflectionException
91
-     */
92
-    public static function process_invalid_checkout_access_form(EE_Registration_Config $EE_Registration_Config)
93
-    {
94
-        $invalid_checkout_access_form = EED_Invalid_Checkout_Access::getInvalidCheckoutAccess();
95
-        return $invalid_checkout_access_form->processForm($EE_Registration_Config);
96
-    }
84
+	/**
85
+	 * email_validation_settings_form
86
+	 *
87
+	 * @param EE_Registration_Config $EE_Registration_Config
88
+	 * @return EE_Registration_Config
89
+	 * @throws EE_Error
90
+	 * @throws ReflectionException
91
+	 */
92
+	public static function process_invalid_checkout_access_form(EE_Registration_Config $EE_Registration_Config)
93
+	{
94
+		$invalid_checkout_access_form = EED_Invalid_Checkout_Access::getInvalidCheckoutAccess();
95
+		return $invalid_checkout_access_form->processForm($EE_Registration_Config);
96
+	}
97 97
 }
Please login to merge, or discard this patch.
thank_you_page/templates/thank-you-page-registration-details.template.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -14,24 +14,24 @@  discard block
 block discarded – undo
14 14
 
15 15
 <div class="ee-registration-details-dv">
16 16
     <?php
17
-    $registrations = $transaction->registrations();
18
-    $registrations = is_array($registrations) ? $registrations : [];
19
-    $reg_count     = count($registrations);
20
-    $reg_cntr      = 0;
21
-    $event_name    = '';
22
-    $wait_list     = false;
23
-    foreach ($registrations as $registration) {
24
-        if (! $registration instanceof EE_Registration) {
25
-            continue;
26
-        }
27
-        if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
17
+	$registrations = $transaction->registrations();
18
+	$registrations = is_array($registrations) ? $registrations : [];
19
+	$reg_count     = count($registrations);
20
+	$reg_cntr      = 0;
21
+	$event_name    = '';
22
+	$wait_list     = false;
23
+	foreach ($registrations as $registration) {
24
+		if (! $registration instanceof EE_Registration) {
25
+			continue;
26
+		}
27
+		if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
28 28
             </tbody>
29 29
             </table>
30 30
             <?php
31
-        }
32
-        $reg_cntr++;
33
-        if ($event_name != $registration->event_name()) {
34
-            ?>
31
+		}
32
+		$reg_cntr++;
33
+		if ($event_name != $registration->event_name()) {
34
+			?>
35 35
             <h5>
36 36
                 <span class="smaller-text grey-text">
37 37
                     <?php esc_html_e('for', 'event_espresso'); ?> :
@@ -54,23 +54,23 @@  discard block
 block discarded – undo
54 54
             </thead>
55 55
             <tbody>
56 56
             <?php
57
-        }
58
-        if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
57
+		}
58
+		if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
59 59
             <tr>
60 60
                 <td width="40%">
61 61
                     <?php
62
-                    if ($registration->attendee() instanceof EE_Attendee) {
63
-                        echo esc_html($registration->attendee()->full_name(true));
64
-                    }
65
-                    ?>
62
+					if ($registration->attendee() instanceof EE_Attendee) {
63
+						echo esc_html($registration->attendee()->full_name(true));
64
+					}
65
+					?>
66 66
                     <p class="tiny-text" style="margin: .75em 0 0;">
67 67
                         <?php if ($registration->count_question_groups()) { ?>
68 68
                             <a class="ee-icon-only-lnk"
69 69
                                href="<?php echo esc_url_raw($registration->edit_attendee_information_url()); ?>"
70 70
                                title="<?php esc_attr_e(
71
-                                   'Click here to edit Attendee Information',
72
-                                   'event_espresso'
73
-                               ); ?>"
71
+								   'Click here to edit Attendee Information',
72
+								   'event_espresso'
73
+							   ); ?>"
74 74
                             >
75 75
                                 <span class="ee-icon ee-icon-user-edit"></span>
76 76
                                 <?php esc_html_e('edit info', 'event_espresso'); ?>
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
                         <?php } ?>
79 79
                         <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk"
80 80
                            href="<?php echo esc_url_raw(
81
-                               add_query_arg(
82
-                                   ['token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'],
83
-                                   EE_Registry::instance()->CFG->core->thank_you_page_url()
84
-                               )
85
-                           ); ?>"
81
+							   add_query_arg(
82
+								   ['token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'],
83
+								   EE_Registry::instance()->CFG->core->thank_you_page_url()
84
+							   )
85
+						   ); ?>"
86 86
                            title="<?php esc_attr_e(
87
-                               'Click here to resend the Registration Confirmation email',
88
-                               'event_espresso'
89
-                           ); ?>"
87
+							   'Click here to resend the Registration Confirmation email',
88
+							   'event_espresso'
89
+						   ); ?>"
90 90
                            rel="<?php echo esc_attr($registration->reg_url_link()); ?>"
91 91
                         >
92 92
                             <span class="dashicons dashicons-email-alt"></span>
@@ -100,27 +100,27 @@  discard block
 block discarded – undo
100 100
                 <td width="35%" class="jst-left">
101 101
                     <?php $registration->e_pretty_status(true) ?>
102 102
                     <?php
103
-                    if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
104
-                        $wait_list = true;
105
-                    }
106
-                    ?>
103
+					if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
104
+						$wait_list = true;
105
+					}
106
+					?>
107 107
                 </td>
108 108
             </tr>
109 109
             <?php do_action(
110
-                'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
111
-                $registration
112
-            ); ?>
110
+				'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
111
+				$registration
112
+			); ?>
113 113
             <?php
114
-            $event_name = $registration->event_name();
115
-        }
116
-        if ($reg_cntr >= $reg_count) {
117
-            ?>
114
+			$event_name = $registration->event_name();
115
+		}
116
+		if ($reg_cntr >= $reg_count) {
117
+			?>
118 118
             </tbody>
119 119
             </table>
120 120
             <?php
121
-        }
122
-    }
123
-    ?>
121
+		}
122
+	}
123
+	?>
124 124
     <?php if ($is_primary && $SPCO_attendee_information_url) { ?>
125 125
         <p class="small-text jst-rght">
126 126
             <a href='<?php echo esc_url_raw($SPCO_attendee_information_url) ?>'>
@@ -129,22 +129,22 @@  discard block
 block discarded – undo
129 129
         </p>
130 130
     <?php } ?>
131 131
     <?php
132
-    if ($wait_list) {
133
-        echo apply_filters(
134
-            'AFEE__thank_you_page_registration_details_template__wait_list_notice',
135
-            sprintf(
136
-                esc_html__(
137
-                    '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
138
-                    'event_espresso'
139
-                ),
140
-                '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
141
-                '</h6 ><p class="ee-wait-list-notice">',
142
-                '</p ><br />'
143
-            )
144
-        );
145
-    }
146
-    do_action('AHEE__thank_you_page_registration_details_template__after_registration_details');
147
-    ?>
132
+	if ($wait_list) {
133
+		echo apply_filters(
134
+			'AFEE__thank_you_page_registration_details_template__wait_list_notice',
135
+			sprintf(
136
+				esc_html__(
137
+					'%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
138
+					'event_espresso'
139
+				),
140
+				'<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
141
+				'</h6 ><p class="ee-wait-list-notice">',
142
+				'</p ><br />'
143
+			)
144
+		);
145
+	}
146
+	do_action('AHEE__thank_you_page_registration_details_template__after_registration_details');
147
+	?>
148 148
 
149 149
 </div>
150 150
 <!-- end of .registration-details -->
Please login to merge, or discard this patch.
thank_you_page/templates/thank-you-page-payment-details.template.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 <div id="espresso-thank-you-page-payment-details-dv">
18 18
     <?php
19
-    if (! empty($payments)) { ?>
19
+	if (! empty($payments)) { ?>
20 20
         <table class="ee-table">
21 21
             <thead>
22 22
             <tr>
@@ -36,37 +36,37 @@  discard block
 block discarded – undo
36 36
             </thead>
37 37
             <tbody>
38 38
             <?php
39
-            foreach ($payments as $payment) {
40
-                echo wp_kses($payment, AllowedTags::getWithFormTags());
41
-            }
42
-            ?>
39
+			foreach ($payments as $payment) {
40
+				echo wp_kses($payment, AllowedTags::getWithFormTags());
41
+			}
42
+			?>
43 43
             </tbody>
44 44
         </table>
45 45
         <?php
46
-    } else {
47
-        if ($transaction->total()) {
48
-            echo apply_filters(
49
-                'FHEE__payment_overview_template__no_payments_made',
50
-                sprintf(
51
-                    esc_html__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
52
-                    '<p class="important-notice">',
53
-                    '</p>'
54
-                )
55
-            );
56
-            do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
57
-        } else {
58
-            echo apply_filters(
59
-                'FHEE__payment_overview_template__no_payment_required',
60
-                sprintf(
61
-                    esc_html__('%sNo payment is required for this transaction.%s', 'event_espresso'),
62
-                    '<p>',
63
-                    '</p>'
64
-                )
65
-            );
66
-            do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
67
-        }
68
-    }
69
-    echo wp_kses($gateway_content, AllowedTags::getWithFormTags());
70
-    do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
71
-    echo '<br/>';
72
-    do_action('AHEE__thank_you_page_payment_details_template__after_payment_details');
46
+	} else {
47
+		if ($transaction->total()) {
48
+			echo apply_filters(
49
+				'FHEE__payment_overview_template__no_payments_made',
50
+				sprintf(
51
+					esc_html__('%sNo payments towards this transaction have been received.%s', 'event_espresso'),
52
+					'<p class="important-notice">',
53
+					'</p>'
54
+				)
55
+			);
56
+			do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction);
57
+		} else {
58
+			echo apply_filters(
59
+				'FHEE__payment_overview_template__no_payment_required',
60
+				sprintf(
61
+					esc_html__('%sNo payment is required for this transaction.%s', 'event_espresso'),
62
+					'<p>',
63
+					'</p>'
64
+				)
65
+			);
66
+			do_action('AHEE__thank_you_page_payment_details_template__no_payment_required');
67
+		}
68
+	}
69
+	echo wp_kses($gateway_content, AllowedTags::getWithFormTags());
70
+	do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content);
71
+	echo '<br/>';
72
+	do_action('AHEE__thank_you_page_payment_details_template__after_payment_details');
Please login to merge, or discard this patch.
espresso.php 1 patch
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -38,103 +38,103 @@
 block discarded – undo
38 38
  * @since           4.0
39 39
  */
40 40
 if (function_exists('espresso_version')) {
41
-    if (! function_exists('espresso_duplicate_plugin_error')) {
42
-        /**
43
-         *    espresso_duplicate_plugin_error
44
-         *    displays if more than one version of EE is activated at the same time
45
-         */
46
-        function espresso_duplicate_plugin_error()
47
-        {
48
-            ?>
41
+	if (! function_exists('espresso_duplicate_plugin_error')) {
42
+		/**
43
+		 *    espresso_duplicate_plugin_error
44
+		 *    displays if more than one version of EE is activated at the same time
45
+		 */
46
+		function espresso_duplicate_plugin_error()
47
+		{
48
+			?>
49 49
             <div class="error">
50 50
                 <p>
51 51
                     <?php
52
-                    echo esc_html__(
53
-                        'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.',
54
-                        'event_espresso'
55
-                    ); ?>
52
+					echo esc_html__(
53
+						'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.',
54
+						'event_espresso'
55
+					); ?>
56 56
                 </p>
57 57
             </div>
58 58
             <?php
59
-            espresso_deactivate_plugin(plugin_basename(__FILE__));
60
-        }
61
-    }
62
-    add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
59
+			espresso_deactivate_plugin(plugin_basename(__FILE__));
60
+		}
61
+	}
62
+	add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
63 63
 } else {
64
-    define('EE_MIN_PHP_VER_REQUIRED', '5.6.2');
65
-    if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
66
-        /**
67
-         * espresso_minimum_php_version_error
68
-         *
69
-         * @return void
70
-         */
71
-        function espresso_minimum_php_version_error()
72
-        {
73
-            ?>
64
+	define('EE_MIN_PHP_VER_REQUIRED', '5.6.2');
65
+	if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
66
+		/**
67
+		 * espresso_minimum_php_version_error
68
+		 *
69
+		 * @return void
70
+		 */
71
+		function espresso_minimum_php_version_error()
72
+		{
73
+			?>
74 74
             <div class="error">
75 75
                 <p>
76 76
                     <?php
77
-                    printf(
78
-                        esc_html__(
79
-                            'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.',
80
-                            'event_espresso'
81
-                        ),
82
-                        EE_MIN_PHP_VER_REQUIRED,
83
-                        PHP_VERSION,
84
-                        '<br/>',
85
-                        '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>'
86
-                    );
87
-                    ?>
77
+					printf(
78
+						esc_html__(
79
+							'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.',
80
+							'event_espresso'
81
+						),
82
+						EE_MIN_PHP_VER_REQUIRED,
83
+						PHP_VERSION,
84
+						'<br/>',
85
+						'<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>'
86
+					);
87
+					?>
88 88
                 </p>
89 89
             </div>
90 90
             <?php
91
-            espresso_deactivate_plugin(plugin_basename(__FILE__));
92
-        }
91
+			espresso_deactivate_plugin(plugin_basename(__FILE__));
92
+		}
93 93
 
94
-        add_action('admin_notices', 'espresso_minimum_php_version_error', 1);
95
-    } else {
96
-        define('EVENT_ESPRESSO_MAIN_FILE', __FILE__);
97
-        /**
98
-         * espresso_version
99
-         * Returns the plugin version
100
-         *
101
-         * @return string
102
-         */
103
-        function espresso_version()
104
-        {
105
-            return apply_filters('FHEE__espresso__espresso_version', '4.10.30.rc.016');
106
-        }
94
+		add_action('admin_notices', 'espresso_minimum_php_version_error', 1);
95
+	} else {
96
+		define('EVENT_ESPRESSO_MAIN_FILE', __FILE__);
97
+		/**
98
+		 * espresso_version
99
+		 * Returns the plugin version
100
+		 *
101
+		 * @return string
102
+		 */
103
+		function espresso_version()
104
+		{
105
+			return apply_filters('FHEE__espresso__espresso_version', '4.10.30.rc.016');
106
+		}
107 107
 
108
-        /**
109
-         * espresso_plugin_activation
110
-         * adds a wp-option to indicate that EE has been activated via the WP admin plugins page
111
-         */
112
-        function espresso_plugin_activation()
113
-        {
114
-            update_option('ee_espresso_activation', true);
115
-        }
108
+		/**
109
+		 * espresso_plugin_activation
110
+		 * adds a wp-option to indicate that EE has been activated via the WP admin plugins page
111
+		 */
112
+		function espresso_plugin_activation()
113
+		{
114
+			update_option('ee_espresso_activation', true);
115
+		}
116 116
 
117
-        register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation');
117
+		register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation');
118 118
 
119
-        require_once __DIR__ . '/core/bootstrap_espresso.php';
120
-        bootstrap_espresso();
121
-    }
119
+		require_once __DIR__ . '/core/bootstrap_espresso.php';
120
+		bootstrap_espresso();
121
+	}
122 122
 }
123 123
 if (! function_exists('espresso_deactivate_plugin')) {
124
-    /**
125
-     *    deactivate_plugin
126
-     * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
127
-     *
128
-     * @access public
129
-     * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file
130
-     * @return    void
131
-     */
132
-    function espresso_deactivate_plugin($plugin_basename = '')
133
-    {
134
-        if (! function_exists('deactivate_plugins')) {
135
-            require_once ABSPATH . 'wp-admin/includes/plugin.php';
136
-        }
137
-        unset($_GET['activate'], $_REQUEST['activate']);
138
-        deactivate_plugins($plugin_basename);
139
-    }
124
+	/**
125
+	 *    deactivate_plugin
126
+	 * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
127
+	 *
128
+	 * @access public
129
+	 * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file
130
+	 * @return    void
131
+	 */
132
+	function espresso_deactivate_plugin($plugin_basename = '')
133
+	{
134
+		if (! function_exists('deactivate_plugins')) {
135
+			require_once ABSPATH . 'wp-admin/includes/plugin.php';
136
+		}
137
+		unset($_GET['activate'], $_REQUEST['activate']);
138
+		deactivate_plugins($plugin_basename);
139
+	}
140 140
 }
141 141
\ No newline at end of file
Please login to merge, or discard this patch.