Completed
Branch BETA-4.9-messages-queue (3a5d2a)
by
unknown
105:38 queued 27:01
created
admin_pages/registrations/help_tours/Registration_View_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -97,39 +97,39 @@  discard block
 block discarded – undo
97 97
 
98 98
 
99 99
 	protected function _start() {
100
-		$content = '<h3>' . __('Welcome to the Registration Details page!', 'event_espresso') . '</h3>';
101
-		$content .= '<p>' . __('An introduction to the registration details page', 'event_espresso') . '</p>';
100
+		$content = '<h3>'.__('Welcome to the Registration Details page!', 'event_espresso').'</h3>';
101
+		$content .= '<p>'.__('An introduction to the registration details page', 'event_espresso').'</p>';
102 102
 		return $content;
103 103
 	}
104 104
 
105 105
 
106 106
 	protected function _reg_date_title() {
107
-		return '<p>' . __('About the reg date') . '</p>';
107
+		return '<p>'.__('About the reg date').'</p>';
108 108
 	}
109 109
 
110 110
 	
111 111
 
112 112
 	protected function _reg_details_stop() {
113
-		return '<p>' . __('About the reg details area (pending, buttons they can push and what happens)', 'event_espresso') . '</p>';
113
+		return '<p>'.__('About the reg details area (pending, buttons they can push and what happens)', 'event_espresso').'</p>';
114 114
 	}
115 115
 
116 116
 
117 117
 	protected function _reg_details_table() {
118
-		return '<p>' . __('about the registration details metabox', 'event_espresso') . '</p>';
118
+		return '<p>'.__('about the registration details metabox', 'event_espresso').'</p>';
119 119
 	}
120 120
 
121 121
 
122 122
 	protected function _display_additional_info_stop() {
123
-		return '<p>' . __('what happens when they click this link?  What\'s it here for', 'event_espresso') . '</p>';
123
+		return '<p>'.__('what happens when they click this link?  What\'s it here for', 'event_espresso').'</p>';
124 124
 	}
125 125
 
126 126
 
127 127
 	protected function _attendee_details_stop() {
128
-		return '<p>' . __('details on the registrant attached to this registration', 'event_espresso') . '</p>';
128
+		return '<p>'.__('details on the registrant attached to this registration', 'event_espresso').'</p>';
129 129
 	}
130 130
 
131 131
 
132 132
 	protected function _edit_reg_question_stop() {
133
-		return '<p>' . __('info about how they can edit the questions related to this registration here', 'event_espresso') . '</p>';
133
+		return '<p>'.__('info about how they can edit the questions related to this registration here', 'event_espresso').'</p>';
134 134
 	}
135 135
 }
136 136
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
registrations/templates/attendee_contact_info_metabox_content.template.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-EEH_Template_Validator::verify_instanceof( $attendee, '$attendee', 'EE_Attendee');
2
+EEH_Template_Validator::verify_instanceof($attendee, '$attendee', 'EE_Attendee');
3 3
 /**
4 4
  * @var $attendee - instance of EE_Attendee
5 5
  */
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 		<tr valign="top">
10 10
 			<td>
11 11
 				<label for="ATT_email"><?php _e('Email Address', 'event_espresso'); ?><span class="denotes-required-spn">*</span></label><br>
12
-				<div class="validation-notice-dv"><?php _e( 'The following is  a required field', 'event_espresso' );?></div>
12
+				<div class="validation-notice-dv"><?php _e('The following is  a required field', 'event_espresso'); ?></div>
13 13
 				<input class="all-options required" type="text" id="ATT_email" name="ATT_email" value="<?php echo $attendee->email(); ?>" required/><br/>
14 14
 				<p class="description"><?php _e('( required value )', 'event_espresso'); ?></p>
15 15
 			</td>
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 EEH_Template_Validator::verify_instanceof( $attendee, '$attendee', 'EE_Attendee');
3 3
 /**
4
- * @var $attendee - instance of EE_Attendee
5
- */
4
+	 * @var $attendee - instance of EE_Attendee
5
+	 */
6 6
 ?>
7 7
 <div id="titlediv">
8 8
 	<div id="titlewrap">
Please login to merge, or discard this patch.
templates/attendee_details_after_title_form_fields.template.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 EEH_Template_Validator::verify_instanceof( $attendee, '$attendee', 'EE_Attendee');
3 3
 /**
4
- * @var $attendee - instance of EE_Attendee
5
- */
4
+	 * @var $attendee - instance of EE_Attendee
5
+	 */
6 6
 ?>
7 7
 <div id="titlediv">
8 8
 	<div id="titlewrap">
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-EEH_Template_Validator::verify_instanceof( $attendee, '$attendee', 'EE_Attendee');
2
+EEH_Template_Validator::verify_instanceof($attendee, '$attendee', 'EE_Attendee');
3 3
 /**
4 4
  * @var $attendee - instance of EE_Attendee
5 5
  */
Please login to merge, or discard this patch.
registrations/templates/attendee_details_main_meta_box.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 						<label for="ATT_fname"><?php _e('First Name', 'event_espresso'); ?><span class="denotes-required-spn">*</span></label>
21 21
 					</th>
22 22
 					<td>
23
-						<div class="validation-notice-dv"><?php _e( 'The following is  a required field', 'event_espresso' );?></div>
23
+						<div class="validation-notice-dv"><?php _e('The following is  a required field', 'event_espresso'); ?></div>
24 24
 						<input class="regular-text required" type="text" id="ATT_fname" name="ATT_fname" value="<?php echo $attendee->fname(); ?>"/><br/>
25 25
 						<p class="description"><?php _e('The registrant\'s given name. ( required value )', 'event_espresso'); ?></p>
26 26
 					</td>
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 						<label for="ATT_lname"><?php _e('Last Name', 'event_espresso'); ?><span class="denotes-required-spn">*</span></label>
32 32
 					</th>
33 33
 					<td>
34
-						<div class="validation-notice-dv"><?php _e( 'The following is  a required field', 'event_espresso' );?></div>
34
+						<div class="validation-notice-dv"><?php _e('The following is  a required field', 'event_espresso'); ?></div>
35 35
 						<input class="regular-text required" type="text" id="ATT_lname" name="ATT_lname" value="<?php echo $attendee->lname(); ?>"/><br/>
36 36
 						<p class="description"><?php _e('The registrant\'s family name. ( required value )', 'event_espresso'); ?></p>
37 37
 					</td>
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 						<label for="ATT_email"><?php _e('Email Address', 'event_espresso'); ?><span class="denotes-required-spn">*</span></label>
43 43
 					</th>
44 44
 					<td>
45
-						<div class="validation-notice-dv"><?php _e( 'The following is  a required field', 'event_espresso' );?></div>
45
+						<div class="validation-notice-dv"><?php _e('The following is  a required field', 'event_espresso'); ?></div>
46 46
 						<input class="regular-text required" type="text" id="ATT_email" name="ATT_email" value="<?php echo $attendee->email(); ?>"/><br/>
47 47
 						<p class="description"><?php _e('( required value )', 'event_espresso'); ?></p>
48 48
 					</td>
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 				
110 110
 				
111 111
 				
112
-				<?php do_action( 'AHEE__attendee_details_main_meta_box__template__table_body_end',$attendee );?>
112
+				<?php do_action('AHEE__attendee_details_main_meta_box__template__table_body_end', $attendee); ?>
113 113
 			</tbody>
114 114
 		</table>
115
-		<?php do_action( 'AHEE__attendee_details_main_meta_box__template__after_table',$attendee );?>
115
+		<?php do_action('AHEE__attendee_details_main_meta_box__template__after_table', $attendee); ?>
116 116
 </div>
117 117
\ No newline at end of file
Please login to merge, or discard this patch.
registrations/templates/attendee_registrations_main_meta_box.template.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -5,42 +5,42 @@
 block discarded – undo
5 5
 		<table class="admin-primary-mbox-tbl">
6 6
 			<thead>
7 7
 				<tr>
8
-					<th class="jst-left"><?php _e( 'Event Name', 'event_espresso' );?></th>
9
-					<th class="jst-left"><?php _e( 'REG ID', 'event_espresso' );?></th>
10
-					<th class="jst-left"><?php _e( 'TXN ID', 'event_espresso' );?></th>
11
-					<th class="jst-left"><?php _e( 'Reg Code', 'event_espresso' );?></th>
12
-					<th class="jst-rght"><?php _e( 'Ticket Price', 'event_espresso' );?></th>
8
+					<th class="jst-left"><?php _e('Event Name', 'event_espresso'); ?></th>
9
+					<th class="jst-left"><?php _e('REG ID', 'event_espresso'); ?></th>
10
+					<th class="jst-left"><?php _e('TXN ID', 'event_espresso'); ?></th>
11
+					<th class="jst-left"><?php _e('Reg Code', 'event_espresso'); ?></th>
12
+					<th class="jst-rght"><?php _e('Ticket Price', 'event_espresso'); ?></th>
13 13
 				</tr>
14 14
 			</thead>
15 15
 			<tbody>
16
-			<?php foreach( $registrations as $registration ) : ?>
16
+			<?php foreach ($registrations as $registration) : ?>
17 17
 				<tr>
18 18
 					<td class="jst-left">
19 19
 					<?php
20
-						$event_url = add_query_arg( array( 'action' => 'edit', 'post' => $registration->event_ID() ), admin_url( 'admin.php?page=espresso_events' ));
21
-						echo EE_Registry::instance()->CAP->current_user_can( 'ee_edit_event', 'espresso_events_edit', $registration->event_ID() ) ?  '<a href="'. $event_url .'"  title="'. esc_attr__( 'Edit Event', 'event_espresso' ) .'">' . $registration->event_name() . '</a>' : $registration->event_name();
20
+						$event_url = add_query_arg(array('action' => 'edit', 'post' => $registration->event_ID()), admin_url('admin.php?page=espresso_events'));
21
+						echo EE_Registry::instance()->CAP->current_user_can('ee_edit_event', 'espresso_events_edit', $registration->event_ID()) ? '<a href="'.$event_url.'"  title="'.esc_attr__('Edit Event', 'event_espresso').'">'.$registration->event_name().'</a>' : $registration->event_name();
22 22
 					?>
23 23
 					</td>
24 24
 					<td class="jst-left">
25 25
 					<?php
26
-							$reg_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_registration', '_REG_ID'=>$registration->ID() ), REG_ADMIN_URL );
27
-							echo EE_Registry::instance()->CAP->current_user_can( 'ee_read_registration', 'espresso_registrations_view_registration', $registration->ID() ) ? '
28
-							<a href="'.$reg_url.'" title="' . esc_attr__( 'View Registration Details', 'event_espresso' ) . '">' . sprintf( __( '
29
-								View Registration ', 'event_espresso'), $registration->ID() ) .
26
+							$reg_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_registration', '_REG_ID'=>$registration->ID()), REG_ADMIN_URL);
27
+							echo EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $registration->ID()) ? '
28
+							<a href="'.$reg_url.'" title="'.esc_attr__('View Registration Details', 'event_espresso').'">'.sprintf(__('
29
+								View Registration ', 'event_espresso'), $registration->ID()).
30 30
 							'</a>' : '';
31 31
 					?>
32 32
 					</td>
33 33
 					<td class="jst-left">
34 34
 					<?php
35
-						$txn_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=>$registration->transaction_ID() ), TXN_ADMIN_URL );
36
-						echo EE_Registry::instance()->CAP->current_user_can( 'ee_read_transaction', 'espresso_transactions_view_transaction' ) ? '
37
-						<a href="'.$txn_url.'" title="' . esc_attr__( 'View Transaction Details', 'event_espresso' ) . '">
38
-							View Transaction ' . $registration->transaction_ID() . '
35
+						$txn_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_transaction', 'TXN_ID'=>$registration->transaction_ID()), TXN_ADMIN_URL);
36
+						echo EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction') ? '
37
+						<a href="'.$txn_url.'" title="'.esc_attr__('View Transaction Details', 'event_espresso').'">
38
+							View Transaction ' . $registration->transaction_ID().'
39 39
 						</a>' : '';
40 40
 					?>
41 41
 					</td>
42
-					<td class="jst-left"><?php echo $registration->reg_code();?></td>
43
-					<td class="jst-rght"><?php echo EEH_Template::format_currency( $registration->final_price() );?></td>
42
+					<td class="jst-left"><?php echo $registration->reg_code(); ?></td>
43
+					<td class="jst-rght"><?php echo EEH_Template::format_currency($registration->final_price()); ?></td>
44 44
 				</tr>
45 45
 			<?php endforeach; ?>
46 46
 			</tbody>
Please login to merge, or discard this patch.
admin_pages/registrations/templates/reg_admin_details_header.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <div style="float:right">
2
-	<?php printf( __( 'View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso' ), '<a href="' . $filtered_registrations_link . '">', '<a href="' . $filtered_transactions_link . '">', '<a href="' . $event_link . '">', '</a>' );?>
2
+	<?php printf(__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'), '<a href="'.$filtered_registrations_link.'">', '<a href="'.$filtered_transactions_link.'">', '<a href="'.$event_link.'">', '</a>'); ?>
3 3
 </div>
4
-<h3 id="reg-admin-reg-details-reg-nmbr-hdr"><?php echo $previous_registration . '&nbsp;'; echo __( 'Registration # ', 'event_espresso' ) . $reg_nmbr['value']; echo '&nbsp;' . $next_registration; ?></h3>
5
-<h2 id="reg-admin-reg-details-reg-date-hdr"><?php echo $reg_datetime['value'];?></h2>
4
+<h3 id="reg-admin-reg-details-reg-nmbr-hdr"><?php echo $previous_registration.'&nbsp;'; echo __('Registration # ', 'event_espresso').$reg_nmbr['value']; echo '&nbsp;'.$next_registration; ?></h3>
5
+<h2 id="reg-admin-reg-details-reg-date-hdr"><?php echo $reg_datetime['value']; ?></h2>
6 6
 
7
-<?php if ( $registration->group_size() > 1 ) : ?>
8
-	<a id="scroll-to-other-attendees" class="scroll-to" href="#other-attendees"><?php echo __( 'Scroll to Other Registrations in the Same Transaction', 'event_espresso' );?></a>
7
+<?php if ($registration->group_size() > 1) : ?>
8
+	<a id="scroll-to-other-attendees" class="scroll-to" href="#other-attendees"><?php echo __('Scroll to Other Registrations in the Same Transaction', 'event_espresso'); ?></a>
9 9
 <?php endif; ?>
10 10
 
11 11
 
Please login to merge, or discard this patch.
templates/reg_admin_details_main_meta_box_attendees.template.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -3,35 +3,35 @@
 block discarded – undo
3 3
 	<br/>
4 4
 <?php //echo EEH_Debug_Tools::printr( $event_attendees, 'event_attendees' ); ?>
5 5
 <?php echo $attendee_notice; ?>
6
-<?php if ( !empty($attendees) ) : ?>
6
+<?php if ( ! empty($attendees)) : ?>
7 7
 	<div class="admin-primary-mbox-tbl-wrap">
8 8
 		<table class="admin-primary-mbox-tbl">
9 9
 			<thead>
10 10
 				<tr>
11
-					<th class="jst-left"><?php _e( '#', 'event_espresso' );?></th>
12
-					<th class="jst-left"><?php _e( 'Event Name', 'event_espresso' );?></th>
13
-					<th class="jst-left"><?php _e( 'Attendee', 'event_espresso' );?></th>
14
-					<th class="jst-rght"><?php _e( 'Price Paid', 'event_espresso' );?></th>
15
-					<th class="jst-left"><?php _e( 'Email', 'event_espresso' );?></th>
16
-					<th class="jst-left"><?php _e( 'Address', 'event_espresso' );?></th>
17
-					<!--<th class="jst-cntr"><?php _e( 'Actions', 'event_espresso' );?></th>-->
11
+					<th class="jst-left"><?php _e('#', 'event_espresso'); ?></th>
12
+					<th class="jst-left"><?php _e('Event Name', 'event_espresso'); ?></th>
13
+					<th class="jst-left"><?php _e('Attendee', 'event_espresso'); ?></th>
14
+					<th class="jst-rght"><?php _e('Price Paid', 'event_espresso'); ?></th>
15
+					<th class="jst-left"><?php _e('Email', 'event_espresso'); ?></th>
16
+					<th class="jst-left"><?php _e('Address', 'event_espresso'); ?></th>
17
+					<!--<th class="jst-cntr"><?php _e('Actions', 'event_espresso'); ?></th>-->
18 18
 				</tr>
19 19
 			</thead>
20 20
 			<tbody>
21 21
 
22
-			<?php foreach ( $attendees as $att_nmbr => $attendee ) : ?>
22
+			<?php foreach ($attendees as $att_nmbr => $attendee) : ?>
23 23
 
24 24
 				<tr>
25
-					<td class="jst-left"><?php echo$att_nmbr;?></td>
26
-					<td class="jst-left"><?php echo $event_name;?></td>
25
+					<td class="jst-left"><?php echo$att_nmbr; ?></td>
26
+					<td class="jst-left"><?php echo $event_name; ?></td>
27 27
 					<td class="jst-left">
28
-						<a href="<?php echo $attendee['att_link']; ?>" title="<?php esc_attr_e( 'View details for this attendee', 'event_espresso' );?>">
29
-							<?php echo $attendee['fname'] . ' ' . $attendee['lname'];?>
28
+						<a href="<?php echo $attendee['att_link']; ?>" title="<?php esc_attr_e('View details for this attendee', 'event_espresso'); ?>">
29
+							<?php echo $attendee['fname'].' '.$attendee['lname']; ?>
30 30
 						</a>
31 31
 					</td>
32
-					<td class="jst-rght"><?php echo $currency_sign . ' ' . number_format( $attendee['final_price'], 2 );?></td>
33
-					<td class="jst-left"><?php echo $attendee['email'];?></td>
34
-					<td class="jst-left"><?php echo $attendee['address'];?></td>
32
+					<td class="jst-rght"><?php echo $currency_sign.' '.number_format($attendee['final_price'], 2); ?></td>
33
+					<td class="jst-left"><?php echo $attendee['email']; ?></td>
34
+					<td class="jst-left"><?php echo $attendee['address']; ?></td>
35 35
 					<!--<th class="jst-cntr">view</th>-->
36 36
 				</tr>
37 37
 
Please login to merge, or discard this patch.
templates/reg_admin_details_main_meta_box_reg_details.template.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@  discard block
 block discarded – undo
4 4
 	<?php echo $resend_registration_button; ?>
5 5
 	<br/>
6 6
 
7
-	<h4 class="admin-primary-mbox-h4 hdr-has-icon"><span class="dashicons dashicons-clipboard"></span><?php _e( 'Registration Items', 'event_espresso' );?></h4>
7
+	<h4 class="admin-primary-mbox-h4 hdr-has-icon"><span class="dashicons dashicons-clipboard"></span><?php _e('Registration Items', 'event_espresso'); ?></h4>
8 8
 
9 9
 	<?php echo $line_item_table; ?>
10 10
 
11 11
 	<?php
12
-	if ( WP_DEBUG ) {
13
-		$delivered_messages = get_option( 'EED_Messages__maybe_registration', array() );
14
-		if ( isset( $delivered_messages[ $REG_ID ] )) {
12
+	if (WP_DEBUG) {
13
+		$delivered_messages = get_option('EED_Messages__maybe_registration', array());
14
+		if (isset($delivered_messages[$REG_ID])) {
15 15
 	?>
16
-	<h4 class="admin-primary-mbox-h4 hdr-has-icon"><span class="dashicons dashicons-email-alt"></span><?php _e( 'Messages Sent to Registrant', 'event_espresso' );?></h4>
16
+	<h4 class="admin-primary-mbox-h4 hdr-has-icon"><span class="dashicons dashicons-email-alt"></span><?php _e('Messages Sent to Registrant', 'event_espresso'); ?></h4>
17 17
 
18 18
 	<div class="admin-primary-mbox-tbl-wrap">
19 19
 		<table class="admin-primary-mbox-tbl">
20 20
 			<thead>
21 21
 				<tr>
22
-					<th class="jst-left"><?php _e( 'Date & Time', 'event_espresso' );?></th>
23
-					<th class="jst-left"><?php _e( 'Message Type', 'event_espresso' );?></th>
24
-					<th class="jst-left"><?php _e( 'REG Status Upon Sending', 'event_espresso' );?></th>
22
+					<th class="jst-left"><?php _e('Date & Time', 'event_espresso'); ?></th>
23
+					<th class="jst-left"><?php _e('Message Type', 'event_espresso'); ?></th>
24
+					<th class="jst-left"><?php _e('REG Status Upon Sending', 'event_espresso'); ?></th>
25 25
 				</tr>
26 26
 			</thead>
27 27
 			<tbody>
28
-				<?php foreach ( $delivered_messages[ $REG_ID ] as $timestamp => $delivered_message ) :
28
+				<?php foreach ($delivered_messages[$REG_ID] as $timestamp => $delivered_message) :
29 29
 					?>
30 30
 					<tr>
31
-						<td class="jst-left"><?php echo gmdate( get_option('date_format') . ' ' . get_option('time_format'), ( $timestamp + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) ) );?></td>
32
-						<td class="jst-left"><?php echo isset( $delivered_message['message_type'] ) ? $delivered_message['message_type'] : '';?></td>
33
-						<td class="jst-left"><?php echo isset( $delivered_message['reg_status'] ) ? $delivered_message['reg_status'] : '';?></td>
31
+						<td class="jst-left"><?php echo gmdate(get_option('date_format').' '.get_option('time_format'), ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))); ?></td>
32
+						<td class="jst-left"><?php echo isset($delivered_message['message_type']) ? $delivered_message['message_type'] : ''; ?></td>
33
+						<td class="jst-left"><?php echo isset($delivered_message['reg_status']) ? $delivered_message['reg_status'] : ''; ?></td>
34 34
 					</tr>
35 35
 				<?php endforeach; // $delivered_messages?>
36 36
 			</tbody>
@@ -42,27 +42,27 @@  discard block
 block discarded – undo
42 42
 	?>
43 43
 
44 44
 	<a id="display-additional-registration-session-info" class="display-the-hidden smaller-text" rel="additional-registration-session-info">
45
-		<span class="dashicons dashicons-plus-alt"></span><?php _e( 'view additional registration session details', 'event_espresso' );?>
45
+		<span class="dashicons dashicons-plus-alt"></span><?php _e('view additional registration session details', 'event_espresso'); ?>
46 46
 	</a>
47 47
 
48 48
 	<div id="additional-registration-session-info-dv" class="hidden">
49 49
 
50 50
 		<a id="hide-additional-registration-session-info" class="hide-the-displayed hidden smaller-text" rel="additional-registration-session-info">
51
-			<span class="dashicons dashicons-dismiss"></span><?php _e( 'hide additional registration session details', 'event_espresso' );?>
51
+			<span class="dashicons dashicons-dismiss"></span><?php _e('hide additional registration session details', 'event_espresso'); ?>
52 52
 		</a>
53 53
 	<br class="clear"/>
54 54
 
55
-		<h4 class="admin-primary-mbox-h4"><?php _e( 'Registration Session Details', 'event_espresso' );?></h4>
55
+		<h4 class="admin-primary-mbox-h4"><?php _e('Registration Session Details', 'event_espresso'); ?></h4>
56 56
 
57 57
 		<table id="admin-primary-mbox-reg-extra-session-info-tbl" class="form-table skinny-rows">
58 58
 			<tbody>
59
-			<?php foreach ( $reg_details as $key => $reg_detail ) : ?>
59
+			<?php foreach ($reg_details as $key => $reg_detail) : ?>
60 60
 				<tr>
61 61
 					<th>
62
-						<label for="<?php echo $key;?>"><?php echo $reg_detail['label'];?></label>
62
+						<label for="<?php echo $key; ?>"><?php echo $reg_detail['label']; ?></label>
63 63
 					</th>
64 64
 					<td>
65
-						<?php echo $reg_detail['value'];?>
65
+						<?php echo $reg_detail['value']; ?>
66 66
 					</td>
67 67
 				</tr>
68 68
 			<?php endforeach; // $reg_details?>
Please login to merge, or discard this patch.
templates/reg_admin_details_main_meta_box_reg_questions.template.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 	<p><?php _e('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.', 'event_espresso'); ?></p>
3 3
 	
4 4
 	<form name="reg-admin-attendee-questions-frm" id="reg-admin-attendee-questions-frm" action="<?php echo REG_ADMIN_URL; ?>">
5
-		<?php wp_nonce_field( $reg_questions_form_action . '_nonce', $reg_questions_form_action . '_nonce' ); ?>
5
+		<?php wp_nonce_field($reg_questions_form_action.'_nonce', $reg_questions_form_action.'_nonce'); ?>
6 6
 		<input  type="hidden" name="page" value="<?php echo REG_PG_SLUG; ?>"/>
7 7
 		<input  type="hidden" name="action" value="<?php echo $reg_questions_form_action; ?>"/>
8 8
 		<input  type="hidden" name="_REG_ID" value="<?php echo $REG_ID; ?>"/>
9 9
 		<input  type="hidden" name="espresso_ajax" id="espresso-ajax" value="0"/>
10 10
 		<input  type="hidden" name="noheader" id="reg-admin-noheader-inp" value="true"/>
11 11
 		<?php echo $att_questions; ?>
12
-		<?php if ( !empty($att_questions) ) : ?>
12
+		<?php if ( ! empty($att_questions)) : ?>
13 13
 			<input id="reg-admin-attendee-questions-submit" class="button-primary" value="Update Registration Questions" type="submit" />
14 14
 		<?php else : ?>
15 15
 			<p class="ee-attention"><?php _e('There were no custom questions asked for this registration.', 'event_espresso'); ?></p>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,11 @@
 block discarded – undo
11 11
 		<?php echo $att_questions; ?>
12 12
 		<?php if ( !empty($att_questions) ) : ?>
13 13
 			<input id="reg-admin-attendee-questions-submit" class="button-primary" value="Update Registration Questions" type="submit" />
14
-		<?php else : ?>
15
-			<p class="ee-attention"><?php _e('There were no custom questions asked for this registration.', 'event_espresso'); ?></p>
14
+		<?php else {
15
+	: ?>
16
+			<p class="ee-attention"><?php _e('There were no custom questions asked for this registration.', 'event_espresso');
17
+}
18
+?></p>
16 19
 		<?php endif; ?>
17 20
 
18 21
 	</form>
Please login to merge, or discard this patch.