$data ) : // Use mark key if available, otherwise default back to the success key. if ( isset( $data['mark'] ) ) { $mark = $data['mark']; } elseif ( isset( $data['success'] ) && $data['success'] ) { $mark = 'yes'; } else { $mark = 'error'; } // Use mark_icon key if available, otherwise set based on $mark. if ( isset( $data['mark_icon'] ) ) { $mark_icon = $data['mark_icon']; } elseif ( 'yes' === $mark ) { $mark_icon = 'yes'; } else { $mark_icon = 'no-alt'; } ?>

:   '; $row_number--; } } if ( isset( $data['note'] ) ) { if ( empty( $mark ) ) { echo wp_kses_post( $data['note'] ); } else { ?> '; } echo wp_kses_post( $data['note'] ); ?>