sss
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
61 additions
and
0 deletions
| 1 | <?php | ||
| 2 | /** | ||
| 3 | * Template Name: Event Page | ||
| 4 | * | ||
| 5 | * Template for displaying a page without sidebar even if a sidebar widget is published. | ||
| 6 | * | ||
| 7 | * @package Understrap | ||
| 8 | */ | ||
| 9 | |||
| 10 | // Exit if accessed directly. | ||
| 11 | defined( 'ABSPATH' ) || exit; | ||
| 12 | |||
| 13 | get_header(); | ||
| 14 | $container = get_theme_mod( 'understrap_container_type' ); | ||
| 15 | |||
| 16 | if ( is_front_page() ) { | ||
| 17 | get_template_part( 'global-templates/hero' ); | ||
| 18 | } | ||
| 19 | |||
| 20 | $wrapper_id = 'full-width-page-wrapper'; | ||
| 21 | if ( is_page_template( 'page-templates/no-title.php' ) ) { | ||
| 22 | $wrapper_id = 'no-title-page-wrapper'; | ||
| 23 | } | ||
| 24 | ?> | ||
| 25 | |||
| 26 | <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>"> | ||
| 27 | |||
| 28 | <div class="<?php echo esc_attr( $container ); ?>" id="content"> | ||
| 29 | |||
| 30 | <div class="row"> | ||
| 31 | |||
| 32 | <div class="col-md-12 content-area" id="primary"> | ||
| 33 | |||
| 34 | <main class="site-main" id="main" role="main"> | ||
| 35 | |||
| 36 | <?php | ||
| 37 | echo get_hansel_and_gretel_breadcrumbs(); | ||
| 38 | the_title( '<h1 class="entry-title">', '</h1>' ); | ||
| 39 | while ( have_posts() ) { | ||
| 40 | the_post(); | ||
| 41 | get_template_part( 'loop-templates/content', 'page' ); | ||
| 42 | |||
| 43 | // If comments are open or we have at least one comment, load up the comment template. | ||
| 44 | //if ( comments_open() || get_comments_number() ) { | ||
| 45 | // comments_template(); | ||
| 46 | // } | ||
| 47 | } | ||
| 48 | ?> | ||
| 49 | |||
| 50 | </main> | ||
| 51 | |||
| 52 | </div><!-- #primary --> | ||
| 53 | |||
| 54 | </div><!-- .row --> | ||
| 55 | |||
| 56 | </div><!-- #content --> | ||
| 57 | |||
| 58 | </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> --> | ||
| 59 | |||
| 60 | <?php | ||
| 61 | get_footer(); |
-
Please register or sign in to post a comment