| @@ 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') | |
| @@ 2212-2230 (lines=19) @@ | ||
| 2209 |             array('EE_Registration' => $this->_registration) | |
| 2210 | ); | |
| 2211 | $attendee = $this->_registration->attendee(); | |
| 2212 | if (EE_Registry::instance()->CAP->current_user_can( | |
| 2213 | 'ee_read_transaction', | |
| 2214 | 'espresso_transactions_view_transaction' | |
| 2215 |         )) { | |
| 2216 | $this->_template_args['view_transaction_button'] = EEH_Template::get_button_or_link( | |
| 2217 | EE_Admin_Page::add_query_args_and_nonce( | |
| 2218 | array( | |
| 2219 | 'action' => 'view_transaction', | |
| 2220 | 'TXN_ID' => $transaction->ID(), | |
| 2221 | ), | |
| 2222 | TXN_ADMIN_URL | |
| 2223 | ), | |
| 2224 |                 esc_html__(' View Transaction', 'event_espresso'), | |
| 2225 | 'button secondary-button right', | |
| 2226 | 'dashicons dashicons-cart' | |
| 2227 | ); | |
| 2228 |         } else { | |
| 2229 | $this->_template_args['view_transaction_button'] = ''; | |
| 2230 | } | |
| 2231 | if ($attendee instanceof EE_Attendee | |
| 2232 | && EE_Registry::instance()->CAP->current_user_can( | |
| 2233 | 'ee_send_message', | |