c4ad423b by Jeff Balicki

header and footer

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 35d35aca
Showing 297 changed files with 1125 additions and 2 deletions
...@@ -15598,6 +15598,96 @@ figure.woocommerce-product-gallery__wrapper { ...@@ -15598,6 +15598,96 @@ figure.woocommerce-product-gallery__wrapper {
15598 display: block; 15598 display: block;
15599 } 15599 }
15600 15600
15601 .pre-header {
15602 background-color: #0484B8;
15603 color: #fff;
15604 height: 57px;
15605 display: flex;
15606 }
15607 .pre-header .sponsored {
15608 text-align: right;
15609 }
15610 .pre-header .sponsored .logo {
15611 width: 149px;
15612 margin-left: 30px;
15613 }
15614
15615 #main-nav {
15616 max-height: 128px;
15617 }
15618 #main-nav .custom-logo-link {
15619 margin-left: 0px;
15620 }
15621 #main-nav .custom-logo-link img {
15622 max-width: 349px;
15623 }
15624 #main-nav .navbar-nav.sign-up {
15625 margin-bottom: 20px;
15626 }
15627 #main-nav #login-menu a {
15628 font-size: 14px;
15629 color: #0484B8;
15630 margin-left: 20px;
15631 text-align: center;
15632 }
15633 #main-nav #login-menu .log-in-button {
15634 background-color: #0484B8;
15635 margin-left: 20px;
15636 }
15637 #main-nav #login-menu .log-in-button a {
15638 font-size: 14px;
15639 color: #fff;
15640 padding: 7px 25px;
15641 margin-left: 0px;
15642 }
15643 #main-nav #main-menu a {
15644 font-size: 18px;
15645 font-weight: bold;
15646 color: #0484B8;
15647 }
15648
15649 .hero-container {
15650 background-position: bottom right;
15651 background-size: cover;
15652 width: 100%;
15653 background-color: #ccc;
15654 height: 530px;
15655 }
15656
15657 .header-section,
15658 .full-image,
15659 .image-loaded {
15660 height: 530px;
15661 background-position: bottom right;
15662 background-size: cover;
15663 width: 100%;
15664 }
15665
15666 #footer-full-content .footer-widget .wp-block-columns .wp-block-column:nth-of-type(2) ::before {
15667 content: "";
15668 margin: 20px 0px;
15669 display: block;
15670 width: 120px;
15671 height: 4px;
15672 background-color: #FFA300;
15673 }
15674 #footer-full-content .footer-widget .wp-block-columns .wp-block-column:nth-of-type(3) ::before {
15675 content: "";
15676 margin: 20px 0px;
15677 display: block;
15678 width: 120px;
15679 height: 4px;
15680 background-color: #3F9C35;
15681 }
15682 #footer-full-content .footer-widget .wp-block-columns .wp-block-column:nth-of-type(4) ::before {
15683 content: "";
15684 margin: 20px 0px;
15685 display: block;
15686 width: 120px;
15687 height: 4px;
15688 background-color: #E04E39;
15689 }
15690
15601 .has-blue-color, 15691 .has-blue-color,
15602 .has-blue-color:visited { 15692 .has-blue-color:visited {
15603 color: #0d6efd; 15693 color: #0d6efd;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 <?php
2 /**
3 * The template for displaying the footer
4 *
5 * Contains the closing of the #content div and all content after
6 *
7 * @package Understrap
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12
13 $container = get_theme_mod( 'understrap_container_type' );
14 ?>
15
16 <?php get_template_part( 'sidebar-templates/sidebar', 'footerfull' ); ?>
17
18 <div class="wrapper" id="wrapper-footer">
19
20 <div class="<?php echo esc_attr( $container ); ?>">
21
22 <div class="row">
23
24 <div class="col-md-12">
25
26 <footer class="site-footer" id="colophon">
27
28 <div class="site-info">
29
30 <?php understrap_site_info(); ?>
31
32 </div><!-- .site-info -->
33
34 </footer><!-- #colophon -->
35
36 </div><!-- col -->
37
38 </div><!-- .row -->
39
40 </div><!-- .container(-fluid) -->
41
42 </div><!-- #wrapper-footer -->
43
44 <?php // Closing div#page from header.php. ?>
45 </div><!-- #page -->
46
47 <?php wp_footer(); ?>
48
49 </body>
50
51 </html>
52
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 7
8 // Exit if accessed directly. 8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit; 9 defined( 'ABSPATH' ) || exit;
10 10 include 'inc/menu.php';
11 11
12 12
13 /** 13 /**
......
1 <?php
2 /**
3 * Hero setup
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 if ( is_active_sidebar( 'hero' ) || is_active_sidebar( 'statichero' ) || is_active_sidebar( 'herocanvas' ) ) :
12 ?>
13
14 <div class="wrapper" id="wrapper-hero">
15
16 <?php
17 get_template_part( 'sidebar-templates/sidebar', 'hero' );
18 get_template_part( 'sidebar-templates/sidebar', 'herocanvas' );
19 get_template_part( 'sidebar-templates/sidebar', 'statichero' );
20 ?>
21
22 </div>
23
24 <?php
25 endif;
1 <?php
2 /**
3 * Left sidebar check
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
12
13 if ( 'left' === $sidebar_pos || 'both' === $sidebar_pos ) {
14 get_template_part( 'sidebar-templates/sidebar', 'left' );
15 }
16 ?>
17
18 <div class="col-md content-area" id="primary">
1 <?php
2 /**
3 * Navbar branding
4 *
5 * @package Understrap
6 * @since 1.2.0
7 */
8
9 // Exit if accessed directly.
10 defined( 'ABSPATH' ) || exit;
11
12 if ( ! has_custom_logo() ) { ?>
13
14 <?php if ( is_front_page() && is_home() ) : ?>
15
16 <h1 class="navbar-brand mb-0">
17 <a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" itemprop="url">
18 <?php bloginfo( 'name' ); ?>
19 </a>
20 </h1>
21
22 <?php else : ?>
23
24 <a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" itemprop="url">
25 <?php bloginfo( 'name' ); ?>
26 </a>
27
28 <?php endif; ?>
29
30 <?php
31 } else {
32 the_custom_logo();
33 }
1 <?php
2 /**
3 * Header Navbar (bootstrap4)
4 *
5 * @package Understrap
6 * @since 1.1.0
7 */
8
9 // Exit if accessed directly.
10 defined( 'ABSPATH' ) || exit;
11
12 $container = get_theme_mod( 'understrap_container_type' );
13 ?>
14
15 <nav id="main-nav" class="navbar navbar-expand-md navbar-dark bg-primary" aria-labelledby="main-nav-label">
16
17 <h2 id="main-nav-label" class="screen-reader-text">
18 <?php esc_html_e( 'Main Navigation', 'understrap' ); ?>
19 </h2>
20
21
22 <?php if ( 'container' === $container ) : ?>
23 <div class="container">
24 <?php endif; ?>
25
26 <?php get_template_part( 'global-templates/navbar-branding' ); ?>
27
28 <button
29 class="navbar-toggler"
30 type="button"
31 data-toggle="collapse"
32 data-target="#navbarNavDropdown"
33 aria-controls="navbarNavDropdown"
34 aria-expanded="false"
35 aria-label="<?php esc_attr_e( 'Toggle navigation', 'understrap' ); ?>"
36 >
37 <span class="navbar-toggler-icon"></span>
38 </button>
39
40 <!-- The WordPress Menu goes here -->
41 <?php
42 wp_nav_menu(
43 array(
44 'theme_location' => 'primary',
45 'container_class' => 'collapse navbar-collapse',
46 'container_id' => 'navbarNavDropdown',
47 'menu_class' => 'navbar-nav ml-auto',
48 'fallback_cb' => '',
49 'menu_id' => 'main-menu',
50 'depth' => 2,
51 'walker' => new Understrap_WP_Bootstrap_Navwalker(),
52 )
53 );
54 ?>
55
56 <?php if ( 'container' === $container ) : ?>
57 </div><!-- .container -->
58 <?php endif; ?>
59
60 </nav><!-- #main-nav -->
1 <?php
2 /**
3 * Header Navbar (bootstrap5)
4 *
5 * @package Understrap
6 * @since 1.1.0
7 */
8
9 // Exit if accessed directly.
10 defined( 'ABSPATH' ) || exit;
11
12 $container = get_theme_mod( 'understrap_container_type' );
13 ?>
14
15 <nav id="main-nav" class="navbar navbar-expand-md navbar-light" aria-labelledby="main-nav-label">
16
17 <h2 id="main-nav-label" class="screen-reader-text">
18 <?php esc_html_e( 'Main Navigation', 'understrap' ); ?>
19 </h2>
20
21
22 <div class="<?php echo esc_attr( $container ); ?> nav-container">
23
24 <!-- Your site branding in the menu -->
25 <?php get_template_part( 'global-templates/navbar-branding' ); ?>
26
27 <button
28 class="navbar-toggler"
29 type="button"
30 data-bs-toggle="collapse"
31 data-bs-target="#navbarNavDropdown"
32 aria-controls="navbarNavDropdown"
33 aria-expanded="false"
34 aria-label="<?php esc_attr_e( 'Toggle navigation', 'understrap' ); ?>"
35 >
36 <span class="navbar-toggler-icon"></span>
37 </button>
38 <div class="row">
39
40 <!-- The WordPress Menu goes here -->
41 <?php
42 wp_nav_menu(
43 array(
44 'theme_location' => 'login',
45 'container_class' => 'collapse navbar-collapse align-items-start',
46 'container_id' => 'loginnavbarNavDropdown',
47 'menu_class' => 'navbar-nav ms-auto sign-up',
48 'fallback_cb' => '',
49 'menu_id' => 'login-menu',
50 'depth' => 2,
51 'walker' => new Understrap_WP_Bootstrap_Navwalker(),
52 )
53 );?>
54
55 <?php
56 wp_nav_menu(
57 array(
58 'theme_location' => 'primary',
59 'container_class' => 'collapse navbar-collapse align-items-end',
60 'container_id' => 'navbarNavDropdown',
61 'menu_class' => 'navbar-nav ms-auto ',
62 'fallback_cb' => '',
63 'menu_id' => 'main-menu',
64 'depth' => 2,
65 'walker' => new Understrap_WP_Bootstrap_Navwalker(),
66 )
67 );
68 ?>
69 </div>
70
71 </div><!-- .container(-fluid) -->
72
73 </nav><!-- #main-nav -->
1 <?php
2 /**
3 * Header Navbar (bootstrap5)
4 *
5 * @package Understrap
6 * @since 1.1.0
7 */
8
9 // Exit if accessed directly.
10 defined( 'ABSPATH' ) || exit;
11
12 $container = get_theme_mod( 'understrap_container_type' );
13 ?>
14
15 <nav id="main-nav" class="navbar navbar-expand-md navbar-dark bg-primary" aria-labelledby="main-nav-label">
16
17 <h2 id="main-nav-label" class="screen-reader-text">
18 <?php esc_html_e( 'Main Navigation', 'understrap' ); ?>
19 </h2>
20
21
22 <div class="<?php echo esc_attr( $container ); ?>">
23
24 <!-- Your site branding in the menu -->
25 <?php get_template_part( 'global-templates/navbar-branding' ); ?>
26
27 <button
28 class="navbar-toggler"
29 type="button"
30 data-bs-toggle="offcanvas"
31 data-bs-target="#navbarNavOffcanvas"
32 aria-controls="navbarNavOffcanvas"
33 aria-expanded="false"
34 aria-label="<?php esc_attr_e( 'Open menu', 'understrap' ); ?>"
35 >
36 <span class="navbar-toggler-icon"></span>
37 </button>
38
39 <div class="offcanvas offcanvas-end bg-primary" tabindex="-1" id="navbarNavOffcanvas">
40
41 <div class="offcanvas-header justify-content-end">
42 <button
43 class="btn-close btn-close-white text-reset"
44 type="button"
45 data-bs-dismiss="offcanvas"
46 aria-label="<?php esc_attr_e( 'Close menu', 'understrap' ); ?>"
47 ></button>
48 </div><!-- .offcancas-header -->
49
50 <!-- The WordPress Menu goes here -->
51 <?php
52 wp_nav_menu(
53 array(
54 'theme_location' => 'primary',
55 'container_class' => 'offcanvas-body',
56 'container_id' => '',
57 'menu_class' => 'navbar-nav justify-content-end flex-grow-1 pe-3',
58 'fallback_cb' => '',
59 'menu_id' => 'main-menu',
60 'depth' => 2,
61 'walker' => new Understrap_WP_Bootstrap_Navwalker(),
62 )
63 );
64 ?>
65 </div><!-- .offcanvas -->
66
67 </div><!-- .container(-fluid) -->
68
69 </nav><!-- #main-nav -->
1 <?php
2 /**
3 * Right sidebar check
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 // Closing the primary container from /global-templates/left-sidebar-check.php.
12 ?>
13 </div><!-- #primary -->
14
15 <?php
16 $sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
17
18 if ( 'right' === $sidebar_pos || 'both' === $sidebar_pos ) {
19 get_template_part( 'sidebar-templates/sidebar', 'right' );
20 }
1 <?php
2 /**
3 * The header for our theme
4 *
5 * Displays all of the <head> section and everything up till <div id="content">
6 *
7 * @package Understrap
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12
13 $bootstrap_version = get_theme_mod( 'understrap_bootstrap_version', 'bootstrap4' );
14 $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
15 ?>
16 <!DOCTYPE html>
17 <html <?php language_attributes(); ?>>
18 <head>
19 <meta charset="<?php bloginfo( 'charset' ); ?>">
20 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
21 <link rel="profile" href="http://gmpg.org/xfn/11">
22 <?php wp_head(); ?>
23 </head>
24
25 <body <?php body_class(); ?> <?php understrap_body_attributes(); ?>>
26 <?php do_action( 'wp_body_open' ); ?>
27 <div class="site" id="page">
28 <div class="pre-header">
29 <div class="container align-self-center">
30 <div class="row align-items-center">
31 <div class="col align-self-center">
32 Powered by St. Joseph’s Health Centre Guelph
33 </div>
34 <div class="col align-self-center">
35
36 </div>
37 <div class="col align-self-center sponsored">
38 sponsored by <img class="logo" src="wp-content/themes/crlg/images/co-operators-logo.png" alt="co-operators logo" />
39 </div>
40 </div>
41 </div>
42 </div>
43 <!-- ******************* The Navbar Area ******************* -->
44 <header id="wrapper-navbar">
45
46 <a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
47
48 <?php get_template_part( 'global-templates/navbar', $navbar_type . '-' . $bootstrap_version ); ?>
49
50 </header><!-- #wrapper-navbar -->
1 <?php
2
3 register_nav_menus(
4 array(
5 'login' => __( 'Login Menu', 'understrap' ),
6 )
7 );
1 /*! 1 /*!
2 * Understrap v1.1.0 (https://understrap.com) 2 * Understrap v1.1.0 (https://understrap.com)
3 * Copyright 2013-2021 The Understrap Authors (https://github.com/understrap/understrap/graphs/contributors) 3 * Copyright 2013-2023 The Understrap Authors (https://github.com/understrap/understrap/graphs/contributors)
4 * Licensed under GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) 4 * Licensed under GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
5 */ 5 */
6 (function (global, factory) { 6 (function (global, factory) {
...@@ -9296,6 +9296,20 @@ ...@@ -9296,6 +9296,20 @@
9296 } 9296 }
9297 })(); 9297 })();
9298 9298
9299 // Add your custom JS here.
9300 var a = document.querySelector('.blur-image');
9301 document.addEventListener("DOMContentLoaded", function () {
9302 if (!a) return !1;
9303 var b = a.getAttribute("data-src"),
9304 c = document.querySelector('.full-image'),
9305 img = new Image();
9306 img.src = b;
9307
9308 img.onload = function () {
9309 c.classList.add('image-loaded'), c.style.backgroundImage = 'url(' + b + ')';
9310 };
9311 });
9312
9299 exports.Alert = alert; 9313 exports.Alert = alert;
9300 exports.Button = button; 9314 exports.Button = button;
9301 exports.Carousel = carousel; 9315 exports.Carousel = carousel;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 <?php
2 /**
3 * Template for displaying posts on the author archive
4 *
5 * @package Understrap
6 * @since 1.0.0
7 */
8
9 // Exit if accessed directly.
10 defined( 'ABSPATH' ) || exit;
11 ?>
12
13 <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
14
15 <header class="entry-header">
16
17 <?php
18 the_title(
19 sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ),
20 '</a></h3>'
21 );
22 ?>
23
24 <?php if ( 'post' === get_post_type() ) : ?>
25
26 <div class="entry-meta">
27
28 <?php understrap_posted_on(); ?>
29
30 </div><!-- .entry-meta -->
31
32 <?php endif; ?>
33
34 </header><!-- .entry-header -->
35
36 <div class="entry-summary">
37
38 <?php the_excerpt(); ?>
39
40 </div><!-- .entry-summary -->
41
42 <footer class="entry-footer">
43
44 <?php understrap_entry_footer(); ?>
45
46 </footer><!-- .entry-footer -->
47
48 </article><!-- #post-<?php the_ID(); ?> -->
1 <?php
2 /**
3 * Blank content partial template
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 the_content();
1 <?php
2 /**
3 * Content empty partial template
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 the_content();
1 <?php
2 /**
3 * The template part for displaying a message that posts cannot be found
4 *
5 * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/
6 *
7 * @package Understrap
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12 ?>
13
14 <section class="no-results not-found">
15
16 <header class="page-header">
17
18 <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'understrap' ); ?></h1>
19
20 </header><!-- .page-header -->
21
22 <div class="page-content">
23
24 <?php
25 if ( is_home() && current_user_can( 'publish_posts' ) ) :
26
27 $kses = array( 'a' => array( 'href' => array() ) );
28 printf(
29 /* translators: 1: Link to WP admin new post page. */
30 '<p>' . wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), $kses ) . '</p>',
31 esc_url( admin_url( 'post-new.php' ) )
32 );
33
34 elseif ( is_search() ) :
35
36 printf(
37 '<p>%s<p>',
38 esc_html__( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'understrap' )
39 );
40 get_search_form();
41
42 else :
43
44 printf(
45 '<p>%s<p>',
46 esc_html__( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'understrap' )
47 );
48 get_search_form();
49
50 endif;
51 ?>
52 </div><!-- .page-content -->
53
54 </section><!-- .no-results -->
1 <?php
2 /**
3 * Partial template for content in page.php
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10 ?>
11
12 <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
13
14 <div class="entry-content">
15
16 <?php
17 the_content();
18 understrap_link_pages();
19 ?>
20
21 </div><!-- .entry-content -->
22
23 <footer class="entry-footer">
24
25 <?php understrap_edit_post_link(); ?>
26
27 </footer><!-- .entry-footer -->
28
29 </article><!-- #post-<?php the_ID(); ?> -->
1 <?php
2 /**
3 * Search results partial template
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10 ?>
11
12 <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
13
14 <header class="entry-header">
15
16 <?php
17 the_title(
18 sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ),
19 '</a></h2>'
20 );
21 ?>
22
23 <?php if ( 'post' === get_post_type() ) : ?>
24
25 <div class="entry-meta">
26
27 <?php understrap_posted_on(); ?>
28
29 </div><!-- .entry-meta -->
30
31 <?php endif; ?>
32
33 </header><!-- .entry-header -->
34
35 <div class="entry-summary">
36
37 <?php the_excerpt(); ?>
38
39 </div><!-- .entry-summary -->
40
41 <footer class="entry-footer">
42
43 <?php understrap_entry_footer(); ?>
44
45 </footer><!-- .entry-footer -->
46
47 </article><!-- #post-<?php the_ID(); ?> -->
1 <?php
2 /**
3 * Single post partial template
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10 ?>
11
12 <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
13
14 <header class="entry-header">
15
16 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
17
18 <div class="entry-meta">
19
20 <?php understrap_posted_on(); ?>
21
22 </div><!-- .entry-meta -->
23
24 </header><!-- .entry-header -->
25
26 <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
27
28 <div class="entry-content">
29
30 <?php
31 the_content();
32 understrap_link_pages();
33 ?>
34
35 </div><!-- .entry-content -->
36
37 <footer class="entry-footer">
38
39 <?php understrap_entry_footer(); ?>
40
41 </footer><!-- .entry-footer -->
42
43 </article><!-- #post-<?php the_ID(); ?> -->
1 <?php
2 /**
3 * Post rendering content according to caller of get_template_part
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10 ?>
11
12 <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
13
14 <header class="entry-header">
15
16 <?php
17 the_title(
18 sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ),
19 '</a></h2>'
20 );
21 ?>
22
23 <?php if ( 'post' === get_post_type() ) : ?>
24
25 <div class="entry-meta">
26 <?php understrap_posted_on(); ?>
27 </div><!-- .entry-meta -->
28
29 <?php endif; ?>
30
31 </header><!-- .entry-header -->
32
33 <?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
34
35 <div class="entry-content">
36
37 <?php
38 the_excerpt();
39 understrap_link_pages();
40 ?>
41
42 </div><!-- .entry-content -->
43
44 <footer class="entry-footer">
45
46 <?php understrap_entry_footer(); ?>
47
48 </footer><!-- .entry-footer -->
49
50 </article><!-- #post-<?php the_ID(); ?> -->
1 <?php
2 /**
3 * Template Name: Blank Page Template
4 *
5 * Template for displaying a blank page.
6 *
7 * @package Understrap
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12 ?>
13 <!DOCTYPE html>
14 <html <?php language_attributes(); ?>>
15 <head>
16 <meta charset="<?php bloginfo( 'charset' ); ?>">
17 <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
18 <meta name="viewport" content="width=device-width, initial-scale=1">
19 <link rel="profile" href="http://gmpg.org/xfn/11">
20 <?php wp_head(); ?>
21 </head>
22 <body>
23 <?php
24 while ( have_posts() ) {
25 the_post();
26 get_template_part( 'loop-templates/content', 'blank' );
27 }
28 wp_footer();
29 ?>
30 </body>
31 </html>
1 <?php
2 /**
3 * Template Name: Left and Right Sidebar Layout
4 *
5 * This template can be used to override the default template and sidebar setup
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
17 <div class="wrapper" id="page-wrapper">
18
19 <div class="<?php echo esc_attr( $container ); ?>" id="content">
20
21 <div class="row">
22
23 <?php
24 get_template_part( 'sidebar-templates/sidebar', 'left' );
25
26 if ( is_active_sidebar( 'left-sidebar' ) xor is_active_sidebar( 'right-sidebar' ) ) {
27 $class = 'col-md-8';
28 } elseif ( is_active_sidebar( 'left-sidebar' ) && is_active_sidebar( 'right-sidebar' ) ) {
29 $class = 'col-md-4';
30 } else {
31 $class = 'col-md-12';
32 }
33 ?>
34 <div class="<?php echo $class; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> content-area" id="primary">
35
36 <main class="site-main" id="main" role="main">
37
38 <?php
39 while ( have_posts() ) {
40 the_post();
41
42 get_template_part( 'loop-templates/content', 'page' );
43
44 // If comments are open or we have at least one comment, load up the comment template.
45 if ( comments_open() || get_comments_number() ) {
46 comments_template();
47 }
48 }
49 ?>
50
51 </main>
52
53 </div><!-- #primary -->
54
55 <?php get_template_part( 'sidebar-templates/sidebar', 'right' ); ?>
56
57 </div><!-- .row -->
58
59 </div><!-- #content -->
60
61 </div><!-- #page-wrapper -->
62
63 <?php
64 get_footer();
1 <?php
2 /**
3 * Template Name: Empty Page Template
4 *
5 * Template for displaying a page just with the header and footer area and a "naked" content area in between.
6 * Good for landingpages and other types of pages where you want to add a lot of custom markup.
7 *
8 * @package Understrap
9 */
10
11 // Exit if accessed directly.
12 defined( 'ABSPATH' ) || exit;
13
14 get_header();
15
16 while ( have_posts() ) :
17 the_post();
18 get_template_part( 'loop-templates/content', 'empty' );
19 endwhile;
20
21 get_footer();
1 <?php
2 /**
3 * Template Name: Full Width 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
22 ?>
23 <div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);">
24 <div class="full-image">
25 <?php $wysiwyg = apply_filters('the_content', get_post_meta(get_the_id(), 'custom_editor', true));
26 if (!empty($wysiwyg)) {?>
27 <div class="hero-text-container small">
28 <?php echo $wysiwyg; ?>
29 </div>
30 <?php } ?>
31 </div>
32 </div>
33 <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>">
34
35 <div class="<?php echo esc_attr( $container ); ?>" id="content">
36
37 <div class="row">
38
39 <div class="col-md-12 content-area" id="primary">
40
41 <main class="site-main" id="main" role="main">
42
43 <?php
44 while ( have_posts() ) {
45 the_post();
46 get_template_part( 'loop-templates/content', 'page' );
47
48 // If comments are open or we have at least one comment, load up the comment template.
49 if ( comments_open() || get_comments_number() ) {
50 comments_template();
51 }
52 }
53 ?>
54
55 </main>
56
57 </div><!-- #primary -->
58
59 </div><!-- .row -->
60
61 </div><!-- #content -->
62
63 </div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
64
65 <?php
66 get_footer();
1 <?php
2 /**
3 * Template Name: Left Sidebar Layout
4 *
5 * This template can be used to override the default template and sidebar setup
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
17 <div class="wrapper" id="page-wrapper">
18
19 <div class="<?php echo esc_attr( $container ); ?>" id="content">
20
21 <div class="row">
22
23 <?php get_template_part( 'sidebar-templates/sidebar', 'left' ); ?>
24
25 <div class="<?php echo is_active_sidebar( 'right-sidebar' ) ? 'col-md-8' : 'col-md-12'; ?> content-area" id="primary">
26
27 <main class="site-main" id="main" role="main">
28
29 <?php
30 while ( have_posts() ) {
31 the_post();
32
33 get_template_part( 'loop-templates/content', 'page' );
34
35 // If comments are open or we have at least one comment, load up the comment template.
36 if ( comments_open() || get_comments_number() ) {
37 comments_template();
38 }
39 }
40 ?>
41
42 </main>
43
44 </div><!-- #primary -->
45
46 </div><!-- .row -->
47
48 </div><!-- #content -->
49
50 </div><!-- #page-wrapper -->
51
52 <?php
53 get_footer();
1 <?php
2 /**
3 * Template Name: No Title, Full Width Page
4 *
5 * This template can be used to override the default template
6 *
7 * @package Understrap
8 */
9
10 // Exit if accessed directly.
11 defined( 'ABSPATH' ) || exit;
12
13 get_template_part( 'page-templates/fullwidthpage' );
1 <?php
2 /**
3 * Template Name: Right Sidebar Layout
4 *
5 * This template can be used to override the default template and sidebar setup
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
17 <div class="wrapper" id="page-wrapper">
18
19 <div class="<?php echo esc_attr( $container ); ?>" id="content">
20
21 <div class="row">
22
23 <div class="<?php echo is_active_sidebar( 'right-sidebar' ) ? 'col-md-8' : 'col-md-12'; ?> content-area" id="primary">
24
25 <main class="site-main" id="main" role="main">
26
27 <?php
28 while ( have_posts() ) {
29 the_post();
30
31 get_template_part( 'loop-templates/content', 'page' );
32
33 // If comments are open or we have at least one comment, load up the comment template.
34 if ( comments_open() || get_comments_number() ) {
35 comments_template();
36 }
37 }
38 ?>
39
40 </main>
41
42 </div><!-- #primary -->
43
44 <?php get_template_part( 'sidebar-templates/sidebar', 'right' ); ?>
45
46 </div><!-- .row -->
47
48 </div><!-- #content -->
49
50 </div><!-- #page-wrapper -->
51
52 <?php
53 get_footer();
1 // Add your custom JS here.
2
3 var a = document.querySelector('.blur-image');
4
5 document.addEventListener("DOMContentLoaded", function () {
6 if (!a) return !1;
7 var b = a.getAttribute("data-src"),
8 c = document.querySelector('.full-image'),
9 img = new Image;
10
11 img.src = b;
12
13 img.onload = function () {
14
15 c.classList.add('image-loaded'),
16 c.style.backgroundImage = 'url(' + b + ')';
17 };
18 });
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.