-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new "blank" page template without a header or a footer
- Loading branch information
1 parent
8a5277b
commit 4cb42c1
Showing
3 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Template Name: Blank | ||
* | ||
* The template for displaying pages with no header or footer. | ||
* | ||
* @package Memberlite | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<div id="primary" class="content-area"> | ||
<?php do_action( 'memberlite_before_main' ); ?> | ||
<main id="main" class="site-main" role="main"> | ||
<?php do_action( 'memberlite_before_loop' ); ?> | ||
|
||
<?php | ||
while ( have_posts() ) : | ||
the_post(); | ||
?> | ||
|
||
<?php get_template_part( 'components/page/content', 'page' ); ?> | ||
<?php | ||
// If comments are open or we have at least one comment, load up the comment template | ||
if ( comments_open() || '0' != get_comments_number() ) : | ||
comments_template(); | ||
endif; | ||
?> | ||
|
||
<?php endwhile; // end of the loop. ?> | ||
|
||
<?php do_action( 'memberlite_after_loop' ); ?> | ||
</main><!-- #main --> | ||
<?php do_action( 'memberlite_after_main' ); ?> | ||
</div><!-- #primary --> | ||
|
||
<?php get_footer(); ?> |