@@ 453-461 (lines=9) @@ | ||
450 | 'desc' => esc_html__('Event Reports', 'event_espresso'), |
|
451 | ); |
|
452 | } |
|
453 | if (EE_Registry::instance()->CAP->current_user_can('ee_read_global_messages', 'view_filtered_messages')) { |
|
454 | $related_for_icon = EEH_MSG_Template::get_message_action_icon('see_notifications_for'); |
|
455 | if (isset($related_for_icon['css_class']) && isset($related_for_icon['label'])) { |
|
456 | $items['view_related_messages'] = array( |
|
457 | 'class' => $related_for_icon['css_class'], |
|
458 | 'desc' => $related_for_icon['label'], |
|
459 | ); |
|
460 | } |
|
461 | } |
|
462 | return $items; |
|
463 | } |
|
464 |
@@ 524-537 (lines=14) @@ | ||
521 | EE_Registry::instance()->load_helper('MSG_Template'); |
|
522 | $items = array(); |
|
523 | ||
524 | if (EE_Registry::instance()->CAP->current_user_can( |
|
525 | 'ee_read_global_messages', |
|
526 | 'view_filtered_messages' |
|
527 | )) { |
|
528 | $related_for_icon = EEH_MSG_Template::get_message_action_icon('see_notifications_for'); |
|
529 | if (is_array($related_for_icon) |
|
530 | && isset($related_for_icon['css_class'], $related_for_icon['label']) |
|
531 | ) { |
|
532 | $items['view_related_messages'] = array( |
|
533 | 'class' => $related_for_icon['css_class'], |
|
534 | 'desc' => $related_for_icon['label'], |
|
535 | ); |
|
536 | } |
|
537 | } |
|
538 | ||
539 | $items = apply_filters( |
|
540 | 'FHEE__Transactions_Admin_Page___transaction_legend_items__items', |
@@ 940-951 (lines=12) @@ | ||
937 | } else { |
|
938 | $fc_items['blank'] = array('class' => 'blank', 'desc' => ''); |
|
939 | } |
|
940 | if (EE_Registry::instance()->CAP->current_user_can( |
|
941 | 'ee_read_global_messages', |
|
942 | 'view_filtered_messages' |
|
943 | )) { |
|
944 | $related_for_icon = EEH_MSG_Template::get_message_action_icon('see_notifications_for'); |
|
945 | if (isset($related_for_icon['css_class']) && isset($related_for_icon['label'])) { |
|
946 | $fc_items['view_related_messages'] = array( |
|
947 | 'class' => $related_for_icon['css_class'], |
|
948 | 'desc' => $related_for_icon['label'], |
|
949 | ); |
|
950 | } |
|
951 | } |
|
952 | $sc_items = array( |
|
953 | 'approved_status' => array( |
|
954 | 'class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_approved, |