ID, '_pr_last_source_verified', true ); $velocity = get_post_meta( $post->ID, '_pr_verification_velocity', true ) ?: 'medium'; // phpcs:ignore Universal.Operators.DisallowShortTernary.Found $status = get_post_meta( $post->ID, '_pr_verification_status', true ) ?: 'current'; // phpcs:ignore Universal.Operators.DisallowShortTernary.Found $notes = get_post_meta( $post->ID, '_pr_verification_notes', true ) ?: ''; // phpcs:ignore Universal.Operators.DisallowShortTernary.Found echo '

' . esc_html__( 'Last Verified', 'peptide-repo-core' ) . ':
'; echo '' . esc_html( $last_verified ?: '—' ) . '

'; // phpcs:ignore Universal.Operators.DisallowShortTernary.Found echo '

' . esc_html__( 'Verification Velocity', 'peptide-repo-core' ) . ':
'; echo '

'; echo '

' . esc_html__( 'Status', 'peptide-repo-core' ) . ':
'; $badge_class = match ( $status ) { 'due' => 'style="background:#ff9800;color:white;padding:4px 8px;border-radius:3px;"', 'overdue' => 'style="background:#f44336;color:white;padding:4px 8px;border-radius:3px;"', default => 'style="background:#4caf50;color:white;padding:4px 8px;border-radius:3px;"', }; echo '' . esc_html( ucfirst( $status ) ) . '

'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- badge_class is a hardcoded match expression echo '

' . esc_html__( 'Verification Notes', 'peptide-repo-core' ) . ':
'; printf( '', esc_textarea( $notes ) ); echo '

'; echo ''; echo ''; } }