@@ -2,13 +2,13 @@ |
||
2 | 2 | <h2 class="ee-new-registration-step-header"><?php echo $title ?></h2> |
3 | 3 | <div class="ee-new-registration-step-content"> |
4 | 4 | <?php echo $content; ?> |
5 | - <?php if ( $show_notification_toggle && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'registration_message_type' ) ) : ?> |
|
5 | + <?php if ($show_notification_toggle && EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'registration_message_type')) : ?> |
|
6 | 6 | <div class="ee-attention"> |
7 | - <label for="txn_reg_status_change" class="last"><?php _e( 'Send Related Messages?', 'event_espresso' );?></label> |
|
7 | + <label for="txn_reg_status_change" class="last"><?php _e('Send Related Messages?', 'event_espresso'); ?></label> |
|
8 | 8 | <input type="checkbox" value="1" name="txn_reg_status_change[send_notifications]" checked=checked> |
9 | 9 | <br/> |
10 | 10 | <br /> |
11 | - <p class="description"><?php _e( 'Send a notification to registrants after processing?', 'event_espresso' );?></p><br/> |
|
11 | + <p class="description"><?php _e('Send a notification to registrants after processing?', 'event_espresso'); ?></p><br/> |
|
12 | 12 | <label></label> |
13 | 13 | </div> |
14 | 14 | <?php endif; ?> |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <div id="single-page-checkout" class="ui-widget"> |
2 | - <?php do_action( 'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header' )?> |
|
2 | + <?php do_action('AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header')?> |
|
3 | 3 | <div id="spco-attendee_information-dv" class="spco-step-dv"> |
4 | 4 | |
5 | 5 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | __('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.', 'event_espresso'), |
8 | 8 | '<br />', |
9 | 9 | '<span class="asterisk">*</span>' |
10 | - );?> |
|
10 | + ); ?> |
|
11 | 11 | </p> |
12 | 12 | |
13 | 13 | <?php |
@@ -15,20 +15,20 @@ discard block |
||
15 | 15 | $att_nmbr = 0; |
16 | 16 | $prev_event = ''; |
17 | 17 | |
18 | - if ( $event_queue['total_items'] > 0 ) { |
|
19 | - foreach ( $event_queue['items'] as $line_item => $item ) { |
|
18 | + if ($event_queue['total_items'] > 0) { |
|
19 | + foreach ($event_queue['items'] as $line_item => $item) { |
|
20 | 20 | $att_nmbr++; |
21 | - if ( $item['attendee_questions'] != '' ) { |
|
21 | + if ($item['attendee_questions'] != '') { |
|
22 | 22 | ?> |
23 | 23 | |
24 | - <div id="spco-attendee-panel-dv-<?php echo $line_item;?>" class="spco-attendee-panel-dv"> |
|
24 | + <div id="spco-attendee-panel-dv-<?php echo $line_item; ?>" class="spco-attendee-panel-dv"> |
|
25 | 25 | |
26 | - <?php if ( $item['ticket']->name() != $prev_event ) { ?> |
|
26 | + <?php if ($item['ticket']->name() != $prev_event) { ?> |
|
27 | 27 | <p class="spco-ticket-info-pg"> |
28 | 28 | <?php |
29 | - echo $item['ticket']->name() . ': ' . EEH_Template::format_currency( $item['ticket']->price(), FALSE, FALSE ); |
|
30 | - echo $item['ticket']->qty() ? ' x ' . $ticket_count[ $item['ticket']->ID() ] . __(' tickets', 'event_espresso') . ' = ' . EEH_Template::format_currency( $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ] ) : ''; |
|
31 | - echo $item['ticket']->description() ? '<br/>' . __('Ticket Details: ', 'event_espresso') . $item['ticket']->description() : ''; |
|
29 | + echo $item['ticket']->name().': '.EEH_Template::format_currency($item['ticket']->price(), FALSE, FALSE); |
|
30 | + echo $item['ticket']->qty() ? ' x '.$ticket_count[$item['ticket']->ID()].__(' tickets', 'event_espresso').' = '.EEH_Template::format_currency($item['ticket']->price() * $ticket_count[$item['ticket']->ID()]) : ''; |
|
31 | + echo $item['ticket']->description() ? '<br/>'.__('Ticket Details: ', 'event_espresso').$item['ticket']->description() : ''; |
|
32 | 32 | ?> |
33 | 33 | </p> |
34 | 34 | |
@@ -36,50 +36,50 @@ discard block |
||
36 | 36 | } |
37 | 37 | ?> |
38 | 38 | |
39 | - <fieldset id="spco-attendee-wrap-<?php echo $line_item;?>" class="spco-attendee-wrap-fs"> |
|
40 | - <legend class="spco-attendee-lgnd smaller-text lt-grey-text"><?php echo __('Registrant #', 'event_espresso') . $att_nmbr;?></legend> |
|
39 | + <fieldset id="spco-attendee-wrap-<?php echo $line_item; ?>" class="spco-attendee-wrap-fs"> |
|
40 | + <legend class="spco-attendee-lgnd smaller-text lt-grey-text"><?php echo __('Registrant #', 'event_espresso').$att_nmbr; ?></legend> |
|
41 | 41 | |
42 | 42 | <?php |
43 | 43 | //do an action before the questions output, including the item and count |
44 | - echo do_action( 'AHEE__registration_page_registration_questions__template___before_questions', $item, $att_nmbr ); |
|
44 | + echo do_action('AHEE__registration_page_registration_questions__template___before_questions', $item, $att_nmbr); |
|
45 | 45 | echo $item['attendee_questions']; |
46 | 46 | |
47 | - if ( $att_nmbr == 1 && $print_copy_info ) { ?> |
|
47 | + if ($att_nmbr == 1 && $print_copy_info) { ?> |
|
48 | 48 | |
49 | 49 | <input type="hidden" id="primary-attendee" name="qstn[primary_attendee]" value="<?php echo $prmy_att_input_name ?>" /> |
50 | 50 | |
51 | 51 | <div id="spco-copy-attendee-dv" class="hide-if-no-js"> |
52 | 52 | |
53 | 53 | <p class="spco-copy-all-attendee-pg"> |
54 | - <label class="wide"><?php _e('Use Registrant #1\'s information for ALL registrants', 'event_espresso');?> |
|
54 | + <label class="wide"><?php _e('Use Registrant #1\'s information for ALL registrants', 'event_espresso'); ?> |
|
55 | 55 | <input id="spco-copy-all-attendee-chk" class="spco-copy-all-attendee-chk ui-widget-content ui-corner-all" type="checkbox" value="copy-all"> |
56 | 56 | </label> |
57 | 57 | </p> |
58 | 58 | |
59 | 59 | <p class="spco-copy-attendee-pg"><?php _e('This option allows you to use the above information for all additional registrant question fields. <span>( Please note that some events may have additional questions that you may still be required to answer in order to complete your registration. )</span>', 'event_espresso'); ?></p> |
60 | 60 | |
61 | - <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('more options', 'event_espresso');?></a> |
|
61 | + <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('more options', 'event_espresso'); ?></a> |
|
62 | 62 | |
63 | 63 | <div id="more-attendee-copy-options-dv" class=""> |
64 | - <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('less options', 'event_espresso');?></a> |
|
64 | + <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" ><?php _e('less options', 'event_espresso'); ?></a> |
|
65 | 65 | <p class="spco-copy-attendee-pg"> |
66 | 66 | <?php _e('The following checkboxes allow you to use the above information for only the selected additional event registrants.', 'event_espresso'); ?> |
67 | 67 | </p> |
68 | 68 | |
69 | 69 | <?php |
70 | - foreach ( $additional_event_attendees as $event_attendees ) { |
|
71 | - foreach ( $event_attendees as $attendee ) { |
|
70 | + foreach ($additional_event_attendees as $event_attendees) { |
|
71 | + foreach ($event_attendees as $attendee) { |
|
72 | 72 | |
73 | - if ( $attendee['event_hdr'] ) { ?> |
|
73 | + if ($attendee['event_hdr']) { ?> |
|
74 | 74 | <h6 class="spco-copy-attendee-event-hdr"><?php echo $attendee['event_hdr']; ?></h6> |
75 | 75 | <?php } ?> |
76 | 76 | |
77 | 77 | <p class="event_form_field spco-copy-attendee-chk-pg"> |
78 | - <label><?php echo __('Attendee #', 'event_espresso') . $attendee['att_nmbr'];?> |
|
78 | + <label><?php echo __('Attendee #', 'event_espresso').$attendee['att_nmbr']; ?> |
|
79 | 79 | <input type="checkbox" |
80 | - id="spco-copy-attendee-chk-<?php echo $attendee['input_id'];?>" |
|
81 | - class="spco-copy-attendee-chk <?php echo $css_class;?>" |
|
82 | - value="<?php echo $attendee['input_id'];?>" |
|
80 | + id="spco-copy-attendee-chk-<?php echo $attendee['input_id']; ?>" |
|
81 | + class="spco-copy-attendee-chk <?php echo $css_class; ?>" |
|
82 | + value="<?php echo $attendee['input_id']; ?>" |
|
83 | 83 | /> |
84 | 84 | </label> |
85 | 85 | </p> |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | <?php |
96 | 96 | $print_copy_info = FALSE; |
97 | 97 | |
98 | - } else if ( $att_nmbr == 1 ) { |
|
98 | + } else if ($att_nmbr == 1) { |
|
99 | 99 | ?> |
100 | 100 | <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text"> |
101 | 101 | <?php _e('The above information will be used for any additional tickets/registrants.', 'event_espresso'); ?> |
@@ -109,13 +109,13 @@ discard block |
||
109 | 109 | </div> |
110 | 110 | <?php |
111 | 111 | } else { |
112 | - if ( $att_nmbr == 1 ) { |
|
112 | + if ($att_nmbr == 1) { |
|
113 | 113 | ?> |
114 | - <div id="spco-attendee-panel-dv-<?php echo $line_item;?>" class="spco-attendee-panel-dv"> |
|
114 | + <div id="spco-attendee-panel-dv-<?php echo $line_item; ?>" class="spco-attendee-panel-dv"> |
|
115 | 115 | <h3 id="event_title-<?php echo $item['ticket']->ID() ?>" class="big-event-title-hdr"> |
116 | 116 | <?php echo $item['event']->name(); ?> |
117 | 117 | </h3> |
118 | - <fieldset id="spco-attendee-wrap-<?php echo $line_item;?>" class="spco-attendee-wrap-fs"> |
|
118 | + <fieldset id="spco-attendee-wrap-<?php echo $line_item; ?>" class="spco-attendee-wrap-fs"> |
|
119 | 119 | <h6><?php _e('No information is required to attend this event. Please proceed to the next Step', 'event_espresso'); ?></h6> |
120 | 120 | <input type="hidden" id="no-questions" name="qstn[]" value="0" /> |
121 | 121 | </fieldset> |
@@ -7,14 +7,14 @@ |
||
7 | 7 | $is_php_valid = version_compare(phpversion(), $php_req_version, '>'); |
8 | 8 | $is_mysql_valid = version_compare($wpdb->db_version(), $mysql_req_version, '>'); |
9 | 9 | |
10 | - if (!version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | - echo '<p class="red_alert">' . __('This version of Event Espresso requires WordPress version', 'event_espresso') . ' ' . $wp_req_version . '+. ' . __('Please upgrade to the latest version of WordPress.', 'event_espresso') . '</p>'; |
|
10 | + if ( ! version_compare($wp_version, $wp_req_version, '>=')) { |
|
11 | + echo '<p class="red_alert">'.__('This version of Event Espresso requires WordPress version', 'event_espresso').' '.$wp_req_version.'+. '.__('Please upgrade to the latest version of WordPress.', 'event_espresso').'</p>'; |
|
12 | 12 | } |
13 | - if (!$is_php_valid) { |
|
14 | - echo '<p class="red_alert">' . __('Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', 'event_espresso') . ' ' . $php_req_version . '</p>'; |
|
13 | + if ( ! $is_php_valid) { |
|
14 | + echo '<p class="red_alert">'.__('Your version of PHP is out of date, please update to the latest version of PHP. <br>Required version of PHP:', 'event_espresso').' '.$php_req_version.'</p>'; |
|
15 | 15 | } |
16 | - if (!$is_mysql_valid) { |
|
17 | - echo '<p class="red_alert">' . __('Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', 'event_espresso') . ' ' . $mysql_req_version . '</p>'; |
|
16 | + if ( ! $is_mysql_valid) { |
|
17 | + echo '<p class="red_alert">'.__('Your version of MySQL is out of date, please update to the latest version of MySQL. <br>Required version of MySQL:', 'event_espresso').' '.$mysql_req_version.'</p>'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $query_args = array( |
@@ -6,42 +6,42 @@ |
||
6 | 6 | <li> |
7 | 7 | <strong>[ESPRESSO_EVENT_ATTENDEES]</strong><br> |
8 | 8 | <p class="description"> |
9 | - <?php _e('With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event. If it is used in Event Description, then it will show the attendees for that event.', 'event_espresso' ); ?> |
|
9 | + <?php _e('With no parameters, this shows the attendees for the earliest active event, or if no active event, the earliest upcoming event. If it is used in Event Description, then it will show the attendees for that event.', 'event_espresso'); ?> |
|
10 | 10 | </p> |
11 | 11 | <br> |
12 | 12 | </li> |
13 | 13 | <li> |
14 | 14 | <strong>[ESPRESSO_EVENT_ATTENDEES event_id=30]</strong><br> |
15 | 15 | <p class="description"> |
16 | - <?php _e('Will list the attendees for a specific event.', 'event_espresso' ); ?> |
|
16 | + <?php _e('Will list the attendees for a specific event.', 'event_espresso'); ?> |
|
17 | 17 | </p> |
18 | 18 | <br> |
19 | 19 | </li> |
20 | 20 | <li> |
21 | 21 | <strong>[ESPRESSO_EVENT_ATTENDEES datetime_id=245]</strong><br> |
22 | 22 | <p class="description"> |
23 | - <?php _e('Will list the attendees for a specific datetime.', 'event_espresso' ); ?> |
|
23 | + <?php _e('Will list the attendees for a specific datetime.', 'event_espresso'); ?> |
|
24 | 24 | </p> |
25 | 25 | <br> |
26 | 26 | </li> |
27 | 27 | <li> |
28 | 28 | <strong>[ESPRESSO_EVENT_ATTENDEES ticket_id=34]</strong><br> |
29 | 29 | <p class="description"> |
30 | - <?php _e('Will list the attendees for a specific ticket.', 'event_espresso' ); ?> |
|
30 | + <?php _e('Will list the attendees for a specific ticket.', 'event_espresso'); ?> |
|
31 | 31 | </p> |
32 | 32 | <br> |
33 | 33 | </li> |
34 | 34 | <li> |
35 | 35 | <strong>[ESPRESSO_EVENT_ATTENDEES status=RAP]</strong><br> |
36 | 36 | <p class="description"> |
37 | - <?php _e('You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status. Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.', 'event_espresso' ); ?> |
|
37 | + <?php _e('You can list attendees that have a specific registration status (use status code) or use "all" to return all attendees regardless of status. Default when you don\'t have this parameter set is to only return attendees attached to approved contacts.', 'event_espresso'); ?> |
|
38 | 38 | </p> |
39 | 39 | <p> |
40 | 40 | <?php _e('The statuses you can use are:', 'event_espresso'); ?> |
41 | 41 | <br> |
42 | 42 | <?php |
43 | - foreach ( EEM_Registration::reg_status_array( array(), true ) as $status_code => $status_label ) { |
|
44 | - echo '<strong>' . $status_code . ':</strong>' . ' ' . $status_label . '<br>'; |
|
43 | + foreach (EEM_Registration::reg_status_array(array(), true) as $status_code => $status_label) { |
|
44 | + echo '<strong>'.$status_code.':</strong>'.' '.$status_label.'<br>'; |
|
45 | 45 | } |
46 | 46 | ?> |
47 | 47 |
@@ -67,11 +67,11 @@ |
||
67 | 67 | </li> |
68 | 68 | <li style="list-style-type: none;"> |
69 | 69 | <strong><?php _e('View Registration Details <span class="dashicons dashicons-clipboard"></span>', 'event_espresso'); ?></strong><br /> |
70 | -<?php echo sprintf(__('Clicking this icon will take you to the registration page for this transaction. You can also get there via the %sRegistrations page%s.', 'event_espresso'), '<a href="admin.php?page=espresso_registrations">','</a>'); ?> |
|
70 | +<?php echo sprintf(__('Clicking this icon will take you to the registration page for this transaction. You can also get there via the %sRegistrations page%s.', 'event_espresso'), '<a href="admin.php?page=espresso_registrations">', '</a>'); ?> |
|
71 | 71 | </li> |
72 | 72 | <li style="list-style-type: none;"> |
73 | 73 | <strong><?php _e('Send Payment Reminder <span class="dashicons dashicons-email-alt"></span>', 'event_espresso'); ?></strong><br /> |
74 | -<?php echo sprintf(__('Emails the primary registrant the Payment Reminder message. This is set up in the %sMessages page%s.', 'event_espresso'),'<a href="admin.php?page=espresso_messages">','</a>'); ?> |
|
74 | +<?php echo sprintf(__('Emails the primary registrant the Payment Reminder message. This is set up in the %sMessages page%s.', 'event_espresso'), '<a href="admin.php?page=espresso_messages">', '</a>'); ?> |
|
75 | 75 | </li> |
76 | 76 | </ul> |
77 | 77 | </li> |
@@ -1,5 +1,5 @@ discard block |
||
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 | /** |
@@ -117,45 +117,45 @@ discard block |
||
117 | 117 | |
118 | 118 | |
119 | 119 | protected function _start() { |
120 | - $content = '<h3>' . __('View Transaction', 'event_espresso') . '</h3>'; |
|
121 | - $content .= '<p>' . __('This tour of the View Transaction page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
120 | + $content = '<h3>'.__('View Transaction', 'event_espresso').'</h3>'; |
|
121 | + $content .= '<p>'.__('This tour of the View Transaction page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
122 | 122 | return $content; |
123 | 123 | } |
124 | 124 | |
125 | 125 | protected function _txn_date_h2_stop() { |
126 | - return '<p>' . __('This is the date that the transaction occurred on.', 'event_espresso') . '</p>'; |
|
126 | + return '<p>'.__('This is the date that the transaction occurred on.', 'event_espresso').'</p>'; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | protected function _txn_status_h2_stop() { |
130 | - return '<p>' . __('View current status of the transaction. Available statuses are Complete, Failed, Incomplete, and Overpaid.', 'event_espresso') . '</p>'; |
|
130 | + return '<p>'.__('View current status of the transaction. Available statuses are Complete, Failed, Incomplete, and Overpaid.', 'event_espresso').'</p>'; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | protected function _txn_amount_due_h2_stop() { |
134 | - return '<p>' . __('View the amount due for a transaction (will not appear if the transaction has been paid in full).', 'event_espresso') . '</p>'; |
|
134 | + return '<p>'.__('View the amount due for a transaction (will not appear if the transaction has been paid in full).', 'event_espresso').'</p>'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | protected function _txn_details_metabox_stop() { |
138 | - return '<p>' . __('The transaction details area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total. You can also view details about any payments made towards this transaction.', 'event_espresso') . '</p>'; |
|
138 | + return '<p>'.__('The transaction details area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total. You can also view details about any payments made towards this transaction.', 'event_espresso').'</p>'; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | protected function _txn_session_info_stop() { |
142 | - return '<p>' . __('You can view additional information about the transaction by clicking on the link below. Examples of available information includes IP Address and User Agent.', 'event_espresso') . '</p>'; |
|
142 | + return '<p>'.__('You can view additional information about the transaction by clicking on the link below. Examples of available information includes IP Address and User Agent.', 'event_espresso').'</p>'; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | protected function _txn_attendees_metabox_stop() { |
146 | - return '<p>' . __('View information about registrants that are linked to this transaction.', 'event_espresso') . '</p>'; |
|
146 | + return '<p>'.__('View information about registrants that are linked to this transaction.', 'event_espresso').'</p>'; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | protected function _txn_primary_reg_metabox_stop() { |
150 | - return '<p>' . __('View contact details on the primary registrant who is linked to this transaction.', 'event_espresso') . '</p>'; |
|
150 | + return '<p>'.__('View contact details on the primary registrant who is linked to this transaction.', 'event_espresso').'</p>'; |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | protected function _txn_billing_metabox_stop() { |
154 | - return '<p>' . __('View billing information for this transaction.', 'event_espresso') . '</p>'; |
|
154 | + return '<p>'.__('View billing information for this transaction.', 'event_espresso').'</p>'; |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | protected function _event_name_stop() { |
158 | - return '<p>' . __('event name', 'event_espresso') . '</p>'; |
|
158 | + return '<p>'.__('event name', 'event_espresso').'</p>'; |
|
159 | 159 | } |
160 | 160 | |
161 | 161 | } |
162 | 162 | \ No newline at end of file |
@@ -1,6 +1,7 @@ |
||
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 | 6 | /** |
6 | 7 | * Event Espresso |
@@ -1,5 +1,5 @@ discard block |
||
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 | /** |
@@ -60,16 +60,16 @@ discard block |
||
60 | 60 | |
61 | 61 | |
62 | 62 | protected function _start() { |
63 | - $content = '<h3>' . __('Transaction Reports', 'event_espresso') . '</h3>'; |
|
64 | - $content .= '<p>' . __('This tour of the Transaction Reports page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
63 | + $content = '<h3>'.__('Transaction Reports', 'event_espresso').'</h3>'; |
|
64 | + $content .= '<p>'.__('This tour of the Transaction Reports page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
65 | 65 | return $content; |
66 | 66 | } |
67 | 67 | |
68 | 68 | protected function _txn_per_day_report() { |
69 | - return '<p>' . __('This graph shows revenue for each day.', 'event_espresso') . '</p>'; |
|
69 | + return '<p>'.__('This graph shows revenue for each day.', 'event_espresso').'</p>'; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | protected function _txn_per_event_report() { |
73 | - return '<p>' . __('This graph shows revenue for each event.', 'event_espresso') . '</p>'; |
|
73 | + return '<p>'.__('This graph shows revenue for each event.', 'event_espresso').'</p>'; |
|
74 | 74 | } |
75 | 75 | } |
76 | 76 | \ No newline at end of file |
@@ -1,6 +1,7 @@ |
||
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 | 6 | /** |
6 | 7 | * Event Espresso |
@@ -1,5 +1,5 @@ discard block |
||
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 | /** |
@@ -144,53 +144,53 @@ discard block |
||
144 | 144 | |
145 | 145 | |
146 | 146 | protected function _start() { |
147 | - $content = '<h3>' . __('Transactions Overview', 'event_espresso') . '</h3>'; |
|
148 | - $content .= '<p>' . __('This tour of the Transactions Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>'; |
|
147 | + $content = '<h3>'.__('Transactions Overview', 'event_espresso').'</h3>'; |
|
148 | + $content .= '<p>'.__('This tour of the Transactions Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>'; |
|
149 | 149 | return $content; |
150 | 150 | } |
151 | 151 | |
152 | 152 | protected function _txn_id_stop() { |
153 | - return '<p>' . __('View transaction ID. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
153 | + return '<p>'.__('View transaction ID. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | protected function _txn_timestamp_stop() { |
157 | - return '<p>' . __('View transaction date. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
157 | + return '<p>'.__('View transaction date. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | protected function _txn_total_stop() { |
161 | - return '<p>' . __('View total for transaction.', 'event_espresso') . '</p>'; |
|
161 | + return '<p>'.__('View total for transaction.', 'event_espresso').'</p>'; |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | protected function _txn_paid_stop() { |
165 | - return '<p>' . __('View amount paid for transaction.', 'event_espresso') . '</p>'; |
|
165 | + return '<p>'.__('View amount paid for transaction.', 'event_espresso').'</p>'; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | protected function _attendee_name_stop() { |
169 | - return '<p>' . __('View name for the primary registrant. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
169 | + return '<p>'.__('View name for the primary registrant. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | protected function _att_email_stop() { |
173 | - return '<p>' . __('View email address for primary registrant. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
173 | + return '<p>'.__('View email address for primary registrant. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | protected function _event_name_stop() { |
177 | - return '<p>' . __('View name of event. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>'; |
|
177 | + return '<p>'.__('View name of event. Can be sorted in ascending or descending order.', 'event_espresso').'</p>'; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | protected function _actions_stop() { |
181 | - return '<p>' . __('Perform an action to a transaction. See legend in bottom left corner.', 'event_espresso') . '</p>'; |
|
181 | + return '<p>'.__('Perform an action to a transaction. See legend in bottom left corner.', 'event_espresso').'</p>'; |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | protected function _legend_stop() { |
185 | - return '<p>' . __('This legend that describes the actions available in the actions column. Also shows available statuses for a transaction.', 'event_espresso') . '</p>'; |
|
185 | + return '<p>'.__('This legend that describes the actions available in the actions column. Also shows available statuses for a transaction.', 'event_espresso').'</p>'; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | protected function _stop_about_filters() { |
189 | - return '<p>' . __('Filter transactions by date by selecting two dates and clicking on the filter button. You can clear your current date selection by clicking on the reset filters button.', 'event_espresso') . '</p>'; |
|
189 | + return '<p>'.__('Filter transactions by date by selecting two dates and clicking on the filter button. You can clear your current date selection by clicking on the reset filters button.', 'event_espresso').'</p>'; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | protected function _search_stop() { |
193 | - return '<p>' . __('Search through transactions. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, Ticket Description, Payment Method, Payment Gateway, Transaction Details, and Transaction Session.', 'event_espresso') . '</p>'; |
|
193 | + return '<p>'.__('Search through transactions. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, Ticket Description, Payment Method, Payment Gateway, Transaction Details, and Transaction Session.', 'event_espresso').'</p>'; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | } |
197 | 197 | \ No newline at end of file |
@@ -1,6 +1,7 @@ |
||
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 | 6 | /** |
6 | 7 | * Event Espresso |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | protected function _set_tips_array() { |
32 | 32 | $this->_qtipsa = array( |
33 | 33 | 0 => array( |
34 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_approved, |
|
35 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_approved, |
|
34 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_approved, |
|
35 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_approved, |
|
36 | 36 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_approved), |
37 | 37 | 'options' => array( |
38 | 38 | 'position' => array( |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | ) |
42 | 42 | ), |
43 | 43 | 1 => array( |
44 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_pending, |
|
45 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_pending, |
|
44 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_pending, |
|
45 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_pending, |
|
46 | 46 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_pending), |
47 | 47 | 'options' => array( |
48 | 48 | 'position' => array( |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | ) |
52 | 52 | ), |
53 | 53 | 2 => array( |
54 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled, |
|
55 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_cancelled, |
|
54 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_cancelled, |
|
55 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_cancelled, |
|
56 | 56 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_cancelled), |
57 | 57 | 'options' => array( |
58 | 58 | 'position' => array( |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | ) |
62 | 62 | ), |
63 | 63 | 3 => array( |
64 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_declined, |
|
65 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_declined, |
|
64 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_declined, |
|
65 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_declined, |
|
66 | 66 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_declined), |
67 | 67 | 'options' => array( |
68 | 68 | 'position' => array( |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | ) |
72 | 72 | ), |
73 | 73 | 4 => array( |
74 | - 'content_id' => 'payment-status-' . EEM_Payment::status_id_failed, |
|
75 | - 'target' => '.pymt-status-' . EEM_Payment::status_id_failed, |
|
74 | + 'content_id' => 'payment-status-'.EEM_Payment::status_id_failed, |
|
75 | + 'target' => '.pymt-status-'.EEM_Payment::status_id_failed, |
|
76 | 76 | 'content' => $this->_payment_status_legend(EEM_Payment::status_id_failed), |
77 | 77 | 'options' => array( |
78 | 78 | 'position' => array( |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @param EEM_Payment constant $status What status is set (by class) |
93 | 93 | * @return string The status legend with the related status highlighted |
94 | 94 | */ |
95 | - private function _payment_status_legend( $status ) { |
|
95 | + private function _payment_status_legend($status) { |
|
96 | 96 | |
97 | 97 | $status_array = array( |
98 | 98 | 'approved' => EEM_Payment::status_id_approved, |
@@ -102,6 +102,6 @@ discard block |
||
102 | 102 | 'failed' => EEM_Payment::status_id_failed, |
103 | 103 | ); |
104 | 104 | |
105 | - return EEH_Template::status_legend( $status_array, $status ); |
|
105 | + return EEH_Template::status_legend($status_array, $status); |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | \ No newline at end of file |