forked from weblab/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses query var "is_403" set in uc-private-pages as a flag, when triggered loads 403.php
- Loading branch information
Showing
3 changed files
with
78 additions
and
15 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,53 @@ | ||
<?php | ||
/** | ||
* The template for displaying 403 pages (Forbidden). | ||
* | ||
* @package cornerstone | ||
*/ | ||
get_header(); ?> | ||
<div id="error403"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<div id="primary" class="content-area"> | ||
<main id="main" class="site-main" role="main"> | ||
<section class="error-403 not-found"> | ||
<div class="row"> | ||
<div class="col-sm-6"> | ||
<header class="page-header"> | ||
<h1 class="page-title"><?php _e( 'I\'m Sorry... <br/>That page can’t be found.', 'cs' ); ?></h1> | ||
<p class="text-muted">Error 403: Forbidden.</p> | ||
</header><!-- .page-header --> | ||
<div class="page-content"> | ||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links above or a search?', 'cs' ); ?></p> | ||
<div class="col-sm-6"> | ||
<?php get_search_form(); ?> | ||
</div> | ||
<div class="col-sm-6"> | ||
<ul> | ||
<?php | ||
if (wp_get_nav_menu_object('404')){ | ||
$defaults = array( | ||
'menu' => '404', | ||
'container' => false, | ||
'items_wrap' => '%3$s', | ||
'depth' => 1, | ||
'fallback_cb' => false | ||
); | ||
wp_nav_menu( $defaults ); | ||
} | ||
?> | ||
</ul> | ||
</div> | ||
</div><!-- .page-content --> | ||
</div> | ||
<div class="col-sm-6"> | ||
<img src="<?php bloginfo('template_directory'); ?>/img/JonathanStill.jpg" alt="Photo of a puppy."/> | ||
</div> | ||
</div> | ||
</section><!-- .error-404 --> | ||
</main><!-- #main --> | ||
</div><!-- #primary --> | ||
</div> | ||
</div> | ||
</div> | ||
<?php get_footer(); ?> |
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
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