1er commit
This commit is contained in:
46
page-templates/contact-page.php
Normal file
46
page-templates/contact-page.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: Page Without Footer
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
|
||||
<div class="single-page">
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
?>
|
||||
<div class="page-header medium-container">
|
||||
<h1 class="page-title"><?= get_the_title(); ?></h1>
|
||||
</div>
|
||||
|
||||
<div class="entry-content fullwidth-container">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
?>
|
||||
<div class="comments-section">
|
||||
<?php
|
||||
comments_template();
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endwhile; // End of the loop.
|
||||
?>
|
||||
</div>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_footer('without-widgets');
|
||||
Reference in New Issue
Block a user