File tree 1 file changed +7
-7
lines changed
themes/osi/template-parts 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 14
14
15
15
?>
16
16
17
- <?php if ( has_post_thumbnail () && 'post ' !== get_post_type ( $ post ) ) : ?>
17
+ <?php if ( has_post_thumbnail () && 'post ' !== get_post_type ( $ post ) ) { ?>
18
18
<header class="entry-header cover--header">
19
19
<div class="wp-block-cover alignfull">
20
20
<img class="wp-block-cover__image-background" alt="" src="<?php the_post_thumbnail_url (); ?> " data-object-fit="cover"/>
21
21
<div class="wp-block-cover__inner-container">
22
22
</div>
23
23
</div>
24
24
</header>
25
- <?php elseif ( is_page () ) : ?>
25
+ <?php } else if ( ! has_post_thumbnail () && ! in_array ( get_post_type ( $ post ), array ( ' post ' , ' event ' ), true ) ) { ?>
26
26
<header class="entry-header cover--header no-thumbnail">
27
- <div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim ">
27
+ <div class="wp-block-cover alignfull">
28
28
<div class="wp-block-cover__inner-container">
29
- <?php echo ( ! empty ( $ page_title ) ) ? '<h1 class="entry-title page--title"> ' . esc_html ( $ page_title ) . '</h1> ' : '' ; ?>
30
29
<?php osi_the_page_dates (); ?>
31
30
</div>
32
31
</div>
33
32
</header>
34
- <?php else : ?>
33
+ <?php } elseif ( is_page () ) { ?>
35
34
<header class="entry-header cover--header no-thumbnail">
36
- <div class="wp-block-cover alignfull">
35
+ <div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim ">
37
36
<div class="wp-block-cover__inner-container">
37
+ <?php echo ( ! empty ( $ page_title ) ) ? '<h1 class="entry-title page--title"> ' . esc_html ( $ page_title ) . '</h1> ' : '' ; ?>
38
38
<?php osi_the_page_dates (); ?>
39
39
</div>
40
40
</div>
41
41
</header>
42
- <?php endif ; ?>
42
+ <?php } ?>
You can’t perform that action at this time.
0 commit comments