5a8c634d by Jeff Balicki

test

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 412e4539
1 <?php
2 /**
3 * The template for displaying 404 pages (not found)
4 *
5 * @package Understrap
6 */
7
8 // Exit if accessed directly.
9 defined( 'ABSPATH' ) || exit;
10
11 get_header();
12
13 $container = get_theme_mod( 'understrap_container_type' );
14 ?>
15
16 <div class="wrapper" id="error-404-wrapper">
17
18 <div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
19
20 <div class="row">
21
22 <div class="col-md-12 content-area" id="primary">
23
24 <main class="site-main" id="main">
25
26 <section class="error-404 not-found">
27
28 <header class="page-header">
29
30 <h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'understrap' ); ?></h1>
31
32 </header><!-- .page-header -->
33
34 <div class="page-content">
35
36 <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'understrap' ); ?></p>
37
38 <?php get_search_form(); ?>
39
40
41 </div><!-- .page-content -->
42
43 </section><!-- .error-404 -->
44
45 </main>
46
47 </div><!-- #primary -->
48
49 </div><!-- .row -->
50
51 </div><!-- #content -->
52
53 </div><!-- #error-404-wrapper -->
54
55 <?php
56 get_footer();
...@@ -14734,6 +14734,21 @@ input[type=checkbox] { ...@@ -14734,6 +14734,21 @@ input[type=checkbox] {
14734 align-content: center; 14734 align-content: center;
14735 } 14735 }
14736 14736
14737 .error-404 {
14738 min-height: 60vh;
14739 margin-top: 60px;
14740 }
14741 .error-404 .page-title {
14742 color: #0484B8;
14743 margin-bottom: 40px;
14744 }
14745 .error-404 .page-content {
14746 margin-bottom: 40px;
14747 }
14748 .error-404 .search-form {
14749 margin-bottom: 40px;
14750 }
14751
14737 .pre-header { 14752 .pre-header {
14738 background-color: #0484b8; 14753 background-color: #0484b8;
14739 color: #fff; 14754 color: #fff;
......
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.
...@@ -22,11 +22,11 @@ function the_bread() { ...@@ -22,11 +22,11 @@ function the_bread() {
22 foreach ( $flour as $crumb ) { 22 foreach ( $flour as $crumb ) {
23 23
24 $slug = esc_html( $crumb ); 24 $slug = esc_html( $crumb );
25 25 if($crumb == 'courses' ||empty($crumb)){
26 $url = esc_url( $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . '/' . substr( implode( '/', $flour ), 0, strpos( implode( '/', $flour ), $crumb ) ) . $crumb. '/' );
27 if($crumb == 'courses'){
28 continue; 26 continue;
29 } 27 }
28 $url = esc_url( $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . '/' . substr( implode( '/', $flour ), 0, strpos( implode( '/', $flour ), $crumb ) ) . $crumb. '/' );
29
30 array_push( $crumbs, ( object ) 30 array_push( $crumbs, ( object )
31 [ 31 [
32 'slug' => $slug, 32 'slug' => $slug,
......
...@@ -256,5 +256,19 @@ margin: 40px 0px; ...@@ -256,5 +256,19 @@ margin: 40px 0px;
256 display: flex; 256 display: flex;
257 flex-wrap: wrap; 257 flex-wrap: wrap;
258 align-content: center; 258 align-content: center;
259 }
259 260
261 .error-404{
262 min-height: 60vh;
263 margin-top: 60px;
264 .page-title{
265 color: #0484B8;
266 margin-bottom: 40px;
267 }
268 .page-content{
269 margin-bottom: 40px;
270 }
271 .search-form{
272 margin-bottom: 40px;
273 }
260 } 274 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
5 Author: Tenzing Communications 5 Author: Tenzing Communications
6 Author URI: https://tenzingbrand.com 6 Author URI: https://tenzingbrand.com
7 Template: understrap 7 Template: understrap
8 Version: 1.1.0031 8 Version: 1.1.0032
9 License: GNU General Public License v2 or later 9 License: GNU General Public License v2 or later
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 Text Domain: understrap-child 11 Text Domain: understrap-child
......