Skip to content

Commit 673ffac

Browse files
authored
Merge pull request #24 from OpenSourceOrg/add/19-webinar-template
Added "No Header with title" template
2 parents 65af4cc + 8d7cd53 commit 673ffac

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
/**
3+
* Template Name: No Header with Title
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+
the_title( '<h1>', '</h1>' );
23+
get_template_part( 'template-parts/content', 'page-no-header' );
24+
25+
endwhile; // End of the loop.
26+
?>
27+
28+
</section>
29+
30+
</main><!-- #primary -->
31+
32+
</section>
33+
34+
<?php
35+
get_footer();

0 commit comments

Comments
 (0)