| @@ 2222-2240 (lines=19) @@ | ||
| 2219 | array('EE_Registration' => $this->_registration) |
|
| 2220 | ); |
|
| 2221 | $attendee = $this->_registration->attendee(); |
|
| 2222 | if (EE_Registry::instance()->CAP->current_user_can( |
|
| 2223 | 'ee_read_transaction', |
|
| 2224 | 'espresso_transactions_view_transaction' |
|
| 2225 | )) { |
|
| 2226 | $this->_template_args['view_transaction_button'] = EEH_Template::get_button_or_link( |
|
| 2227 | EE_Admin_Page::add_query_args_and_nonce( |
|
| 2228 | array( |
|
| 2229 | 'action' => 'view_transaction', |
|
| 2230 | 'TXN_ID' => $transaction->ID(), |
|
| 2231 | ), |
|
| 2232 | TXN_ADMIN_URL |
|
| 2233 | ), |
|
| 2234 | esc_html__(' View Transaction', 'event_espresso'), |
|
| 2235 | 'button secondary-button right', |
|
| 2236 | 'dashicons dashicons-cart' |
|
| 2237 | ); |
|
| 2238 | } else { |
|
| 2239 | $this->_template_args['view_transaction_button'] = ''; |
|
| 2240 | } |
|
| 2241 | if ($attendee instanceof EE_Attendee |
|
| 2242 | && EE_Registry::instance()->CAP->current_user_can( |
|
| 2243 | 'ee_send_message', |
|
| @@ 974-992 (lines=19) @@ | ||
| 971 | : ''; |
|
| 972 | } |
|
| 973 | ||
| 974 | if (EE_Registry::instance()->CAP->current_user_can( |
|
| 975 | 'ee_edit_payments', |
|
| 976 | 'espresso_transactions_recalculate_line_items' |
|
| 977 | ) |
|
| 978 | ) { |
|
| 979 | $actions['recalculate_line_items'] = EEH_Template::get_button_or_link( |
|
| 980 | EE_Admin_Page::add_query_args_and_nonce( |
|
| 981 | array( |
|
| 982 | 'action' => 'espresso_recalculate_line_items', |
|
| 983 | 'TXN_ID' => $this->_transaction->ID(), |
|
| 984 | 'redirect_to' => 'view_transaction', |
|
| 985 | ), |
|
| 986 | TXN_ADMIN_URL |
|
| 987 | ), |
|
| 988 | esc_html__(' Recalculate Taxes and Total', 'event_espresso'), |
|
| 989 | 'button secondary-button', |
|
| 990 | 'dashicons dashicons-update' |
|
| 991 | ); |
|
| 992 | } |
|
| 993 | ||
| 994 | if ($primary_registration instanceof EE_Registration |
|
| 995 | && EEH_MSG_Template::is_mt_active('receipt') |
|