@@ 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', |
@@ 955-973 (lines=19) @@ | ||
952 | : ''; |
|
953 | } |
|
954 | ||
955 | if (EE_Registry::instance()->CAP->current_user_can( |
|
956 | 'ee_edit_payments', |
|
957 | 'espresso_transactions_recalculate_line_items' |
|
958 | ) |
|
959 | ) { |
|
960 | $actions['recalculate_line_items'] = EEH_Template::get_button_or_link( |
|
961 | EE_Admin_Page::add_query_args_and_nonce( |
|
962 | array( |
|
963 | 'action' => 'espresso_recalculate_line_items', |
|
964 | 'TXN_ID' => $this->_transaction->ID(), |
|
965 | 'redirect_to' => 'view_transaction', |
|
966 | ), |
|
967 | TXN_ADMIN_URL |
|
968 | ), |
|
969 | esc_html__(' Recalculate Taxes and Total', 'event_espresso'), |
|
970 | 'button secondary-button', |
|
971 | 'dashicons dashicons-update' |
|
972 | ); |
|
973 | } |
|
974 | ||
975 | if ($primary_registration instanceof EE_Registration |
|
976 | && EEH_MSG_Template::is_mt_active('receipt') |