forked from wpdesignx/rebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
offline.php
49 lines (43 loc) · 943 Bytes
/
offline.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* The template for displaying offline pages
*
* @link https://github.com/xwp/pwa-wp#offline--500-error-handling
*
* @package Base
*/
namespace Base;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Prevent showing nav menus.
add_filter( 'has_nav_menu', '__return_false' );
get_header();
webapp()->print_styles( 'base-content' );
/**
* Hook for Hero Section
*/
do_action( 'base_hero_header' );
?>
<div id="primary" class="content-area">
<div class="content-container site-container">
<main id="main" class="site-main" role="main">
<?php
/**
* Hook for anything before main content
*/
do_action( 'base_before_main_content' );
get_template_part( 'template-parts/content/error', 'offline' );
/**
* Hook for anything after main content.
*/
do_action( 'base_after_main_content' );
?>
</main><!-- #main -->
<?php
get_sidebar();
?>
</div>
</div><!-- #primary -->
<?php
get_footer();