Init
This commit is contained in:
52
theme/template-parts/layout/footer-content.php
Normal file
52
theme/template-parts/layout/footer-content.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* Template part for displaying the footer content
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package studio-up
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<footer id="colophon">
|
||||
|
||||
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
|
||||
<aside role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'studio-up' ); ?>">
|
||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'menu-2' ) ) : ?>
|
||||
<nav aria-label="<?php esc_attr_e( 'Footer Menu', 'studio-up' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-2',
|
||||
'menu_class' => 'footer-menu',
|
||||
'depth' => 1,
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
$studio_up_blog_info = get_bloginfo( 'name' );
|
||||
if ( ! empty( $studio_up_blog_info ) ) :
|
||||
?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
|
||||
<?php
|
||||
endif;
|
||||
|
||||
/* translators: 1: WordPress link, 2: WordPress. */
|
||||
printf(
|
||||
'<a href="%1$s">proudly powered by %2$s</a>.',
|
||||
esc_url( __( 'https://wordpress.org/', 'studio-up' ) ),
|
||||
'WordPress'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
||||
</footer><!-- #colophon -->
|
||||
Reference in New Issue
Block a user