This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbase.php
66 lines (58 loc) · 1.68 KB
/
base.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
use Roots\Sage\Config;
use Roots\Sage\Wrapper;
?>
<!doctype html>
<html class="no-js" <?php language_attributes(); ?>>
<?php get_template_part('templates/head'); ?>
<body <?php body_class(); ?>>
<!--[if lt IE 9]>
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage'); ?>
</div>
<![endif]-->
<nav class="visible-xs mobile-nav">
<a class="mobile-nav-close" href="#">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</a>
<?php
if (has_nav_menu('primary_navigation')) :
wp_nav_menu(['theme_location' => 'primary_navigation', 'menu_class' => 'list-unstyled']);
endif;
?>
</nav>
<?php
do_action('get_header');
get_template_part('templates/header');
if(is_single()) {
get_template_part('templates/hero', 'post');
}
else if (is_home()) {
get_template_part('templates/hero', 'blog');
}
else if (is_search()) {
}
else{
get_template_part('templates/hero');
}
?>
<div class="wrap" role="document">
<div class="content relative">
<?php include Wrapper\template_path(); ?>
</div><!-- /.content -->
</div><!-- /.wrap -->
<?php
if(is_single()){
get_template_part('templates/post', 'related');
}
else {
get_template_part('templates/recent');
}
?>
<?php
do_action('get_footer');
get_template_part('templates/footer');
wp_footer();
?>
</body>
</html>