From 3942c6b29e0526feb73f468fc12d6df767169073 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 26 Apr 2026 04:26:59 +0000 Subject: [PATCH] =?UTF-8?q?v2.1.0=20fix=20=E2=80=94=20tabs,=20split=20verd?= =?UTF-8?q?ict=20helpers,=20PHPCS=20clean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Convert space indentation → tabs in front-page.php (PHPCS) - Extract verdict taxonomy + config arrays → inc/verdict-helpers.php - Wire verdict-helpers.php into functions.php - front-page.php now 254 lines (was 309) --- front-page.php | 51 +++-------------------- functions.php | 1 + inc/verdict-helpers.php | 90 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+), 45 deletions(-) create mode 100644 inc/verdict-helpers.php diff --git a/front-page.php b/front-page.php index 12ac7b9..a9c5812 100644 --- a/front-page.php +++ b/front-page.php @@ -20,42 +20,8 @@ get_header(); -/** - * Verdict taxonomy data for the homepage explainer strip. - * Canonical order matches CMO brief §5.1 and the 5-state enum in verdict-meta.php. - */ -$verdict_taxonomy = array( - array( - 'state' => 'established', - 'glyph' => '✓', - 'label' => 'Established', - 'description' => 'Strong RCT evidence; widely prescribed or validated.', - ), - array( - 'state' => 'promising', - 'glyph' => '◐', - 'label' => 'Promising', - 'description' => 'Meaningful human data accumulating; not yet RCT-strong.', - ), - array( - 'state' => 'investigational', - 'glyph' => '?', - 'label' => 'Investigational', - 'description' => 'Mechanism plausible; human trials sparse.', - ), - array( - 'state' => 'insufficient', - 'glyph' => '⊘', - 'label' => 'Insufficient Evidence', - 'description' => 'Not enough data to say anything responsible.', - ), - array( - 'state' => 'cautionary', - 'glyph' => '⚠', - 'label' => 'Cautionary', - 'description' => 'Active safety signals or misuse patterns.', - ), -); +/** @see inc/verdict-helpers.php — peptide_starter_get_verdict_taxonomy() */ +$verdict_taxonomy = peptide_starter_get_verdict_taxonomy(); /** * Featured monograph post IDs. These are the three exemplar monographs @@ -183,20 +149,15 @@ $featured_monograph_ids = array( 211, 36, 177 );