Skip to content

Commit 9ea2594

Browse files
Merge pull request #62 from OpenSourceOrg/fix/header-title
Return dark background for pages
2 parents d447f8a + fcd5a01 commit 9ea2594

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

themes/osi/template-parts/header-featured-image.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
if ( function_exists( 'Sugar_Calendar\AddOn\Ticketing\Settings\get_setting' ) ) {
4-
54
$recepit_page_id = Sugar_Calendar\AddOn\Ticketing\Settings\get_setting( 'receipt_page' );
65

76
if ( get_the_ID() === absint( $recepit_page_id ) ) {
@@ -23,6 +22,15 @@
2322
</div>
2423
</div>
2524
</header>
25+
<?php elseif ( is_page() ) : ?>
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">
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+
<?php osi_the_page_dates(); ?>
31+
</div>
32+
</div>
33+
</header>
2634
<?php else : ?>
2735
<header class="entry-header cover--header no-thumbnail">
2836
<div class="wp-block-cover alignfull">

0 commit comments

Comments
 (0)