forked from Purdue/purdue-wp-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-doublesided.php
63 lines (51 loc) · 1.79 KB
/
template-doublesided.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
<?php
/**
* Template Name: Sub Nav w/ Sidebar
*
* @package purdue-wp-theme
*/
?>
<?php get_header(); ?>
<?php if(function_exists('bcn_display')) : ?>
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
<?php bcn_display(); ?>
</div>
<?php endif; ?>
<div id="content" class="site-content-sidenav">
<aside class="side-nav">
<div class="aside-wrapper">
<?php purdueBrand_sideNav();?>
</div>
</aside>
<main id="site-content" role="main" class="main-content">
<div class="section">
<section class="container">
<div class="columns is-multiline with-sideContent">
<div class="column is-two-thirds-desktop is-full-tablet is-full-mobile">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', get_post_type() );
}
}
?>
</div>
<?php if (is_active_sidebar('page-sidebar')) : ?>
<aside class="column is-one-quarter-desktop is-full-tablet is-full-mobile">
<div class="side-content">
<?php dynamic_sidebar('page-sidebar'); ?>
</div>
</aside>
<?php endif; ?>
</div>
</section>
<?php if (!has_block('purdue-blocks/anchor-link-navigation')&&!has_block('purdue-blocks/custom-side-menu')) { ?>
<button id="to-top" class="to-top-hidden" aria-label="Back to Top Button">
<span class="icon"><i class="fa-solid fa-arrow-up" aria-hidden="true"></i></span>
</button>
<?php } ?>
</div>
</main><!-- #site-content -->
</div>
<?php get_footer(); ?>