Files
peptide-starter-theme/footer.php
peptiderepo 65b9f7a13c fix: resolve PHPCS coding standard violations for CI
- Convert all PHP files from CRLF to LF line endings
- Reformat multi-line function calls per WPCS standard
  (opening paren last on line, closing paren on own line)
- Fix assignment-in-conditional in single-peptide.php
- Change double quotes to single quotes in content-none.php
- Exclude InvalidClassFileName sniff (standard WP functions.php pattern)
- Fix archive-peptide.php opening PHP tag placement

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 22:54:51 +07:00

83 lines
3.0 KiB
PHP

<?php
/**
* The footer for Peptide Starter theme
*
* @package peptide-starter
*/
?>
</main><!-- #main -->
<footer class="site-footer">
<div class="footer-wrapper">
<!-- Newsletter Signup -->
<?php if ( peptide_starter_show_newsletter_form() ) { ?>
<div class="footer-newsletter">
<h3><?php esc_html_e( 'Stay Updated', 'peptide-starter' ); ?></h3>
<p><?php esc_html_e( 'Subscribe to our newsletter for the latest peptide research and updates.', 'peptide-starter' ); ?></p>
<form class="newsletter-form" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post">
<?php wp_nonce_field( 'peptide_starter_newsletter', 'ps_newsletter_nonce' ); ?>
<input type="hidden" name="action" value="peptide_starter_newsletter_signup">
<input
type="email"
name="email"
class="newsletter-input"
placeholder="<?php esc_attr_e( 'your@email.com', 'peptide-starter' ); ?>"
required
>
<button type="submit" class="ps-btn ps-btn-primary">
<?php esc_html_e( 'Subscribe', 'peptide-starter' ); ?>
</button>
</form>
</div>
<?php } ?>
<!-- Footer Grid -->
<div class="footer-grid">
<!-- Footer Widget Areas -->
<?php
for ( $i = 1; $i <= 4; $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 '</ul>';
} elseif ( 3 === $i ) {
echo '<h3>' . esc_html__( 'Resources', 'peptide-starter' ) . '</h3>';
echo '<ul>';
echo '<li><a href="#">' . esc_html__( 'Research', 'peptide-starter' ) . '</a></li>';
echo '<li><a href="#">' . esc_html__( 'Documentation', '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 '<li><a href="#">' . esc_html__( 'Twitter', 'peptide-starter' ) . '</a></li>';
echo '</ul>';
}
}
echo '</div>';
}
?>
</div>
<!-- Footer Bottom -->
<div class="footer-bottom">
<p><?php echo wp_kses_post( peptide_starter_get_footer_copyright() ); ?></p>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>