Modern Business: restore site info when rendering the FSE footer (#1096)
Shows the default site info line after the footer template part content. Also adds header and footer tags to corresponding template parts to bring them closer to overall theme's structure.
This commit is contained in:
parent
35dbc77f74
commit
3261c1a689
6 changed files with 34 additions and 21 deletions
|
@ -17,12 +17,25 @@
|
|||
|
||||
<?php
|
||||
// If FSE plugin is active, use Footer template part for content.
|
||||
if( class_exists( 'Full_Site_Editing' ) ) {
|
||||
fse_get_footer();
|
||||
}
|
||||
if ( class_exists( 'Full_Site_Editing' ) ) : ?>
|
||||
<footer id="colophon" class="site-footer">
|
||||
<?php fse_get_footer(); ?>
|
||||
<div class="site-info">
|
||||
<?php $blog_info = get_bloginfo( 'name' ); ?>
|
||||
<?php if ( ! empty( $blog_info ) ) : ?>
|
||||
<a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint">
|
||||
<?php
|
||||
/* translators: %s: WordPress. */
|
||||
printf( __( 'Proudly powered by %s.', 'twentynineteen' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
// Otherwise we'll fall back to default Twenty Nineteen footer below.
|
||||
?>
|
||||
<?php // Otherwise we'll fall back to default Twenty Nineteen footer below. ?>
|
||||
|
||||
<?php if( ! class_exists( 'Full_Site_Editing' ) ) : ?>
|
||||
<footer id="colophon" class="site-footer">
|
||||
|
|
|
@ -24,14 +24,14 @@
|
|||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentynineteen' ); ?></a>
|
||||
|
||||
<?php
|
||||
// If FSE plugin is active, use Header template part for content.
|
||||
if( class_exists( 'Full_Site_Editing' ) ) {
|
||||
fse_get_header();
|
||||
}
|
||||
<?php // If FSE plugin is active, use Header template part for content. ?>
|
||||
<?php if( class_exists( 'Full_Site_Editing' ) ) : ?>
|
||||
<header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>">
|
||||
<?php fse_get_header(); ?>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
// Otherwise we'll fall back to default Twenty Nineteen header below.
|
||||
?>
|
||||
<?php // Otherwise we'll fall back to default Twenty Nineteen header below. ?>
|
||||
|
||||
<?php if( ! class_exists( 'Full_Site_Editing' ) ) : ?>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
text-align: left;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: 0 $size__site-margins 2em;
|
||||
margin: 0 $size__site-margins;
|
||||
}
|
||||
|
||||
.wp-block-separator {
|
||||
|
@ -27,7 +27,7 @@
|
|||
margin: calc(2 * #{$size__spacing-unit}) $size__spacing-unit;
|
||||
|
||||
@include media(tablet) {
|
||||
margin: calc(3 * #{$size__spacing-unit}) auto;
|
||||
margin: 0 $size__site-margins;
|
||||
max-width: $size__site-tablet-content;
|
||||
}
|
||||
|
||||
|
@ -68,4 +68,4 @@
|
|||
margin-right: $size__spacing-unit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -150,7 +150,7 @@ Modern Business Editor Styles
|
|||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.site-footer {
|
||||
margin: 0 calc(10% + 60px) 2em;
|
||||
margin: 0 calc(10% + 60px);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ Modern Business Editor Styles
|
|||
@media only screen and (min-width: 768px) {
|
||||
#colophon .widget-area,
|
||||
#colophon .site-info {
|
||||
margin: calc(3 * 1rem) auto;
|
||||
margin: 0 calc(10% + 60px);
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3207,7 +3207,7 @@ body.page .main-navigation {
|
|||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.site-footer {
|
||||
margin: 1em calc(10% + 60px);
|
||||
margin: 0 calc(10% + 60px);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3226,7 +3226,7 @@ body.page .main-navigation {
|
|||
@media only screen and (min-width: 768px) {
|
||||
#colophon .widget-area,
|
||||
#colophon .site-info {
|
||||
margin: calc(3 * 1rem) auto;
|
||||
margin: 0 calc(10% + 60px);
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3213,7 +3213,7 @@ body.page .main-navigation {
|
|||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.site-footer {
|
||||
margin: 0 calc(10% + 60px) 2em;
|
||||
margin: 0 calc(10% + 60px);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3232,7 +3232,7 @@ body.page .main-navigation {
|
|||
@media only screen and (min-width: 768px) {
|
||||
#colophon .widget-area,
|
||||
#colophon .site-info {
|
||||
margin: calc(3 * 1rem) auto;
|
||||
margin: 0 calc(10% + 60px);
|
||||
max-width: calc(8 * (100vw / 12) - 28px);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue