-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from OpenSourceOrg/add/dev/19-webinar-template
Added "No Header with title" template
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
/** | ||
* Template Name: No Header with Title | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package osi | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<section class="content <?php echo ( osi_display_sidebar() ? 'has_sidebar' : 'has_no_sidebar' ); ?>" id="content"> | ||
|
||
<main class="content--body <?php echo esc_attr( osi_main_class() ); ?>" role="main"> | ||
|
||
<section class="content--page" id="content-page"> | ||
<?php get_template_part( 'template-parts/breadcrumbs' ); ?> | ||
|
||
<?php | ||
while ( have_posts() ) : | ||
the_post(); | ||
the_title( '<h1>', '</h1>' ); | ||
get_template_part( 'template-parts/content', 'page-no-header' ); | ||
|
||
endwhile; // End of the loop. | ||
?> | ||
|
||
</section> | ||
|
||
</main><!-- #primary --> | ||
|
||
</section> | ||
|
||
<?php | ||
get_footer(); |