Completed
Branch GDPR/privacy-policy-content (f954f3)
by
unknown
60:17 queued 46:07
created
core/libraries/messages/defaults/default/html_invoice_content.template.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
 			</td>
24 24
 			<td>
25 25
 				<div id="invoice-info">
26
-					<h2 id="invoice-hdr"><?php _e( 'Invoice', 'event_espresso' ) ?></h2>
26
+					<h2 id="invoice-hdr"><?php _e('Invoice', 'event_espresso') ?></h2>
27 27
 					<h3>
28
-						<?php _e( 'Date:', 'event_espresso' ) ?> <span>[PRIMARY_REGISTRANT_REGISTRATION_DATE]</span>
28
+						<?php _e('Date:', 'event_espresso') ?> <span>[PRIMARY_REGISTRANT_REGISTRATION_DATE]</span>
29 29
 					</h3>
30
-					<h3><?php _e( 'Registration Code:', 'event_espresso' ) ?>
30
+					<h3><?php _e('Registration Code:', 'event_espresso') ?>
31 31
 						<span>[PRIMARY_REGISTRANT_REGISTRATION_CODE]</span></h3>
32 32
 
33
-					<h3><?php _e( 'Transaction ID:', 'event_espresso' ) ?> <span>[TXN_ID]</span></h3>
33
+					<h3><?php _e('Transaction ID:', 'event_espresso') ?> <span>[TXN_ID]</span></h3>
34 34
 				</div>
35 35
 			</td>
36 36
 		</tr>
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 		</tr>
42 42
 	</table>
43 43
 
44
-	<h2><?php _e( 'Bill To:', 'event_espresso' ) ?></h2>
44
+	<h2><?php _e('Bill To:', 'event_espresso') ?></h2>
45 45
 	<div class="vcard" id="client-details">
46 46
 		<div class="fn">[PRIMARY_REGISTRANT_FNAME] [PRIMARY_REGISTRANT_LNAME]</div>
47 47
 		<div class="adr">
@@ -54,15 +54,15 @@  discard block
 block discarded – undo
54 54
 		</div>
55 55
 	</div>
56 56
 
57
-	<h2><?php _e( "Purchases", 'event_espresso' ) ?></h2>
57
+	<h2><?php _e("Purchases", 'event_espresso') ?></h2>
58 58
 	<table class="invoice-amount">
59 59
 		<thead>
60 60
 			<tr class="header_row">
61
-				<th class="left ticket_th"><?php _e( 'Item', 'event_espresso' ); ?></th>
62
-				<th class="left event_th"><?php _e( 'Description', 'event_espresso' ); ?></th>
63
-				<th class="quantity_th"><?php _e( 'Qty', 'event_espresso' ); ?></th>
64
-				<th class="left event_th"><?php _e( 'Price', 'event_espresso' ); ?></th>
65
-				<th class="subtotal_th item_r"><?php _e( 'Total', 'event_espresso' ); ?></th>
61
+				<th class="left ticket_th"><?php _e('Item', 'event_espresso'); ?></th>
62
+				<th class="left event_th"><?php _e('Description', 'event_espresso'); ?></th>
63
+				<th class="quantity_th"><?php _e('Qty', 'event_espresso'); ?></th>
64
+				<th class="left event_th"><?php _e('Price', 'event_espresso'); ?></th>
65
+				<th class="subtotal_th item_r"><?php _e('Total', 'event_espresso'); ?></th>
66 66
 			</tr>
67 67
 		</thead>
68 68
 		<tbody>
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 			</tr>
72 72
 			<tr class="total_tr odd">
73 73
 				<td colspan="2">&nbsp;</td>
74
-				<td colspan="2" class="total" id="total_currency"><?php _e( 'Sub-Total', 'event_espresso' ); ?></td>
74
+				<td colspan="2" class="total" id="total_currency"><?php _e('Sub-Total', 'event_espresso'); ?></td>
75 75
 				<td class="total">[TXN_SUBTOTAL]</td>
76 76
 			</tr>
77 77
 			<tr>
@@ -80,24 +80,24 @@  discard block
 block discarded – undo
80 80
 
81 81
 			<tr class="total_tr odd">
82 82
 				<td colspan="2">&nbsp;</td>
83
-				<td colspan="2" class="total" id="total_currency"><?php _e( 'Total', 'event_espresso' ); ?></td>
83
+				<td colspan="2" class="total" id="total_currency"><?php _e('Total', 'event_espresso'); ?></td>
84 84
 				<td class="total">[TOTAL_COST]</td>
85 85
 			</tr>
86 86
 		</tbody>
87 87
 	</table>
88 88
 
89
-	<p><?php _e( "* taxable items", "event_espresso" ); ?></p>
89
+	<p><?php _e("* taxable items", "event_espresso"); ?></p>
90 90
 
91
-	<h2><?php _e( "Payments", 'event_espresso' ) ?></h2>
91
+	<h2><?php _e("Payments", 'event_espresso') ?></h2>
92 92
 	<table class="invoice-amount">
93 93
 		<thead>
94 94
 			<tr class="header_row">
95
-				<th><span class=""><?php _e( 'Payment Method', 'event_espresso' ); ?></span></th>
96
-				<th class='left datetime_th'><?php _e( "Date", 'event_espresso' ) ?></th>
97
-				<th><span class=""><?php _e( 'Transaction Id / Cheque #', 'event_espresso' ); ?></span></th>
98
-				<th><span class=""><?php _e( 'P.O. / S.O.#', 'event_espresso' ); ?></span></th>
99
-				<th><span class=""><?php _e( 'Status', 'event_espresso' ); ?></span></th>
100
-				<th><?php _e( 'Amount', 'event_espresso' ); ?></th>
95
+				<th><span class=""><?php _e('Payment Method', 'event_espresso'); ?></span></th>
96
+				<th class='left datetime_th'><?php _e("Date", 'event_espresso') ?></th>
97
+				<th><span class=""><?php _e('Transaction Id / Cheque #', 'event_espresso'); ?></span></th>
98
+				<th><span class=""><?php _e('P.O. / S.O.#', 'event_espresso'); ?></span></th>
99
+				<th><span class=""><?php _e('Status', 'event_espresso'); ?></span></th>
100
+				<th><?php _e('Amount', 'event_espresso'); ?></th>
101 101
 			</tr>
102 102
 		</thead>
103 103
 		<tbody>
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
 		<tfoot>
109 109
 			<tr class='total_tr'>
110 110
 				<td colspan="4"></td>
111
-				<td class="item_r"><?php _e( 'Total Paid', 'event_espresso' ) ?></td>
111
+				<td class="item_r"><?php _e('Total Paid', 'event_espresso') ?></td>
112 112
 				<td class="item_r">[TOTAL_AMOUNT_PAID]</td>
113 113
 			</tr>
114 114
 			<tr class="total_tr">
115 115
 				<td colspan="4"></td>
116
-				<td class="total" id="total_currency"><?php _e( 'Amount Owed', 'event_espresso' ); ?></td>
116
+				<td class="total" id="total_currency"><?php _e('Amount Owed', 'event_espresso'); ?></td>
117 117
 				<td class="total">[TOTAL_OWING]</td>
118 118
 			</tr>
119 119
 		</tfoot>
Please login to merge, or discard this patch.
core/libraries/messages/defaults/default/html_invoice_subject.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,4 +2,4 @@
 block discarded – undo
2 2
 /**
3 3
  * This is the template for the html messenger and invoice message type page title field.
4 4
  */
5
-printf( __( '%s Invoice for Transaction: %s', 'event_espresso' ), '[COMPANY]', '[TXN_ID]' );
6 5
\ No newline at end of file
6
+printf(__('%s Invoice for Transaction: %s', 'event_espresso'), '[COMPANY]', '[TXN_ID]');
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
libraries/messages/defaults/default/html_receipt_attendee_list.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 <li class="ticket-registration">
7 7
 	<table class="registration-details">
8 8
 		<tr class="odd">
9
-			<th><?php	_e('Attendee', 'event_espresso');?></th>
9
+			<th><?php	_e('Attendee', 'event_espresso'); ?></th>
10 10
 			<td>[FNAME] [LNAME] ([ATTENDEE_EMAIL])</td>
11 11
 		</tr>
12 12
 		<tr>
13
-			<th><?php _e("Registration Code:", "event_espresso");?></th>
13
+			<th><?php _e("Registration Code:", "event_espresso"); ?></th>
14 14
 			<td>[REGISTRATION_CODE] - <span class="[REGISTRATION_STATUS_ID]">[REGISTRATION_STATUS_LABEL]</span></td>
15 15
 		</tr>
16 16
 	</table>
Please login to merge, or discard this patch.
libraries/messages/defaults/default/html_receipt_event_list.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
  */
5 5
 ?>
6 6
 <h3 class="section-title event-name">
7
-	<img class="icon" src="<?php echo EE_IMAGES_URL . 'calendar_year-24x24.png'; ?>"><?php _e( "Event Name:", "event_espresso" ) ?>
7
+	<img class="icon" src="<?php echo EE_IMAGES_URL.'calendar_year-24x24.png'; ?>"><?php _e("Event Name:", "event_espresso") ?>
8 8
 	<span class="plain-text">[EVENT_NAME]</span>
9
-	<span class="small-text link">( <a href="[EVENT_URL]"><?php _e( 'view', 'event_espresso' ); ?></a> )</span>
9
+	<span class="small-text link">( <a href="[EVENT_URL]"><?php _e('view', 'event_espresso'); ?></a> )</span>
10 10
 </h3>
11 11
 <p class="event-description">
12 12
 	[EVENT_EXCERPT]
Please login to merge, or discard this patch.
core/libraries/messages/defaults/default/html_receipt_subject.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 /**
3 3
  * This is the template for the html messenger and receipt message type page title field.
4 4
  */
5
-printf( __( '%s Receipt for Transaction: %s', 'event_espresso' ), '[COMPANY]', '[TXN_ID]' );
5
+printf(__('%s Receipt for Transaction: %s', 'event_espresso'), '[COMPANY]', '[TXN_ID]');
6 6
 ?>
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
messages/defaults/default/html_receipt_ticket_line_item_no_pms.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 <tr class="item">
7 7
 	<td>[LINE_ITEM_NAME][LINE_ITEM_TAXABLE_*]</td>
8 8
 	<td colspan="2">[LINE_ITEM_DESCRIPTION]
9
-		<p class="ticket-note"><?php echo sprintf( __( 'This ticket can be used once at %s of the dates/times below.', 'event_espresso' ), '[TKT_USES_* schema=' . __( 'any', 'event_espresso' ) . ']' ); ?></p>
9
+		<p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), '[TKT_USES_* schema='.__('any', 'event_espresso').']'); ?></p>
10 10
 	</td>
11 11
 	<td class="item_c">[LINE_ITEM_QUANTITY]</td>
12 12
 	<td class="item_c">[LINE_ITEM_AMOUNT]</td>
Please login to merge, or discard this patch.
messages/defaults/default/html_receipt_ticket_line_item_pms.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 <tr class="item">
7 7
 	<td>[LINE_ITEM_NAME][LINE_ITEM_TAXABLE_*]</td>
8 8
 	<td colspan="2">[LINE_ITEM_DESCRIPTION]
9
-		<p class="ticket-note"><?php echo sprintf( __( 'This ticket can be used once at %s of the dates/times below.', 'event_espresso' ), '[TKT_USES_* schema=' . __( 'any', 'event_espresso' ) . ']' ); ?></p>
9
+		<p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), '[TKT_USES_* schema='.__('any', 'event_espresso').']'); ?></p>
10 10
 	</td>
11 11
 	<td class="item_c">[LINE_ITEM_QUANTITY]</td>
12 12
 	<td class="item_c">[LINE_ITEM_AMOUNT]</td>
@@ -15,6 +15,6 @@  discard block
 block discarded – undo
15 15
 [PRICE_MODIFIER_LINE_ITEM_LIST]
16 16
 <tr class="total_tr odd">
17 17
 	<td colspan="4"></td>
18
-	<td class="total" nowrap="nowrap"><?php _e( "Ticket Total:", "event_espresso" ); ?></td>
18
+	<td class="total" nowrap="nowrap"><?php _e("Ticket Total:", "event_espresso"); ?></td>
19 19
 	<td class="item_r">[LINE_ITEM_TOTAL]</td>
20 20
 </tr>
Please login to merge, or discard this patch.
libraries/messages/defaults/default/html_receipt_ticket_list.template.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 		<table class="invoice-amount">
9 9
 			<thead>
10 10
 				<tr class="header_row">
11
-					<th class="name-column"><?php _e( "Ticket", "event_espresso" ); ?></th>
12
-					<th colspan="2" class="desc-column"><?php _e( "Description", "event_espresso" ); ?></th>
13
-					<th class="number-column item_c"><?php _e( "Quantity", "event_espresso" ); ?></th>
14
-					<th class="number-column item_c"><?php _e( "Price", "event_espresso" ); ?></th>
15
-					<th class="number-column item_r"><?php _e( "Total", "event_espresso" ); ?></th>
11
+					<th class="name-column"><?php _e("Ticket", "event_espresso"); ?></th>
12
+					<th colspan="2" class="desc-column"><?php _e("Description", "event_espresso"); ?></th>
13
+					<th class="number-column item_c"><?php _e("Quantity", "event_espresso"); ?></th>
14
+					<th class="number-column item_c"><?php _e("Price", "event_espresso"); ?></th>
15
+					<th class="number-column item_r"><?php _e("Total", "event_espresso"); ?></th>
16 16
 				</tr>
17 17
 			</thead>
18 18
 			<tbody>[TICKET_LINE_ITEM_LIST]</tbody>
@@ -22,25 +22,25 @@  discard block
 block discarded – undo
22 22
 		<div class="ticket-time-and-place-details">
23 23
 			<div class="ticket-time-details">
24 24
 				<h4 class="sub-section-title no-bottom-margin">
25
-					<img class="icon" src="<?php echo EE_IMAGES_URL . 'clock-16x16.png'; ?>"><?php _e( 'Date/Time:', 'event_espresso' ); ?>
25
+					<img class="icon" src="<?php echo EE_IMAGES_URL.'clock-16x16.png'; ?>"><?php _e('Date/Time:', 'event_espresso'); ?>
26 26
 				</h4>
27 27
 				<ul class="event-dates">[DATETIME_LIST]</ul>
28 28
 			</div>
29 29
 			<div class="ticket-place-details">
30 30
 				<h4 class="sub-section-title no-bottom-margin">
31
-					<img class="icon" src="<?php echo EE_IMAGES_URL . 'location-pin-16x16.png'; ?>"><?php _e( 'Venue', 'event_espresso' ); ?>
31
+					<img class="icon" src="<?php echo EE_IMAGES_URL.'location-pin-16x16.png'; ?>"><?php _e('Venue', 'event_espresso'); ?>
32 32
 				</h4>
33 33
 				<ul class="event-venues">
34 34
 					<li>[VENUE_TITLE]
35
-						<span class="small-text">( <a href="[VENUE_URL]"><?php _e( 'view', 'event_espresso' ); ?></a> )</span>
35
+						<span class="small-text">( <a href="[VENUE_URL]"><?php _e('view', 'event_espresso'); ?></a> )</span>
36 36
 					</li>
37 37
 				</ul>
38 38
 			</div>
39 39
 		</div>
40 40
 		<div class="ticket-registrations-area">
41 41
 			<h4 class="sub-section-title">
42
-				<img class="icon" src="<?php echo EE_IMAGES_URL . 'users-16x16.png'; ?>"><?php _e( "Registration Details", "event_espresso" ); ?>
43
-				<span class="small-text link">( <a class="print_button noPrint" href="[PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK]"><?php _e( 'edit', 'event_espresso' ); ?></a> )</span>
42
+				<img class="icon" src="<?php echo EE_IMAGES_URL.'users-16x16.png'; ?>"><?php _e("Registration Details", "event_espresso"); ?>
43
+				<span class="small-text link">( <a class="print_button noPrint" href="[PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK]"><?php _e('edit', 'event_espresso'); ?></a> )</span>
44 44
 			</h4>
45 45
 			<ul class="ticket-registrations-list">[ATTENDEE_LIST]</ul>
46 46
 		</div>
Please login to merge, or discard this patch.
core/libraries/messages/message_type/EE_Invoice_message_type.class.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 
34 34
 	protected function _set_admin_pages() {
35
-		$this->admin_registered_pages = array( 'events_edit' => TRUE );
35
+		$this->admin_registered_pages = array('events_edit' => TRUE);
36 36
 	}
37 37
 
38 38
 
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
 	protected function _set_with_messengers() {
47 47
 		$this->_with_messengers = array(
48
-			'html' => array( 'pdf' )
48
+			'html' => array('pdf')
49 49
 			);
50 50
 	}
51 51
 
52 52
 
53 53
 
54
-	protected function _get_data_for_context( $context, EE_Registration $registration, $id ) {
54
+	protected function _get_data_for_context($context, EE_Registration $registration, $id) {
55 55
 		//receipt message type data handler is 'Gateways' and it expects a transaction object.
56 56
 		$transaction = $registration->transaction();
57
-		if ( $transaction instanceof EE_Transaction ) {
58
-			return array( $transaction );
57
+		if ($transaction instanceof EE_Transaction) {
58
+			return array($transaction);
59 59
 		}
60 60
 		return array();
61 61
 	}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@
 block discarded – undo
5 5
  * @subpackage messages
6 6
  * @since           4.5.0
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * The message type for invoices.
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,12 +87,12 @@
 block discarded – undo
87 87
 
88 88
 
89 89
 	/**
90
-	* used to set the valid shortcodes for the receipt message type
91
-	*
92
-	* @since   4.5.0
93
-	*
94
-	* @return  void
95
-	*/
90
+	 * used to set the valid shortcodes for the receipt message type
91
+	 *
92
+	 * @since   4.5.0
93
+	 *
94
+	 * @return  void
95
+	 */
96 96
 	protected function _set_valid_shortcodes() {
97 97
 		$this->_valid_shortcodes['purchaser'] = array(
98 98
 			'attendee_list', 'attendee', 'datetime_list', 'datetime', 'event_list', 'event', 'event_meta', 'messenger', 'organization', 'primary_registration_list', 'primary_registration_details', 'ticket_list', 'ticket', 'transaction', 'venue', 'line_item_list', 'payment_list', 'line_item', 'payment'
Please login to merge, or discard this patch.