-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
51 lines (41 loc) · 1.32 KB
/
index.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
<?php
/**
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package purdue-wp-theme
*/
?>
<?php get_header(); ?>
<?php
if (function_exists('get_field')) {
$breadCrumb = get_field('remove_breadcrumb_on_this_page')[0];
} else {
$breadCrumb = "";
}
if(function_exists('bcn_display')&&!has_block('bcn/breadcrumb-trail')&&$breadCrumb!="Yes"): ?>
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" role="navigation">
<?php bcn_display(); ?>
</div>
<?php endif; ?>
<main id="site-content" role="main" class="main-content">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content-page', get_post_type() );
}
}
?>
<?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">
<i class="fas fa-chevron-up" aria-hidden="true"></i>
</button>
<?php } ?>
</main><!-- #site-content -->
<?php get_footer(); ?>