Skip to content

Commit

Permalink
new page templates for landing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSibley committed Apr 30, 2021
1 parent 6cf0b0c commit 67b669a
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
33 changes: 33 additions & 0 deletions templates/landing-page-header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/*
** Template Name: Landing Page with Header
*/

get_header(); ?>

<div id="loop-container" class="loop-container">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post(); ?>
<div <?php post_class(); ?>>
<article>
<div class="post-container">
<div class="post-content">
<?php the_content(); ?>
</div>
</div>
</article>
</div>
<?php endwhile;
endif; ?>
</div>

</section> <!-- .main -->
</div><!-- .max-width -->
</div><!-- .overflow-container -->

<?php wp_footer(); ?>

</body>
</html>
41 changes: 41 additions & 0 deletions templates/landing-page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/*
** Template Name: Landing Page
*/
?>

<!DOCTYPE html>

<html <?php language_attributes(); ?>>

<head>
<?php wp_head(); ?>
</head>

<body id="<?php print get_stylesheet(); ?>" <?php body_class(); ?>>
<div id="overflow-container" class="overflow-container">
<div id="max-width" class="max-width">
<section id="main" class="main" role="main">
<div id="loop-container" class="loop-container">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post(); ?>
<div <?php post_class(); ?>>
<article>
<div class="post-container">
<div class="post-content">
<?php the_content(); ?>
</div>
</div>
</article>
</div>
<?php endwhile;
endif; ?>
</div>
</section> <!-- .main -->
</div><!-- .max-width -->
</div><!-- .overflow-container -->
<?php wp_footer(); ?>
</body>
</html>

0 comments on commit 67b669a

Please sign in to comment.