Phase 3: Page Templates - Homepage, About, Contact, Blog, Search, Full-width, Landing templates with reusable components

This commit is contained in:
Hanson.xyz Dev
2025-11-28 16:58:34 -06:00
parent 96e3193880
commit f876883cf2
173 changed files with 31375 additions and 33 deletions
@@ -0,0 +1,74 @@
<?php
/**
* Template Name: Landing Page
* Template for marketing/campaign landing pages with minimal header/footer
*
* @package HomeProz
*/
// Prevent direct access
if (!defined('ABSPATH')) {
exit;
}
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class('landing-page'); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site landing-page-site">
<!-- Minimal Header -->
<header class="landing-header">
<div class="container">
<div class="landing-header-content">
<a href="<?php echo esc_url(home_url('/')); ?>" class="landing-logo">
<?php
$custom_logo_id = get_theme_mod('custom_logo');
if ($custom_logo_id) {
echo wp_get_attachment_image($custom_logo_id, 'medium', false, array('class' => 'custom-logo'));
} else {
echo '<span class="site-title">' . esc_html(get_bloginfo('name')) . '</span>';
}
?>
</a>
</div>
</div>
</header>
<main id="primary" class="site-main landing-main">
<?php
while (have_posts()) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('landing-content'); ?>>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
</main>
<!-- Minimal Footer -->
<footer class="landing-footer">
<div class="container">
<p class="landing-footer-text">
&copy; <?php echo date('Y'); ?> <?php bloginfo('name'); ?>. All rights reserved.
<span class="landing-footer-links">
<a href="<?php echo esc_url(get_privacy_policy_url()); ?>">Privacy Policy</a>
</span>
</p>
</div>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>