feat(content): Our Methodology page template + footer link (v2.1.6)
- Add page-our-methodology.php — two-column ToC template for /our-methodology/ Mirrors page-how-we-review.php; CSS classes use page-our-methodology prefix #last-verified anchor is deep-link target for Phase 2 verdict-card lines - Footer section 5: add Our Methodology link between How We Review + Editorial Standards - Bump version to 2.1.6
This commit is contained in:
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,5 +1,20 @@
|
||||
# Peptide Starter Theme - Changelog
|
||||
|
||||
## [2.1.6] - 2026-04-27 — Our Methodology page template + footer link
|
||||
|
||||
### Added
|
||||
|
||||
- `page-our-methodology.php` — two-column sticky ToC template for `/our-methodology/`.
|
||||
Mirrors `page-how-we-review.php` layout; CSS classes use `page-our-methodology` prefix.
|
||||
The `#last-verified` anchor on this page is the deep-link target for Phase 2
|
||||
verdict-card "Last verified" lines.
|
||||
- Footer "Our Method" section (section 5) now lists **Our Methodology** (`/our-methodology/`)
|
||||
between How We Review Peptides and Editorial Standards.
|
||||
|
||||
### Notes
|
||||
|
||||
- No changes to existing templates, CSS, or JS beyond the footer list addition.
|
||||
|
||||
## [2.1.5] - 2026-04-27 — Featured verdicts vertical-rhythm fix
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
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 '<li><a href="' . esc_url( home_url( '/our-methodology' ) ) . '">' . esc_html__( 'Our Methodology', 'peptide-starter' ) . '</a></li>';
|
||||
echo '</ul>';
|
||||
}
|
||||
}
|
||||
|
||||
46
page-our-methodology.php
Normal file
46
page-our-methodology.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Template Name: Our Methodology
|
||||
*
|
||||
* Two-column layout with sticky sidebar ToC for the editorial methodology page.
|
||||
* Mirrors page-how-we-review.php layout; CSS classes use page-our-methodology prefix.
|
||||
*
|
||||
* @package peptide-starter
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<main id="main" class="site-main">
|
||||
<div class="page-our-methodology">
|
||||
<div class="page-our-methodology__content">
|
||||
<?php
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header">
|
||||
<h1 class="entry-title"><?php the_title(); ?></h1>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if ( ! empty( get_the_content() ) ) : ?>
|
||||
<aside class="page-our-methodology__sidebar">
|
||||
<nav class="page-toc" aria-label="<?php esc_attr_e( 'Page contents', 'peptide-starter' ); ?>">
|
||||
<h3><?php esc_html_e( 'Contents', 'peptide-starter' ); ?></h3>
|
||||
<!-- JavaScript-generated ToC will be inserted here -->
|
||||
</nav>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
@@ -4,7 +4,7 @@ Theme URI: https://github.com/peptiderepo/peptide-starter
|
||||
Description: Premium, accessible WordPress theme for scientific peptide reference database
|
||||
Author: Peptide Repo
|
||||
Author URI: https://peptiderepo.com
|
||||
Version: 2.1.5
|
||||
Version: 2.1.6
|
||||
License: GPL v2 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: peptide-starter
|
||||
|
||||
Reference in New Issue
Block a user