Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add footer menu, added footer styles #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

<?php get_template_part( 'template-parts/footer/site', 'info' ); ?>

<?php get_template_part( 'template-parts/footer/footer', 'menu' ); ?>

</div>

</div><!-- .footer-wrap -->
Expand Down
36 changes: 36 additions & 0 deletions template-parts/footer/footer-menu.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* Displays footer social menu if assigned
*
* @package Aino
*/

?>

<?php
if ( has_nav_menu( 'footer-menu' ) ) :
?>

<?php if ( has_nav_menu( 'footer-menu' ) ) : ?>

<nav id="footer-menu-nav" class="footer-menu-nav footer-nav" role="navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'aino' ); ?>">
<?php
wp_nav_menu(
array(
'theme_location' => 'footer-menu',
'menu_class' => 'footer-menu',
'container_class' => 'menu-footer-container',
)
);
?>
</nav><!-- .footer-social-nav -->

<?php endif; ?>

<?php endif; ?>

<?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
}
?>
13 changes: 0 additions & 13 deletions template-parts/footer/site-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@
<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://wpaino.com', 'aino' ) ); ?>" class="imprint">
<?php
/* translators: %s: theme name */
printf( esc_html__( 'Powered by %s.', 'aino' ), 'Aino' );
?>
</a>

<?php endif; ?>

<?php
if ( function_exists( 'the_privacy_policy_link' ) ) {
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
}
?>

</div><!-- end .site-info -->