Implements weeks 1–4 of the CMO brand identity sprint. Complete theme reskin with: - CSS token system (brand.css) with Teal/Lime/Orange palette - Poppins/Inter/IBM Plex Mono font loading - Full favicon/PWA/OG asset pack - 5-state verdict badge + card + evidence row components - verdict_state post meta on pr_peptide CPT with meta box - Affiliate disclosure component (3 contexts: inline, banner, footer) - How we review peptides page template - About & Editorial Standards page template - Footer Our Method links + disclosure - SVG logo support (logo-horizontal.svg inline) - OG image fallback meta tag - Accessibility: role=img on badges, skip-to-content link, prefers-reduced-motion support Theme version bumped to 2.0.0-alpha.1.
35 lines
953 B
PHP
35 lines
953 B
PHP
<?php
|
|
/**
|
|
* Verdict Evidence Signal Row Component
|
|
*
|
|
* Displays an inset row of evidence signals with glyphs.
|
|
* Accepts $args['signals'] as array of ['glyph' => '...', 'label' => '...']
|
|
*
|
|
* @package peptide-starter
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
$signals = isset( $args['signals'] ) && is_array( $args['signals'] ) ? $args['signals'] : array();
|
|
|
|
if ( empty( $signals ) ) {
|
|
return;
|
|
}
|
|
?>
|
|
<div class="pr-evidence-row">
|
|
<?php foreach ( $signals as $signal ) : ?>
|
|
<?php
|
|
$glyph = isset( $signal['glyph'] ) ? sanitize_text_field( $signal['glyph'] ) : '';
|
|
$label = isset( $signal['label'] ) ? sanitize_text_field( $signal['label'] ) : '';
|
|
?>
|
|
<?php if ( ! empty( $glyph ) && ! empty( $label ) ) : ?>
|
|
<div class="pr-evidence-row__item">
|
|
<span class="pr-evidence-row__glyph"><?php echo esc_html( $glyph ); ?></span>
|
|
<span><?php echo esc_html( $label ); ?></span>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</div>
|