$val ): $name = fqp_esc_html__( "{$val['prefix']} {$val['first_name']} {$val['last_name']}" ); $actions = "edit" . "delete"; if ( 'person' == $type ): $sign = []; if ( FQP\FQP::ENTRY_TYPE_AG == $entry_type ) { $sign[] = fqp_esc_html__(@$vr_function_in_company[$val['vr_function_in_company']]); } else { $sign[] = fqp_esc_html__( @$function_in_company[$val['function_in_company']] ); } $sign[] = fqp_esc_html__( @$signature_authorization[$val['signature_authorization']] ); $sign = array_filter( $sign ); $sign = trim( implode(', ', $sign), "\n\r\t, " ); $sign = ( $sign ) ? "
{$sign}" : "
 "; $list .= "
  • {$name}{$sign}
    {$actions}
  • "; else: $comp = fqp_esc_html__( $val['company_name'] ); $name = fqp_esc_html__( 'represented by' ) . ' ' . $name; $list .= "
  • {$comp}
    {$name}
    {$actions}
  • "; endif; endforeach; endforeach; if ( $list ): ?>