@@ 1057-1068 (lines=12) @@ | ||
1054 | } else { |
|
1055 | $fc_items['blank'] = array('class' => 'blank', 'desc' => ''); |
|
1056 | } |
|
1057 | if (EE_Registry::instance()->CAP->current_user_can( |
|
1058 | 'ee_read_global_messages', |
|
1059 | 'view_filtered_messages' |
|
1060 | )) { |
|
1061 | $related_for_icon = EEH_MSG_Template::get_message_action_icon('see_notifications_for'); |
|
1062 | if (is_array($related_for_icon) && isset($related_for_icon['css_class'], $related_for_icon['label'])) { |
|
1063 | $fc_items['view_related_messages'] = array( |
|
1064 | 'class' => $related_for_icon['css_class'], |
|
1065 | 'desc' => $related_for_icon['label'], |
|
1066 | ); |
|
1067 | } |
|
1068 | } |
|
1069 | $sc_items = array( |
|
1070 | 'approved_status' => array( |
|
1071 | 'class' => 'ee-status-legend ee-status-legend-' . EEM_Registration::status_id_approved, |
@@ 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', |
@@ 510-520 (lines=11) @@ | ||
507 | 'desc' => esc_html__('Event Reports', 'event_espresso'), |
|
508 | ); |
|
509 | } |
|
510 | if (EE_Registry::instance()->CAP->current_user_can('ee_read_global_messages', 'view_filtered_messages')) { |
|
511 | $related_for_icon = EEH_MSG_Template::get_message_action_icon('see_notifications_for'); |
|
512 | // $related_for_icon can sometimes be a string so 'css_class' would be an illegal offset |
|
513 | // (can only use numeric offsets when treating strings as arrays) |
|
514 | if (is_array($related_for_icon) && isset($related_for_icon['css_class'], $related_for_icon['label'])) { |
|
515 | $items['view_related_messages'] = array( |
|
516 | 'class' => $related_for_icon['css_class'], |
|
517 | 'desc' => $related_for_icon['label'], |
|
518 | ); |
|
519 | } |
|
520 | } |
|
521 | return $items; |
|
522 | } |
|
523 |