File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 if ( have_posts () ) :
2323 ?>
2424 <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+ }
2731 $ count = 0 ;
2832 /* Start the Loop */
2933 while ( have_posts () ) :
Original file line number Diff line number Diff line change 1919 <main class="content--body <?php echo esc_attr ( osi_main_class () ); ?> " role="main">
2020
2121 <section class="content--page" id="content-page">
22- <?php get_template_part ( 'template-parts/breadcrumbs ' ); ?>
23-
2422 <?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+ }
2528 while ( have_posts () ) :
2629 the_post ();
2730
Original file line number Diff line number Diff line change 1313
1414 <main class="content--body <?php echo esc_attr ( osi_main_class () ); ?> " role="main">
1515 <section class="content--page" id="content-page">
16- <?php get_template_part ( 'template-parts/breadcrumbs ' ); ?>
17-
1816 <?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+
1923 while ( have_posts () ) :
2024 the_post ();
2125
Original file line number Diff line number Diff line change 33 <nav class="entry-breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList">
44 <span itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
55 <meta itemprop="position" content="1">
6- <meta itemprop="position" content="0">
76 <a href="<?php echo esc_url ( home_url ( '/ ' ) ); ?> " class="home-link" itemprop="item" rel="home">
87 <span itemprop="name"><?php echo esc_html__ ( 'Home ' , 'osi ' ); ?> </span>
98 </a>
109 </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 ' ) : ?>
1117 <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>
1420 </span>
21+ <?php endif ; ?>
1522 </nav>
1623 </div><!-- .wrapper -->
1724</div><!-- .breadcrumb-area -->
You can’t perform that action at this time.
0 commit comments