Skip to content

Commit b7d9848

Browse files
authored
Merge pull request #148 from OpenSourceOrg/add/new-page-template-noheader-wide
[Develop] New page template noheader wide
2 parents 5748533 + 5ae77c1 commit b7d9848

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

themes/osi/style.css

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* Template Name: No Page Header - Wide
4+
*
5+
* @link https://codex.wordpress.org/Template_Hierarchy
6+
*
7+
* @package osi
8+
*/
9+
10+
get_header(); ?>
11+
12+
<section class="content <?php echo ( osi_display_sidebar() ? 'has_sidebar' : 'has_no_sidebar' ); ?>" id="content">
13+
14+
<main class="content--body <?php echo esc_attr( osi_main_class() ); ?>" role="main">
15+
16+
<section class="content--page" id="content-page">
17+
<?php get_template_part( 'template-parts/breadcrumbs' ); ?>
18+
19+
<?php
20+
while ( have_posts() ) :
21+
the_post();
22+
get_template_part( 'template-parts/content', 'page-no-header' );
23+
endwhile; // End of the loop.
24+
?>
25+
26+
</section>
27+
28+
</main><!-- #primary -->
29+
30+
</section>
31+
32+
<?php
33+
get_footer();

0 commit comments

Comments
 (0)