Completed
Branch BUG/3575-event-deletion-previe... (bbeda1)
by
unknown
06:40 queued 04:49
created
admin_pages/venues/help_tabs/venues_editor_save_new_venue.help_tab.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@  discard block
 block discarded – undo
3 3
 </p>
4 4
 <p>
5 5
     <?php esc_html_e(
6
-        'Quickly publish your venue to allow linking to an event or multiple events.',
7
-        'event_espresso'
8
-    ); ?>
6
+		'Quickly publish your venue to allow linking to an event or multiple events.',
7
+		'event_espresso'
8
+	); ?>
9 9
     <br />
10 10
 </p>
11 11
 <ul>
@@ -13,41 +13,41 @@  discard block
 block discarded – undo
13 13
         <strong><?php esc_html_e('Status', 'event_espresso'); ?></strong>
14 14
         <br />
15 15
         <?php esc_html_e(
16
-            'The following statuses are available: Published, Pending Review, and Draft. A status of published means that a venue is live and can be associated with one or more events. Pending review will set a venue to draft until an event administrator has approved the venue. A status of draft will save a venue but it will be unpublished.',
17
-            'event_espresso'
18
-        ); ?>
16
+			'The following statuses are available: Published, Pending Review, and Draft. A status of published means that a venue is live and can be associated with one or more events. Pending review will set a venue to draft until an event administrator has approved the venue. A status of draft will save a venue but it will be unpublished.',
17
+			'event_espresso'
18
+		); ?>
19 19
     </li>
20 20
     <li>
21 21
         <strong><?php esc_html_e('Visibility', 'event_espresso'); ?></strong>
22 22
         <br />
23 23
         <?php esc_html_e(
24
-            'The following visibility options are available: public, password protected, and private. An venue that is set to public will be accessible by anyone. An venue that is set to password protected will only be available to event administrators and individuals who know the password to access the event registration. A venue that is set to private will completely be hidden from public view.',
25
-            'event_espresso'
26
-        ); ?>
24
+			'The following visibility options are available: public, password protected, and private. An venue that is set to public will be accessible by anyone. An venue that is set to password protected will only be available to event administrators and individuals who know the password to access the event registration. A venue that is set to private will completely be hidden from public view.',
25
+			'event_espresso'
26
+		); ?>
27 27
     </li>
28 28
     <li>
29 29
         <strong><?php esc_html_e('Publish', 'event_espresso'); ?></strong>
30 30
         <br />
31 31
         <?php esc_html_e(
32
-            'An event can be published immediately or you can schedule it to be published at a later date in the future.',
33
-            'event_espresso'
34
-        ); ?>
32
+			'An event can be published immediately or you can schedule it to be published at a later date in the future.',
33
+			'event_espresso'
34
+		); ?>
35 35
     </li>
36 36
     <li>
37 37
         <strong><?php esc_html_e('Capacity', 'event_espresso'); ?></strong>
38 38
         <br />
39 39
         <?php esc_html_e(
40
-            'Enter the maximum number of registrants that are supported by this venue.',
41
-            'event_espresso'
42
-        ); ?>
40
+			'Enter the maximum number of registrants that are supported by this venue.',
41
+			'event_espresso'
42
+		); ?>
43 43
     </li>
44 44
     <li>
45 45
         <strong><?php esc_html_e('Venue Website', 'event_espresso'); ?></strong>
46 46
         <br />
47 47
         <?php esc_html_e(
48
-            'Enter the URL (website address) for this venue. This field is optional.',
49
-            'event_espresso'
50
-        ); ?>
48
+			'Enter the URL (website address) for this venue. This field is optional.',
49
+			'event_espresso'
50
+		); ?>
51 51
     </li>
52 52
     <li>
53 53
         <strong><?php esc_html_e('Venue Phone #', 'event_espresso'); ?></strong>
Please login to merge, or discard this patch.
templates/registration_page_registration_questions.template.php 2 patches
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -10,53 +10,53 @@  discard block
 block discarded – undo
10 10
 
11 11
 <div id="single-page-checkout" class="ui-widget">
12 12
     <?php do_action(
13
-        'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header'
14
-    ) ?>
13
+		'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header'
14
+	) ?>
15 15
     <div id="spco-attendee_information-dv" class="spco-step-dv">
16 16
 
17 17
         <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
18 18
             <?php printf(
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
-            ); ?>
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 26
         </p>
27 27
 
28 28
         <?php
29
-        global $css_class;
30
-        $att_nmbr   = 0;
31
-        $prev_event = '';
32
-
33
-        if ($event_queue['total_items'] > 0) {
34
-            foreach ($event_queue['items'] as $line_item => $item) {
35
-                $att_nmbr++;
36
-                if ($item['attendee_questions'] != '') { ?>
29
+		global $css_class;
30
+		$att_nmbr   = 0;
31
+		$prev_event = '';
32
+
33
+		if ($event_queue['total_items'] > 0) {
34
+			foreach ($event_queue['items'] as $line_item => $item) {
35
+				$att_nmbr++;
36
+				if ($item['attendee_questions'] != '') { ?>
37 37
                     <div id="spco-attendee-panel-dv-<?php echo esc_attr($line_item); ?>" class="spco-attendee-panel-dv">
38 38
                         <?php
39
-                        if ($item['ticket']->name() != $prev_event) { ?>
39
+						if ($item['ticket']->name() != $prev_event) { ?>
40 40
                             <p class="spco-ticket-info-pg">
41 41
                                 <?php
42
-                                echo esc_html($item['ticket']->name()) . ':  ';
43
-                                echo esc_html(
44
-                                    EEH_Template::format_currency($item['ticket']->price(), false, false)
45
-                                );
46
-                                $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ];
47
-                                echo $item['ticket']->qty()
48
-                                    ? ' &nbsp; x &nbsp; '
49
-                                      . absint($ticket_count[ $item['ticket']->ID() ])
50
-                                      . esc_html__(' tickets', 'event_espresso')
51
-                                      . ' &nbsp; = &nbsp; '
52
-                                      . EEH_Template::format_currency($qty_price)
53
-                                    : '';
54
-                                echo $item['ticket']->description()
55
-                                    ? '<br/>'
56
-                                      . esc_html__('Ticket Details: ', 'event_espresso')
57
-                                      . esc_html($item['ticket']->description())
58
-                                    : '';
59
-                                ?>
42
+								echo esc_html($item['ticket']->name()) . ':  ';
43
+								echo esc_html(
44
+									EEH_Template::format_currency($item['ticket']->price(), false, false)
45
+								);
46
+								$qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ];
47
+								echo $item['ticket']->qty()
48
+									? ' &nbsp; x &nbsp; '
49
+									  . absint($ticket_count[ $item['ticket']->ID() ])
50
+									  . esc_html__(' tickets', 'event_espresso')
51
+									  . ' &nbsp; = &nbsp; '
52
+									  . EEH_Template::format_currency($qty_price)
53
+									: '';
54
+								echo $item['ticket']->description()
55
+									? '<br/>'
56
+									  . esc_html__('Ticket Details: ', 'event_espresso')
57
+									  . esc_html($item['ticket']->description())
58
+									: '';
59
+								?>
60 60
                             </p>
61 61
                         <?php } ?>
62 62
 
@@ -68,16 +68,16 @@  discard block
 block discarded – undo
68 68
                             </legend>
69 69
 
70 70
                             <?php
71
-                            // do an action before the questions output, including the item and count
72
-                            do_action(
73
-                                'AHEE__registration_page_registration_questions__template___before_questions',
74
-                                $item,
75
-                                $att_nmbr
76
-                            );
71
+							// do an action before the questions output, including the item and count
72
+							do_action(
73
+								'AHEE__registration_page_registration_questions__template___before_questions',
74
+								$item,
75
+								$att_nmbr
76
+							);
77 77
 
78
-                            echo esc_html($item['attendee_questions']);
78
+							echo esc_html($item['attendee_questions']);
79 79
 
80
-                            if ($att_nmbr == 1 && $print_copy_info) { ?>
80
+							if ($att_nmbr == 1 && $print_copy_info) { ?>
81 81
                                 <input id='primary-attendee'
82 82
                                        name="qstn[primary_attendee]"
83 83
                                        type="hidden"
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
                                     <p class="spco-copy-all-attendee-pg">
90 90
                                         <label class="wide">
91 91
                                             <?php esc_html_e(
92
-                                                'Use Registrant #1\'s information for ALL registrants',
93
-                                                'event_espresso'
94
-                                            ); ?>
92
+												'Use Registrant #1\'s information for ALL registrants',
93
+												'event_espresso'
94
+											); ?>
95 95
                                             <input class='spco-copy-all-attendee-chk ui-widget-content ui-corner-all'
96 96
                                                    id="spco-copy-all-attendee-chk"
97 97
                                                    type="checkbox"
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 
103 103
                                     <p class="spco-copy-attendee-pg">
104 104
                                         <?php esc_html_e(
105
-                                            'This option allows you to use the above information for all additional registrant question fields. <span>(&nbsp;Please note that some events may have additional questions that you may still be required to answer in order to complete your registration.&nbsp;)</span>',
106
-                                            'event_espresso'
107
-                                        ); ?>
105
+											'This option allows you to use the above information for all additional registrant question fields. <span>(&nbsp;Please note that some events may have additional questions that you may still be required to answer in order to complete your registration.&nbsp;)</span>',
106
+											'event_espresso'
107
+										); ?>
108 108
                                     </p>
109 109
 
110 110
                                     <a id="display-more-attendee-copy-options"
@@ -123,15 +123,15 @@  discard block
 block discarded – undo
123 123
                                         </a>
124 124
                                         <p class="spco-copy-attendee-pg">
125 125
                                             <?php esc_html_e(
126
-                                                'The following checkboxes allow you to use the above information for only the selected additional event registrants.',
127
-                                                'event_espresso'
128
-                                            ); ?>
126
+												'The following checkboxes allow you to use the above information for only the selected additional event registrants.',
127
+												'event_espresso'
128
+											); ?>
129 129
                                         </p>
130 130
 
131 131
                                         <?php
132
-                                        foreach ($additional_event_attendees as $event_attendees) {
133
-                                            foreach ($event_attendees as $attendee) {
134
-                                                if ($attendee['event_hdr']) { ?>
132
+										foreach ($additional_event_attendees as $event_attendees) {
133
+											foreach ($event_attendees as $attendee) {
134
+												if ($attendee['event_hdr']) { ?>
135 135
                                                     <h6 class="spco-copy-attendee-event-hdr">
136 136
                                                         <?php echo esc_html($attendee['event_hdr']); ?>
137 137
                                                     </h6>
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
                                                 <p class="event_form_field spco-copy-attendee-chk-pg">
141 141
                                                     <label>
142 142
                                                         <?php
143
-                                                        echo esc_html__('Attendee #', 'event_espresso')
144
-                                                             . esc_html($attendee['att_nmbr']);
145
-                                                        ?>
143
+														echo esc_html__('Attendee #', 'event_espresso')
144
+															 . esc_html($attendee['att_nmbr']);
145
+														?>
146 146
                                                         <input class="spco-copy-attendee-chk <?php echo esc_attr($css_class); ?>"
147 147
                                                                id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']);?>"
148 148
                                                                type="checkbox"
@@ -160,25 +160,25 @@  discard block
 block discarded – undo
160 160
                                     <div class="clear-float"></div>
161 161
                                 </div>
162 162
                                 <?php
163
-                                $print_copy_info = false;
164
-                            } elseif ($att_nmbr == 1) {
165
-                                ?>
163
+								$print_copy_info = false;
164
+							} elseif ($att_nmbr == 1) {
165
+								?>
166 166
                                 <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text">
167 167
                                     <?php esc_html_e(
168
-                                        'The above information will be used for any additional tickets/registrants.',
169
-                                        'event_espresso'
170
-                                    ); ?>
168
+										'The above information will be used for any additional tickets/registrants.',
169
+										'event_espresso'
170
+									); ?>
171 171
                                 </p>
172 172
                                 <?php
173
-                            }
174
-                            ?>
173
+							}
174
+							?>
175 175
                         </fieldset>
176 176
 
177 177
                     </div>
178 178
                     <?php
179
-                } else {
180
-                    if ($att_nmbr == 1) {
181
-                        ?>
179
+				} else {
180
+					if ($att_nmbr == 1) {
181
+						?>
182 182
                         <div class='spco-attendee-panel-dv'
183 183
                              id="spco-attendee-panel-dv-<?php echo esc_attr($line_item); ?>"
184 184
                         >
@@ -192,21 +192,21 @@  discard block
 block discarded – undo
192 192
                             >
193 193
                                 <h6>
194 194
                                     <?php esc_html_e(
195
-                                        'No information is required to attend this event. Please proceed to the next Step',
196
-                                        'event_espresso'
197
-                                    ); ?>
195
+										'No information is required to attend this event. Please proceed to the next Step',
196
+										'event_espresso'
197
+									); ?>
198 198
                                 </h6>
199 199
                                 <input type="hidden" id="no-questions" name="qstn[]" value="0" />
200 200
                             </fieldset>
201 201
                         </div>
202 202
                         <?php
203
-                    }
204
-                }
205
-                echo esc_html($item['additional_attendee_reg_info']);
206
-                $prev_event = $item['ticket']->name();
207
-            } // $event_queue['items'] as $line_item
208
-        } // $event_queue['total_items']
209
-        ?>
203
+					}
204
+				}
205
+				echo esc_html($item['additional_attendee_reg_info']);
206
+				$prev_event = $item['ticket']->name();
207
+			} // $event_queue['items'] as $line_item
208
+		} // $event_queue['total_items']
209
+		?>
210 210
         <div>
211 211
             <a id="spco-display-event-questions-lnk"
212 212
                class="act-like-link smaller-text hidden hide-if-no-js float-right"
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
                         if ($item['ticket']->name() != $prev_event) { ?>
40 40
                             <p class="spco-ticket-info-pg">
41 41
                                 <?php
42
-                                echo esc_html($item['ticket']->name()) . ':  ';
42
+                                echo esc_html($item['ticket']->name()).':  ';
43 43
                                 echo esc_html(
44 44
                                     EEH_Template::format_currency($item['ticket']->price(), false, false)
45 45
                                 );
46
-                                $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ];
46
+                                $qty_price = $item['ticket']->price() * $ticket_count[$item['ticket']->ID()];
47 47
                                 echo $item['ticket']->qty()
48 48
                                     ? ' &nbsp; x &nbsp; '
49
-                                      . absint($ticket_count[ $item['ticket']->ID() ])
49
+                                      . absint($ticket_count[$item['ticket']->ID()])
50 50
                                       . esc_html__(' tickets', 'event_espresso')
51 51
                                       . ' &nbsp; = &nbsp; '
52 52
                                       . EEH_Template::format_currency($qty_price)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                                   id="spco-attendee-wrap-<?php echo esc_attr($line_item); ?>"
65 65
                         >
66 66
                             <legend class="spco-attendee-lgnd smaller-text lt-grey-text">
67
-                                <?php echo esc_html__('Registrant #', 'event_espresso') . $att_nmbr; ?>
67
+                                <?php echo esc_html__('Registrant #', 'event_espresso').$att_nmbr; ?>
68 68
                             </legend>
69 69
 
70 70
                             <?php
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                                                              . esc_html($attendee['att_nmbr']);
145 145
                                                         ?>
146 146
                                                         <input class="spco-copy-attendee-chk <?php echo esc_attr($css_class); ?>"
147
-                                                               id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']);?>"
147
+                                                               id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']); ?>"
148 148
                                                                type="checkbox"
149 149
                                                                value="<?php echo esc_attr($attendee['input_id']); ?>"
150 150
                                                         />
Please login to merge, or discard this patch.
templates/reg_admin_details_main_meta_box_attendees.template.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
                 </thead>
26 26
                 <tbody>
27 27
                     <?php
28
-                    foreach ($attendees as $att_nmbr => $attendee) : ?>
28
+					foreach ($attendees as $att_nmbr => $attendee) : ?>
29 29
                         <tr class="ee-status-strip reg-status-<?php echo esc_attr($attendee['STS_ID']); ?>"
30 30
                             style='display: table-row;'>
31 31
                             <td class="jst-left"><?php echo esc_html($att_nmbr); ?></td>
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
                             </td>
40 40
                             <td class="jst-rght">
41 41
                                 <?php
42
-                                $final_price = number_format((float) $attendee['final_price'], 2);
43
-                                echo esc_html("$currency_sign $final_price");
44
-                                ?>
42
+								$final_price = number_format((float) $attendee['final_price'], 2);
43
+								echo esc_html("$currency_sign $final_price");
44
+								?>
45 45
                             </td>
46 46
                             <td class="jst-left"><?php echo esc_html($attendee['email']); ?></td>
47 47
                             <td class="jst-left"><?php echo esc_html($attendee['address']); ?></td>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv">
11 11
     <br />
12 12
     <?php echo esc_html($attendee_notice); ?>
13
-    <?php if (! empty($attendees)) : ?>
13
+    <?php if ( ! empty($attendees)) : ?>
14 14
         <div class="admin-primary-mbox-tbl-wrap">
15 15
             <table id="reg-admin-transaction-attendees-table" class="admin-primary-mbox-tbl">
16 16
                 <thead>
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                                 <a href="<?php echo esc_url_raw($attendee['att_link']); ?>"
35 35
                                    title="<?php esc_attr_e('View details for this attendee', 'event_espresso'); ?>"
36 36
                                 >
37
-                                    <?php echo esc_html($attendee['fname'] . ' ' . $attendee['lname']); ?>
37
+                                    <?php echo esc_html($attendee['fname'].' '.$attendee['lname']); ?>
38 38
                                 </a>
39 39
                             </td>
40 40
                             <td class="jst-rght">
Please login to merge, or discard this patch.
admin_pages/registrations/templates/reg_admin_details_header.template.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -14,29 +14,29 @@
 block discarded – undo
14 14
 
15 15
 <div style="float:right">
16 16
     <?php echo sprintf(
17
-        esc_html__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
18
-        '<a href="' . esc_url_raw($filtered_registrations_link) . '">',
19
-        '<a href="' . esc_url_raw($filtered_registrations_link) . '">',
20
-        '<a href="' . esc_url_raw($event_link) . '">',
21
-        '</a>'
22
-    ); ?>
17
+		esc_html__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
18
+		'<a href="' . esc_url_raw($filtered_registrations_link) . '">',
19
+		'<a href="' . esc_url_raw($filtered_registrations_link) . '">',
20
+		'<a href="' . esc_url_raw($event_link) . '">',
21
+		'</a>'
22
+	); ?>
23 23
 </div>
24 24
 <h3 id="reg-admin-reg-details-reg-nmbr-hdr">
25 25
     <?php
26
-    echo $previous_registration; // already escaped
27
-    echo '&nbsp;' . esc_html__('Registration # ', 'event_espresso');
28
-    echo esc_html($reg_nmbr['value']) . '&nbsp;';
29
-    echo $next_registration; // already escaped
30
-    ?>
26
+	echo $previous_registration; // already escaped
27
+	echo '&nbsp;' . esc_html__('Registration # ', 'event_espresso');
28
+	echo esc_html($reg_nmbr['value']) . '&nbsp;';
29
+	echo $next_registration; // already escaped
30
+	?>
31 31
 </h3>
32 32
 <h2 id="reg-admin-reg-details-reg-date-hdr"><?php echo esc_html($reg_datetime['value']); ?></h2>
33 33
 
34 34
 <?php if ($registration->group_size() > 1) : ?>
35 35
     <a id="scroll-to-other-attendees" class="scroll-to" href="#other-attendees">
36 36
         <?php echo esc_html__(
37
-            'Scroll to Other Registrations in the Same Transaction',
38
-            'event_espresso'
39
-        ); ?>
37
+			'Scroll to Other Registrations in the Same Transaction',
38
+			'event_espresso'
39
+		); ?>
40 40
     </a>
41 41
 <?php endif; ?>
42 42
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,17 +15,17 @@
 block discarded – undo
15 15
 <div style="float:right">
16 16
     <?php echo sprintf(
17 17
         esc_html__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
18
-        '<a href="' . esc_url_raw($filtered_registrations_link) . '">',
19
-        '<a href="' . esc_url_raw($filtered_registrations_link) . '">',
20
-        '<a href="' . esc_url_raw($event_link) . '">',
18
+        '<a href="'.esc_url_raw($filtered_registrations_link).'">',
19
+        '<a href="'.esc_url_raw($filtered_registrations_link).'">',
20
+        '<a href="'.esc_url_raw($event_link).'">',
21 21
         '</a>'
22 22
     ); ?>
23 23
 </div>
24 24
 <h3 id="reg-admin-reg-details-reg-nmbr-hdr">
25 25
     <?php
26 26
     echo $previous_registration; // already escaped
27
-    echo '&nbsp;' . esc_html__('Registration # ', 'event_espresso');
28
-    echo esc_html($reg_nmbr['value']) . '&nbsp;';
27
+    echo '&nbsp;'.esc_html__('Registration # ', 'event_espresso');
28
+    echo esc_html($reg_nmbr['value']).'&nbsp;';
29 29
     echo $next_registration; // already escaped
30 30
     ?>
31 31
 </h3>
Please login to merge, or discard this patch.
templates/reg_admin_details_side_meta_box_registrant.template.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 
51 51
 <div class="contact-details-buttons">
52 52
     <?php
53
-    if (
54
-        $att_check instanceof EE_Attendee
55
-        && EE_Registry::instance()->CAP->current_user_can(
56
-            'ee_edit_contact',
57
-            'view_or_edit_contact_button',
58
-            $att_check->ID()
59
-        )
60
-    ) :
61
-        ?>
53
+	if (
54
+		$att_check instanceof EE_Attendee
55
+		&& EE_Registry::instance()->CAP->current_user_can(
56
+			'ee_edit_contact',
57
+			'view_or_edit_contact_button',
58
+			$att_check->ID()
59
+		)
60
+	) :
61
+		?>
62 62
         <a class="button button-small" href="<?php echo esc_url_raw($att_edit_link); ?>"
63 63
            title="<?php echo esc_attr($att_edit_label); ?>"
64 64
         >
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
         <?php if (! empty($create_link)) : ?>
69 69
         <a class="button button-small" href="<?php echo esc_url_raw($create_link); ?>"
70 70
            title="<?php esc_attr_e(
71
-               'This registration shares the contact details for the primary registration in this group.  If you\'d like this registration to have its own details, you can do so by clicking this button',
72
-               'event_espresso'
73
-           ); ?>"
71
+			   'This registration shares the contact details for the primary registration in this group.  If you\'d like this registration to have its own details, you can do so by clicking this button',
72
+			   'event_espresso'
73
+		   ); ?>"
74 74
         >
75 75
             <span class="ee-icon ee-icon-user-add-new"></span>
76 76
             <?php echo esc_html($create_label); ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         <span class="admin-side-mbox-label-spn lt-grey-txt float-left">
33 33
             <?php esc_html_e('Phone #', 'event_espresso'); ?>
34 34
         </span>
35
-        <?php if (! empty($phone)) : ?>
35
+        <?php if ( ! empty($phone)) : ?>
36 36
             <a href="tel:<?php echo esc_attr($phone); ?>">
37 37
                 <?php echo esc_html($phone); ?>
38 38
             </a>
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             <span class="ee-icon ee-icon-user-edit"></span>
66 66
             <?php echo esc_html($att_edit_label); ?>
67 67
         </a>
68
-        <?php if (! empty($create_link)) : ?>
68
+        <?php if ( ! empty($create_link)) : ?>
69 69
         <a class="button button-small" href="<?php echo esc_url_raw($create_link); ?>"
70 70
            title="<?php esc_attr_e(
71 71
                'This registration shares the contact details for the primary registration in this group.  If you\'d like this registration to have its own details, you can do so by clicking this button',
Please login to merge, or discard this patch.
templates/reg_admin_register_new_attendee_step_content.template.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
12 12
     <div class="ee-new-registration-step-content">
13 13
         <?php echo $content; // already escaped ?>
14 14
         <?php
15
-        if (
16
-            $show_notification_toggle
17
-            && EE_Registry::instance()->CAP->current_user_can(
18
-                'ee_send_message',
19
-                'registration_message_type'
20
-            )
21
-        ) : ?>
15
+		if (
16
+			$show_notification_toggle
17
+			&& EE_Registry::instance()->CAP->current_user_can(
18
+				'ee_send_message',
19
+				'registration_message_type'
20
+			)
21
+		) : ?>
22 22
             <div class="ee-attention">
23 23
                 <label for="txn_reg_status_change" class="last">
24 24
                     <?php esc_html_e('Send Related Messages?', 'event_espresso'); ?>
Please login to merge, or discard this patch.
templates/reg_admin_details_main_meta_box_reg_questions.template.php 3 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
 <div id="admin-primary-mbox-questions-dv" class="admin-primary-mbox-dv">
10 10
     <p>
11 11
         <?php esc_html_e(
12
-            'This displays the custom questions and answers for this registrant.  Please note that any answers to system questions have been saved with the contact record.  You can edit those answers via the "View/Edit this Contact" link in the Contact Details metabox in the sidebar.',
13
-            'event_espresso'
14
-        ); ?>
12
+			'This displays the custom questions and answers for this registrant.  Please note that any answers to system questions have been saved with the contact record.  You can edit those answers via the "View/Edit this Contact" link in the Contact Details metabox in the sidebar.',
13
+			'event_espresso'
14
+		); ?>
15 15
     </p>
16 16
 
17 17
     <form action='<?php echo esc_url_raw(REG_ADMIN_URL); ?>'
@@ -26,24 +26,24 @@  discard block
 block discarded – undo
26 26
         <input type="hidden" name="espresso_ajax" id="espresso-ajax" value="0" />
27 27
         <input type="hidden" name="noheader" id="reg-admin-noheader-inp" value="true" />
28 28
         <?php
29
-        echo $att_questions; // already escaped
30
-        if (! empty($att_questions)) :
31
-            if (
32
-                EE_Registry::instance()->CAP->current_user_can(
33
-                    'ee_edit_registration',
34
-                    'edit-reg-questions-mbox',
35
-                    $REG_ID
36
-                )
37
-            ) : ?>
29
+		echo $att_questions; // already escaped
30
+		if (! empty($att_questions)) :
31
+			if (
32
+				EE_Registry::instance()->CAP->current_user_can(
33
+					'ee_edit_registration',
34
+					'edit-reg-questions-mbox',
35
+					$REG_ID
36
+				)
37
+			) : ?>
38 38
                 <input class='button-primary'
39 39
                        id="reg-admin-attendee-questions-submit"
40 40
                        type="submit"
41 41
                        value="Update Registration Questions"
42 42
                 />
43 43
                 <?php
44
-            endif;
45
-        else :
46
-            ?>
44
+			endif;
45
+		else :
46
+			?>
47 47
             <p class="ee-attention">
48 48
                 <?php esc_html_e('There were no custom questions asked for this registration.', 'event_espresso'); ?>
49 49
             </p>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
           name="reg-admin-attendee-questions-frm"
20 20
           method="post"
21 21
     >
22
-        <?php wp_nonce_field($reg_questions_form_action . '_nonce', $reg_questions_form_action . '_nonce'); ?>
22
+        <?php wp_nonce_field($reg_questions_form_action.'_nonce', $reg_questions_form_action.'_nonce'); ?>
23 23
         <input type="hidden" name="page" value="<?php echo esc_attr(REG_PG_SLUG); ?>" />
24 24
         <input type="hidden" name="action" value="<?php echo esc_html($reg_questions_form_action); ?>" />
25 25
         <input type="hidden" name="_REG_ID" value="<?php echo esc_html($REG_ID); ?>" />
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         <input type="hidden" name="noheader" id="reg-admin-noheader-inp" value="true" />
28 28
         <?php
29 29
         echo $att_questions; // already escaped
30
-        if (! empty($att_questions)) :
30
+        if ( ! empty($att_questions)) :
31 31
             if (
32 32
                 EE_Registry::instance()->CAP->current_user_can(
33 33
                     'ee_edit_registration',
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,13 @@
 block discarded – undo
42 42
                 />
43 43
                 <?php
44 44
             endif;
45
-        else :
45
+        else {
46
+        	:
46 47
             ?>
47 48
             <p class="ee-attention">
48
-                <?php esc_html_e('There were no custom questions asked for this registration.', 'event_espresso'); ?>
49
+                <?php esc_html_e('There were no custom questions asked for this registration.', 'event_espresso');
50
+        }
51
+        ?>
49 52
             </p>
50 53
         <?php endif; ?>
51 54
 
Please login to merge, or discard this patch.
registrations/templates/attendee_registrations_main_meta_box.template.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -22,60 +22,60 @@
 block discarded – undo
22 22
                     <tr>
23 23
                         <td class="jst-left">
24 24
                             <?php
25
-                            $EVT_ID = absint($registration->event_ID());
26
-                            $event_url = add_query_arg(
27
-                                ['action' => 'edit', 'post' => $EVT_ID],
28
-                                admin_url('admin.php?page=espresso_events')
29
-                            );
30
-                            echo EE_Registry::instance()->CAP->current_user_can(
31
-                                'ee_edit_event',
32
-                                'espresso_events_edit',
33
-                                $EVT_ID
34
-                            )
35
-                                ? '<a href="' . esc_url_raw($event_url) . '"  title="'
36
-                                  . esc_attr__('Edit Event', 'event_espresso') . '">'
37
-                                  . esc_html($registration->event_name()) . '</a>'
38
-                                : esc_html($registration->event_name());
39
-                            ?>
25
+							$EVT_ID = absint($registration->event_ID());
26
+							$event_url = add_query_arg(
27
+								['action' => 'edit', 'post' => $EVT_ID],
28
+								admin_url('admin.php?page=espresso_events')
29
+							);
30
+							echo EE_Registry::instance()->CAP->current_user_can(
31
+								'ee_edit_event',
32
+								'espresso_events_edit',
33
+								$EVT_ID
34
+							)
35
+								? '<a href="' . esc_url_raw($event_url) . '"  title="'
36
+								  . esc_attr__('Edit Event', 'event_espresso') . '">'
37
+								  . esc_html($registration->event_name()) . '</a>'
38
+								: esc_html($registration->event_name());
39
+							?>
40 40
                         </td>
41 41
                         <td class="jst-left">
42 42
                             <?php
43
-                            $REG_ID = absint($registration->ID());
44
-                            $reg_url = EE_Admin_Page::add_query_args_and_nonce(
45
-                                ['action' => 'view_registration', '_REG_ID' => $REG_ID],
46
-                                REG_ADMIN_URL
47
-                            );
48
-                            echo EE_Registry::instance()->CAP->current_user_can(
49
-                                'ee_read_registration',
50
-                                'espresso_registrations_view_registration',
51
-                                $REG_ID
52
-                            )
53
-                                ? '<a href="' . esc_url_raw($reg_url) . '" title="'
54
-                                  . esc_attr__('View Registration Details', 'event_espresso') . '">'
55
-                                  . esc_html__('View Registration', 'event_espresso') . '</a>'
56
-                                : $REG_ID;
57
-                            ?>
43
+							$REG_ID = absint($registration->ID());
44
+							$reg_url = EE_Admin_Page::add_query_args_and_nonce(
45
+								['action' => 'view_registration', '_REG_ID' => $REG_ID],
46
+								REG_ADMIN_URL
47
+							);
48
+							echo EE_Registry::instance()->CAP->current_user_can(
49
+								'ee_read_registration',
50
+								'espresso_registrations_view_registration',
51
+								$REG_ID
52
+							)
53
+								? '<a href="' . esc_url_raw($reg_url) . '" title="'
54
+								  . esc_attr__('View Registration Details', 'event_espresso') . '">'
55
+								  . esc_html__('View Registration', 'event_espresso') . '</a>'
56
+								: $REG_ID;
57
+							?>
58 58
                         </td>
59 59
                         <td class="jst-left">
60 60
                             <?php
61
-                            $TXN_ID = absint($registration->transaction_ID());
62
-                            $txn_url = EE_Admin_Page::add_query_args_and_nonce(
63
-                                ['action' => 'view_transaction', 'TXN_ID' => $TXN_ID],
64
-                                TXN_ADMIN_URL
65
-                            );
66
-                            echo EE_Registry::instance()->CAP->current_user_can(
67
-                                'ee_read_transaction',
68
-                                'espresso_transactions_view_transaction'
69
-                            )
70
-                                ? '<a href="' . esc_url_raw($txn_url) . '" title="'
71
-                                  . esc_attr__('View Transaction Details', 'event_espresso') . '">'
72
-                                  . sprintf(
73
-                                      esc_html__('View Transaction %d', 'event_espresso'),
74
-                                      $TXN_ID
75
-                                  ) .
76
-                                  '</a>'
77
-                                : $TXN_ID;
78
-                            ?>
61
+							$TXN_ID = absint($registration->transaction_ID());
62
+							$txn_url = EE_Admin_Page::add_query_args_and_nonce(
63
+								['action' => 'view_transaction', 'TXN_ID' => $TXN_ID],
64
+								TXN_ADMIN_URL
65
+							);
66
+							echo EE_Registry::instance()->CAP->current_user_can(
67
+								'ee_read_transaction',
68
+								'espresso_transactions_view_transaction'
69
+							)
70
+								? '<a href="' . esc_url_raw($txn_url) . '" title="'
71
+								  . esc_attr__('View Transaction Details', 'event_espresso') . '">'
72
+								  . sprintf(
73
+									  esc_html__('View Transaction %d', 'event_espresso'),
74
+									  $TXN_ID
75
+								  ) .
76
+								  '</a>'
77
+								: $TXN_ID;
78
+							?>
79 79
                         </td>
80 80
                         <td class="jst-left"><?php echo esc_html($registration->reg_code()); ?></td>
81 81
                         <td class="jst-rght">
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
                                 'espresso_events_edit',
33 33
                                 $EVT_ID
34 34
                             )
35
-                                ? '<a href="' . esc_url_raw($event_url) . '"  title="'
36
-                                  . esc_attr__('Edit Event', 'event_espresso') . '">'
37
-                                  . esc_html($registration->event_name()) . '</a>'
35
+                                ? '<a href="'.esc_url_raw($event_url).'"  title="'
36
+                                  . esc_attr__('Edit Event', 'event_espresso').'">'
37
+                                  . esc_html($registration->event_name()).'</a>'
38 38
                                 : esc_html($registration->event_name());
39 39
                             ?>
40 40
                         </td>
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
                                 'espresso_registrations_view_registration',
51 51
                                 $REG_ID
52 52
                             )
53
-                                ? '<a href="' . esc_url_raw($reg_url) . '" title="'
54
-                                  . esc_attr__('View Registration Details', 'event_espresso') . '">'
55
-                                  . esc_html__('View Registration', 'event_espresso') . '</a>'
53
+                                ? '<a href="'.esc_url_raw($reg_url).'" title="'
54
+                                  . esc_attr__('View Registration Details', 'event_espresso').'">'
55
+                                  . esc_html__('View Registration', 'event_espresso').'</a>'
56 56
                                 : $REG_ID;
57 57
                             ?>
58 58
                         </td>
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
                                 'ee_read_transaction',
68 68
                                 'espresso_transactions_view_transaction'
69 69
                             )
70
-                                ? '<a href="' . esc_url_raw($txn_url) . '" title="'
71
-                                  . esc_attr__('View Transaction Details', 'event_espresso') . '">'
70
+                                ? '<a href="'.esc_url_raw($txn_url).'" title="'
71
+                                  . esc_attr__('View Transaction Details', 'event_espresso').'">'
72 72
                                   . sprintf(
73 73
                                       esc_html__('View Transaction %d', 'event_espresso'),
74 74
                                       $TXN_ID
75
-                                  ) .
75
+                                  ).
76 76
                                   '</a>'
77 77
                                 : $TXN_ID;
78 78
                             ?>
Please login to merge, or discard this patch.
admin_pages/registrations/templates/reg_status_change_buttons.template.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
         <?php echo esc_html($nonce); ?>
32 32
         <?php echo esc_html($status_buttons); ?>
33 33
         <?php
34
-        if (
35
-            $attendee instanceof EE_Attendee
36
-            && EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'registration_message_type')
37
-        ) : ?>
34
+		if (
35
+			$attendee instanceof EE_Attendee
36
+			&& EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'registration_message_type')
37
+		) : ?>
38 38
             <span id="send-related-messages-dv">
39 39
                 <label for="txn-reg-status-send-notifications-inp" class="important-notice">
40 40
                     <?php esc_html_e('...and send related messages ?', 'event_espresso'); ?>
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
             <br />
50 50
             <p class="description">
51 51
                 <?php esc_html_e(
52
-                    'If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.',
53
-                    'event_espresso'
54
-                ); ?>
52
+					'If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.',
53
+					'event_espresso'
54
+				); ?>
55 55
             </p>
56 56
         <?php endif; ?>
57 57
     </form>
Please login to merge, or discard this patch.