File tree 4 files changed +27
-9
lines changed
4 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 22
22
if ( have_posts () ) :
23
23
?>
24
24
<section class="content--page" id="content-page">
25
- <?php get_template_part ( 'template-parts/breadcrumbs ' ); ?>
26
- <?php
25
+ <?php
26
+ if ( 'event ' === get_post_type () ) {
27
+ get_template_part ( 'template-parts/breadcrumbs-sc_event ' );
28
+ } else {
29
+ get_template_part ( 'template-parts/breadcrumbs ' );
30
+ }
27
31
$ count = 0 ;
28
32
/* Start the Loop */
29
33
while ( have_posts () ) :
Original file line number Diff line number Diff line change 19
19
<main class="content--body <?php echo esc_attr ( osi_main_class () ); ?> " role="main">
20
20
21
21
<section class="content--page" id="content-page">
22
- <?php get_template_part ( 'template-parts/breadcrumbs ' ); ?>
23
-
24
22
<?php
23
+ if ( 'event ' === get_post_type () ) {
24
+ get_template_part ( 'template-parts/breadcrumbs-sc_event ' );
25
+ } else {
26
+ get_template_part ( 'template-parts/breadcrumbs ' );
27
+ }
25
28
while ( have_posts () ) :
26
29
the_post ();
27
30
Original file line number Diff line number Diff line change 13
13
14
14
<main class="content--body <?php echo esc_attr ( osi_main_class () ); ?> " role="main">
15
15
<section class="content--page" id="content-page">
16
- <?php get_template_part ( 'template-parts/breadcrumbs ' ); ?>
17
-
18
16
<?php
17
+ if ( 'event ' === get_post_type () ) {
18
+ get_template_part ( 'template-parts/breadcrumbs-sc_event ' );
19
+ } else {
20
+ get_template_part ( 'template-parts/breadcrumbs ' );
21
+ }
22
+
19
23
while ( have_posts () ) :
20
24
the_post ();
21
25
Original file line number Diff line number Diff line change 3
3
<nav class="entry-breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList">
4
4
<span itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
5
5
<meta itemprop="position" content="1">
6
- <meta itemprop="position" content="0">
7
6
<a href="<?php echo esc_url ( home_url ( '/ ' ) ); ?> " class="home-link" itemprop="item" rel="home">
8
7
<span itemprop="name"><?php echo esc_html__ ( 'Home ' , 'osi ' ); ?> </span>
9
8
</a>
10
9
</span>
10
+ <span itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
11
+ <meta itemprop="position" content="2">
12
+ <a href="<?php echo esc_url ( home_url ( '/events/ ' ) ); ?> " class="events-link" itemprop="item">
13
+ <span itemprop="name"><?php echo esc_html__ ( 'Events ' , 'osi ' ); ?> </span>
14
+ </a>
15
+ </span>
16
+ <?php if ( is_single () && get_post_type () == 'event ' ) : ?>
11
17
<span class="current-page" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
12
- <meta itemprop="position" content="1 ">
13
- <span itemprop="name"><?php echo esc_html__ ( ' Events ' , ' osi ' ); ?> </span>
18
+ <meta itemprop="position" content="3 ">
19
+ <span itemprop="name"><?php echo esc_html ( get_the_title () ); ?> </span>
14
20
</span>
21
+ <?php endif ; ?>
15
22
</nav>
16
23
</div><!-- .wrapper -->
17
24
</div><!-- .breadcrumb-area -->
You can’t perform that action at this time.
0 commit comments