feat(front-page): remove Science Feed card + 3-item news teaser (v2.2.2)

This commit is contained in:
peptiderepo
2026-04-29 14:14:07 +07:00
parent 529d1ab311
commit 4d6fbb4483

View File

@@ -204,7 +204,7 @@ $featured_monograph_ids = array( 211, 36, 177 );
</section> </section>
<?php endif; ?> <?php endif; ?>
<!-- Research Modules Grid (6 cards) --> <!-- Research Modules Grid (5 cards) -->
<?php get_template_part( 'template-parts/module', 'cards' ); ?> <?php get_template_part( 'template-parts/module', 'cards' ); ?>
<!-- PRAutoBlogger Posts Widget --> <!-- PRAutoBlogger Posts Widget -->
@@ -214,19 +214,22 @@ $featured_monograph_ids = array( 211, 36, 177 );
} }
?> ?>
<!-- News Feed Section --> <!-- News Teaser Section — 3 items + "View all" CTA -->
<?php <?php
if ( shortcode_exists( 'peptide_news' ) ) { if ( shortcode_exists( 'peptide_news' ) ) {
?> ?>
<section class="news-feed-section"> <section class="news-teaser-section">
<div class="ps-container"> <div class="ps-container">
<div class="news-feed-header"> <div class="news-teaser-header">
<h2 class="news-feed-title"><?php esc_html_e( 'What\'s new', 'peptide-starter' ); ?></h2> <div>
<p class="news-feed-description"> <h2><?php esc_html_e( 'Latest Peptide Research', 'peptide-starter' ); ?></h2>
<?php esc_html_e( 'Recent peptide research, regulatory shifts, and synthesis news. New posts weekly.', 'peptide-starter' ); ?> <p><?php esc_html_e( 'Recent publications from leading research sources.', 'peptide-starter' ); ?></p>
</p> </div>
<a href="<?php echo esc_url( home_url( '/news' ) ); ?>" class="ps-btn ps-btn-secondary">
<?php esc_html_e( 'View all research →', 'peptide-starter' ); ?>
</a>
</div> </div>
<?php echo do_shortcode( '[peptide_news]' ); ?> <?php echo do_shortcode( '[peptide_news count="3"]' ); ?>
</div> </div>
</section> </section>
<?php <?php
@@ -236,3 +239,4 @@ $featured_monograph_ids = array( 211, 36, 177 );
</main> </main>
<?php get_footer(); ?> <?php get_footer(); ?>