Implements weeks 1–4 of the CMO brand identity sprint. Key changes: - CSS token system (assets/css/brand.css): full palette, verdict tokens, component styles - Poppins/Inter/IBM Plex Mono Google Fonts loading with preload - Full favicon/PWA/OG asset pack (peptide-repo-brand v1.0.0) - 5-state verdict badge + card + evidence row components - verdict_state + signal_row post meta on pr_peptide CPT - Homepage hero: teal bg, new H1/subhead, lime search bar - Archive verdict filter chips (CSS + pre_get_posts query hook) - Affiliate disclosure component (3 contexts) - page-how-we-review.php + page-about.php templates - Footer Our Method links - a11y: skip-to-content, reduced-motion, aria on verdict badges QA: PASS (0 blockers) — qa-reviews/peptide-starter-theme/2026-04-26-a2bff59.md Staging verified: https://staging.peptiderepo.com
105 lines
4.2 KiB
PHP
105 lines
4.2 KiB
PHP
<?php
|
|
/**
|
|
* The footer for Peptide Starter theme
|
|
*
|
|
* Updated footer with disclaimer, language links, and settings panel.
|
|
*
|
|
* @see template-parts/settings-panel.php — slide-out support panel
|
|
* @see template-parts/newsletter-signup.php — newsletter CTA (on front page)
|
|
* @see functions.php — newsletter handler, contact form handler
|
|
*
|
|
* @package peptide-starter
|
|
*/
|
|
|
|
?>
|
|
|
|
<!-- Newsletter Signup (front page only — science feed includes its own) -->
|
|
<?php if ( is_front_page() ) : ?>
|
|
<?php get_template_part( 'template-parts/newsletter', 'signup' ); ?>
|
|
<?php endif; ?>
|
|
|
|
<footer class="site-footer">
|
|
<div class="footer-wrapper">
|
|
<!-- Footer Grid -->
|
|
<div class="footer-grid">
|
|
<?php
|
|
for ( $i = 1; $i <= 5; $i++ ) {
|
|
echo '<div class="footer-section">';
|
|
if ( is_active_sidebar( 'footer-' . $i ) ) {
|
|
dynamic_sidebar( 'footer-' . $i );
|
|
} else {
|
|
// Default footer content if no widgets.
|
|
if ( 1 === $i ) {
|
|
echo '<h3>' . esc_html__( 'About', 'peptide-starter' ) . '</h3>';
|
|
echo '<p>' . esc_html__( 'Peptide Repo is a comprehensive scientific database for peptide research.', 'peptide-starter' ) . '</p>';
|
|
} elseif ( 2 === $i ) {
|
|
echo '<h3>' . esc_html__( 'Quick Links', 'peptide-starter' ) . '</h3>';
|
|
echo '<ul>';
|
|
echo '<li><a href="' . esc_url( home_url( '/' ) ) . '">' . esc_html__( 'Home', 'peptide-starter' ) . '</a></li>';
|
|
echo '<li><a href="' . esc_url( home_url( '/peptides' ) ) . '">' . esc_html__( 'Peptides Database', 'peptide-starter' ) . '</a></li>';
|
|
echo '<li><a href="' . esc_url( home_url( '/documentation' ) ) . '">' . esc_html__( 'Documentation', 'peptide-starter' ) . '</a></li>';
|
|
echo '<li><a href="' . esc_url( home_url( '/news' ) ) . '">' . esc_html__( 'Science Feed', 'peptide-starter' ) . '</a></li>';
|
|
echo '</ul>';
|
|
} elseif ( 3 === $i ) {
|
|
echo '<h3>' . esc_html__( 'Tools', 'peptide-starter' ) . '</h3>';
|
|
echo '<ul>';
|
|
echo '<li><a href="' . esc_url( home_url( '/calculator' ) ) . '">' . esc_html__( 'Calculator', 'peptide-starter' ) . '</a></li>';
|
|
echo '<li><a href="' . esc_url( home_url( '/protocol-builder' ) ) . '">' . esc_html__( 'Protocol Builder', 'peptide-starter' ) . '</a></li>';
|
|
echo '<li><a href="' . esc_url( home_url( '/tracker' ) ) . '">' . esc_html__( 'Tracker', 'peptide-starter' ) . '</a></li>';
|
|
echo '</ul>';
|
|
} elseif ( 4 === $i ) {
|
|
echo '<h3>' . esc_html__( 'Connect', 'peptide-starter' ) . '</h3>';
|
|
echo '<ul>';
|
|
echo '<li><a href="https://github.com/peptiderepo" target="_blank" rel="noopener">' . esc_html__( 'GitHub', 'peptide-starter' ) . '</a></li>';
|
|
echo '</ul>';
|
|
} elseif ( 5 === $i ) {
|
|
echo '<h3>' . esc_html__( 'Our Method', 'peptide-starter' ) . '</h3>';
|
|
echo '<ul>';
|
|
echo '<li><a href="' . esc_url( home_url( '/how-we-review-peptides' ) ) . '">' . esc_html__( 'How We Review Peptides', 'peptide-starter' ) . '</a></li>';
|
|
echo '<li><a href="' . esc_url( home_url( '/about' ) ) . '">' . esc_html__( 'Editorial Standards', 'peptide-starter' ) . '</a></li>';
|
|
echo '</ul>';
|
|
}
|
|
}
|
|
echo '</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<!-- Footer Bottom -->
|
|
<div class="footer-bottom">
|
|
<p class="footer-copyright">
|
|
<?php echo wp_kses_post( peptide_starter_get_footer_copyright() ); ?>
|
|
</p>
|
|
|
|
<!-- Disclosure -->
|
|
<?php
|
|
get_template_part(
|
|
'template-parts/affiliate-disclosure',
|
|
null,
|
|
array( 'context' => 'footer' )
|
|
);
|
|
?>
|
|
|
|
<!-- Disclaimer -->
|
|
<p class="footer-disclaimer">
|
|
<?php esc_html_e( 'All data is provided for informational and educational purposes only. This platform does not provide medical advice, diagnoses, or treatment recommendations. Always consult qualified professionals.', 'peptide-starter' ); ?>
|
|
</p>
|
|
|
|
<!-- Translations note — placeholder links removed in v1.5.1;
|
|
renders only when localized blog URLs are wired up. -->
|
|
<p class="footer-languages-note">
|
|
<?php esc_html_e( 'Translations coming soon.', 'peptide-starter' ); ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<?php
|
|
// Settings slide-out panel (hidden by default, toggled via JS).
|
|
get_template_part( 'template-parts/settings', 'panel' );
|
|
?>
|
|
|
|
<?php wp_footer(); ?>
|
|
</body>
|
|
</html>
|