| @@ 380-387 (lines=8) @@ | ||
| 377 | $actionlinks[] = '<a href="' . $view_link . '" title="' . esc_attr__('View Event', 'event_espresso') . '" target="_blank">'; |
|
| 378 | $actionlinks[] = '<div class="dashicons dashicons-search"></div></a>'; |
|
| 379 | ||
| 380 | if ( EE_Registry::instance()->CAP->current_user_can( 'ee_edit_event', 'espresso_events_edit', $item->ID() ) ) { |
|
| 381 | $edit_query_args = array( |
|
| 382 | 'action' => 'edit', |
|
| 383 | 'post' => $item->ID() |
|
| 384 | ); |
|
| 385 | $edit_link = EE_Admin_Page::add_query_args_and_nonce( $edit_query_args, EVENTS_ADMIN_URL ); |
|
| 386 | $actionlinks[] = '<a href="' . $edit_link . '" title="' . esc_attr__('Edit Event', 'event_espresso') . '"><div class="ee-icon ee-icon-calendar-edit"></div></a>'; |
|
| 387 | } |
|
| 388 | ||
| 389 | if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_registration', 'espresso_registrations_view_registration', $item->ID() ) ) { |
|
| 390 | $attendees_query_args = array( |
|
| @@ 389-396 (lines=8) @@ | ||
| 386 | $actionlinks[] = '<a href="' . $edit_link . '" title="' . esc_attr__('Edit Event', 'event_espresso') . '"><div class="ee-icon ee-icon-calendar-edit"></div></a>'; |
|
| 387 | } |
|
| 388 | ||
| 389 | if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_registration', 'espresso_registrations_view_registration', $item->ID() ) ) { |
|
| 390 | $attendees_query_args = array( |
|
| 391 | 'action' => 'default', |
|
| 392 | 'event_id' => $item->ID() |
|
| 393 | ); |
|
| 394 | $attendees_link = EE_Admin_Page::add_query_args_and_nonce( $attendees_query_args, REG_ADMIN_URL ); |
|
| 395 | $actionlinks[] = '<a href="' . $attendees_link . '" title="' . esc_attr__('View Registrants', 'event_espresso') . '"><div class="dashicons dashicons-groups"></div></a>'; |
|
| 396 | } |
|
| 397 | ||
| 398 | $actionlinks = apply_filters( 'FHEE__Events_Admin_List_Table__column_actions__action_links', $actionlinks, $item ); |
|
| 399 | ||
| @@ 390-397 (lines=8) @@ | ||
| 387 | ||
| 388 | ||
| 389 | public function extra_list_table_actions( $actionlinks, $event ) { |
|
| 390 | if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_registrations', 'espresso_registrations_reports', $event->ID() ) ) { |
|
| 391 | $reports_query_args = array( |
|
| 392 | 'action' => 'reports', |
|
| 393 | 'EVT_ID' => $event->ID() |
|
| 394 | ); |
|
| 395 | $reports_link = EE_Admin_Page::add_query_args_and_nonce( $reports_query_args, REG_ADMIN_URL ); |
|
| 396 | $actionlinks[] = '<a href="' . $reports_link . '" title="' . esc_attr__('View Report', 'event_espresso') . '"><div class="dashicons dashicons-chart-bar"></div></a>' . "\n\t"; |
|
| 397 | } |
|
| 398 | if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_global_messages', 'view_filtered_messages' ) ) { |
|
| 399 | EE_Registry::instance()->load_helper( 'MSG_Template' ); |
|
| 400 | $actionlinks[] = EEH_MSG_Template::get_message_action_link( |
|