@@ -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 |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | <table id="admin-primary-mbox-txn-details-tbl" class="form-table"> |
4 | 4 | <tbody> |
5 | - <?php foreach ( $txn_details as $key => $txn_detail ) : ?> |
|
5 | + <?php foreach ($txn_details as $key => $txn_detail) : ?> |
|
6 | 6 | <tr> |
7 | 7 | <th> |
8 | - <label for="<?php echo $key;?>"><?php echo $txn_detail['label'];?></label> |
|
8 | + <label for="<?php echo $key; ?>"><?php echo $txn_detail['label']; ?></label> |
|
9 | 9 | </th> |
10 | 10 | <td> |
11 | - <?php echo $txn_detail['value'];?> |
|
11 | + <?php echo $txn_detail['value']; ?> |
|
12 | 12 | </td> |
13 | 13 | </tr> |
14 | 14 | <?php endforeach; // $txn_details?> |
@@ -1,19 +1,19 @@ |
||
1 | 1 | |
2 | 2 | <ul class="subsubsub"> |
3 | - <li class="all"><a class="current" href="<?php echo $view_all_url;?>">View All <span class="count">(<?php echo $table_rows; ?>)</span></a></li> |
|
3 | + <li class="all"><a class="current" href="<?php echo $view_all_url; ?>">View All <span class="count">(<?php echo $table_rows; ?>)</span></a></li> |
|
4 | 4 | </ul> |
5 | 5 | |
6 | 6 | <div id="txn-filters-dv"> |
7 | - <form id="txn-filters-frm" action="<?php echo $txn_overview_url;?>" method="post" name="txn-filters-frm"> |
|
8 | - <label for="txn-filter-start-date"><?php _e( 'Display Transactions from ', 'event_espresso' ); ?></label> |
|
7 | + <form id="txn-filters-frm" action="<?php echo $txn_overview_url; ?>" method="post" name="txn-filters-frm"> |
|
8 | + <label for="txn-filter-start-date"><?php _e('Display Transactions from ', 'event_espresso'); ?></label> |
|
9 | 9 | <input id="txn-filter-start-date" class="datepicker" type="text" value="<?php echo $start_date; ?>" name="txn-filter-start-date" size="15"/> |
10 | - <label for="txn-filter-end-date"> <?php _e( 'until', 'event_espresso' ); ?> </label> |
|
10 | + <label for="txn-filter-end-date"> <?php _e('until', 'event_espresso'); ?> </label> |
|
11 | 11 | <input id="txn-filter-end-date" class="datepicker" type="text" value="<?php echo $end_date; ?>" name="txn-filter-end-date" size="15"/> |
12 | 12 | <input id="submit-txn-filters-sbmt" class="button-secondary" type="submit" value="Filter Months"> |
13 | 13 | </form> |
14 | 14 | </div> |
15 | 15 | |
16 | - <form id="transactions-overview-frm" action="<?php echo $txn_overview_url;?>" method="get"> |
|
16 | + <form id="transactions-overview-frm" action="<?php echo $txn_overview_url; ?>" method="get"> |
|
17 | 17 | <input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>" /> |
18 | 18 | <input type="hidden" id="per_page" name="per_page" value="" /> |
19 | 19 | <?php echo $list_table->display(); ?> |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <div class="wrap"> |
2 | 2 | |
3 | - <h2><?php esc_attr_e( 'Event Espresso', 'event_espresso' ); ?> - <?php esc_attr_e( $admin_page_title, 'event_espresso' ); ?></h2> |
|
3 | + <h2><?php esc_attr_e('Event Espresso', 'event_espresso'); ?> - <?php esc_attr_e($admin_page_title, 'event_espresso'); ?></h2> |
|
4 | 4 | |
5 | 5 | <h2 class="nav-tab-wrapper"> |
6 | 6 | <a class="nav-tab<?php echo $tab_active_overview; ?>" href="<?php echo $tab_url_overview; ?>"><?php echo $tab_lnk_overview; ?></a> |
7 | - <?php if ( $tab_details ) : ?> |
|
7 | + <?php if ($tab_details) : ?> |
|
8 | 8 | <a class="nav-tab<?php echo $tab_active_details; ?>" href="<?php echo $tab_url_details; ?>"><?php echo $tab_lnk_details; ?></a> |
9 | 9 | <?php endif; ?> |
10 | 10 | <a class="nav-tab<?php echo $tab_active_reports; ?>" href="<?php echo $tab_url_reports; ?>"><?php echo $tab_lnk_reports; ?></a> |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ), |
84 | 84 | 7 => array( |
85 | 85 | 'content_id' => 'tkt-status-archived', |
86 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::archived, |
|
86 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::archived, |
|
87 | 87 | 'content' => $this->_ticket_status_legend(EE_Ticket::archived), |
88 | 88 | 'options' => array( |
89 | 89 | 'position' => array( |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | ), |
97 | 97 | 8 => array( |
98 | 98 | 'content_id' => 'tkt-status-expired', |
99 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::expired, |
|
99 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::expired, |
|
100 | 100 | 'content' => $this->_ticket_status_legend(EE_Ticket::expired), |
101 | 101 | 'options' => array( |
102 | 102 | 'position' => array( |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | ), |
110 | 110 | 9 => array( |
111 | 111 | 'content_id' => 'tkt-status-sold_out', |
112 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::sold_out, |
|
112 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::sold_out, |
|
113 | 113 | 'content' => $this->_ticket_status_legend(EE_Ticket::sold_out), |
114 | 114 | 'options' => array( |
115 | 115 | 'position' => array( |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ), |
123 | 123 | 10 => array( |
124 | 124 | 'content_id' => 'tkt-status-pending', |
125 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::pending, |
|
125 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::pending, |
|
126 | 126 | 'content' => $this->_ticket_status_legend(EE_Ticket::pending), |
127 | 127 | 'options' => array( |
128 | 128 | 'position' => array( |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | ), |
136 | 136 | 11 => array( |
137 | 137 | 'content_id' => 'tkt-status-onsale', |
138 | - 'target' => '.ticket-row .tkt-status-' . EE_Ticket::onsale, |
|
138 | + 'target' => '.ticket-row .tkt-status-'.EE_Ticket::onsale, |
|
139 | 139 | 'content' => $this->_ticket_status_legend(EE_Ticket::onsale), |
140 | 140 | 'options' => array( |
141 | 141 | 'position' => array( |
@@ -178,8 +178,8 @@ discard block |
||
178 | 178 | |
179 | 179 | |
180 | 180 | private function _get_taxable_info_content() { |
181 | - $price_admin_link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), PRICING_ADMIN_URL ); |
|
182 | - return '<p>' . sprintf( __('Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', 'event_espresso'), '<a href="' . $price_admin_link . '" title="' . esc_attr__('Pricing Admin Page', 'event_espresso') . '">', '</a>' ) . '</p>'; |
|
181 | + $price_admin_link = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), PRICING_ADMIN_URL); |
|
182 | + return '<p>'.sprintf(__('Clicking the taxable ticket toggle checkbox has enabled taxes for this ticket. What this means is that when a person purchases this ticket, the tax will be applied to all prices on this ticket. You can edit the existing tax price modifier that was setup in Event Espresso by going to %sDefault Pricing Admin Page%s (labelled "Pricing" in the Event Espresso Menu)', 'event_espresso'), '<a href="'.$price_admin_link.'" title="'.esc_attr__('Pricing Admin Page', 'event_espresso').'">', '</a>').'</p>'; |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * @param EE_Ticket constant $status What status is set (by class) |
188 | 188 | * @return string The status legend with the related status highlighted |
189 | 189 | */ |
190 | - private function _ticket_status_legend( $status ) { |
|
190 | + private function _ticket_status_legend($status) { |
|
191 | 191 | |
192 | 192 | $status_array = array( |
193 | 193 | 'archived' => EE_Ticket::archived, |
@@ -197,6 +197,6 @@ discard block |
||
197 | 197 | 'onsale' => EE_Ticket::onsale |
198 | 198 | ); |
199 | 199 | |
200 | - return EEH_Template::status_legend( $status_array, $status ); |
|
200 | + return EEH_Template::status_legend($status_array, $status); |
|
201 | 201 | } |
202 | 202 | } |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <a class='clone-date-time dtm-inp-btn' rel='<?php echo $row; ?>' title='<?php esc_attr_e('Clone this Event Date and Time', 'event_espresso'); ?>' style='position:relative; top:5px; margin:0 0 0 10px; font-size:.9em; cursor:pointer;'> |
2 | - <img src='<?php echo EE_IMAGES_URL;?>clone-trooper-16x16.png' width='16' height='16' alt='<?php esc_attr_e('clone', 'event_espresso'); ?>'/> |
|
2 | + <img src='<?php echo EE_IMAGES_URL; ?>clone-trooper-16x16.png' width='16' height='16' alt='<?php esc_attr_e('clone', 'event_espresso'); ?>'/> |
|
3 | 3 | </a> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if ( EE_Registry::instance()->CFG->admin->use_event_timezones ) : ?> |
|
1 | +<?php if (EE_Registry::instance()->CFG->admin->use_event_timezones) : ?> |
|
2 | 2 | <div id="timezones-datetimes-dv" class=""> |
3 | 3 | <span class="run-in"> <?php _e('Current Time for Event Timezone:', 'event_espresso'); ?> </span> |
4 | 4 | <span class="current-date"> <?php echo $current_date; ?></span> |
@@ -6,27 +6,27 @@ |
||
6 | 6 | <?php |
7 | 7 | $settings_array = array( |
8 | 8 | 'max_registrants' => '<p> |
9 | - <label for="max-registrants">' . __('Maximum number of tickets allowed per order for this event: ', 'event_espresso') . '</label> |
|
10 | - <input class="ee-numeric" type="text" id="max-registrants" name="additional_limit" value="' . $additional_limit . '" size="4" /> |
|
9 | + <label for="max-registrants">' . __('Maximum number of tickets allowed per order for this event: ', 'event_espresso').'</label> |
|
10 | + <input class="ee-numeric" type="text" id="max-registrants" name="additional_limit" value="' . $additional_limit.'" size="4" /> |
|
11 | 11 | </p>', |
12 | 12 | 'additional_registration_options' => $additional_registration_options, |
13 | 13 | 'display_ticket_selector' => '<p> |
14 | - <label>' . __('Display Ticket Selector', 'event_espresso') . '</label>' . $display_ticket_selector . '</p>', |
|
14 | + <label>' . __('Display Ticket Selector', 'event_espresso').'</label>'.$display_ticket_selector.'</p>', |
|
15 | 15 | 'alternative_registration_page' => '<p> |
16 | - <label>' . __('Alternative Registration Page', 'event_espresso') . '</label> |
|
17 | - <input name="externalURL" size="20" type="text" value="' . $_event->external_url() . '"> |
|
16 | + <label>' . __('Alternative Registration Page', 'event_espresso').'</label> |
|
17 | + <input name="externalURL" size="20" type="text" value="' . $_event->external_url().'"> |
|
18 | 18 | </p>', |
19 | 19 | 'event_phone_number' => '<p> |
20 | - <label>' . __('Event Phone Number', 'event_espresso') . '</label> |
|
21 | - <input name="event_phone" size="20" type="text" value="' . $_event->phone() . '"> |
|
20 | + <label>' . __('Event Phone Number', 'event_espresso').'</label> |
|
21 | + <input name="event_phone" size="20" type="text" value="' . $_event->phone().'"> |
|
22 | 22 | </p>', |
23 | 23 | 'default_registration_status' => '<p> |
24 | - <label>' . __('Default Registration Status', 'event_espresso') . '</label>' . $EVT_default_registration_status . '</p>' |
|
24 | + <label>' . __('Default Registration Status', 'event_espresso').'</label>'.$EVT_default_registration_status.'</p>' |
|
25 | 25 | ); |
26 | 26 | //filter |
27 | - $settings_array = apply_filters( 'FHEE__caffeinated_event_registration_options__template__settings', $settings_array ); |
|
27 | + $settings_array = apply_filters('FHEE__caffeinated_event_registration_options__template__settings', $settings_array); |
|
28 | 28 | |
29 | 29 | //echo |
30 | - foreach ( $settings_array as $item ) { |
|
30 | + foreach ($settings_array as $item) { |
|
31 | 31 | echo $item; |
32 | 32 | } |