first commit
This commit is contained in:
27
wp-content/themes/hello-elementor/template-parts/footer.php
Normal file
27
wp-content/themes/hello-elementor/template-parts/footer.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying footer.
|
||||
*
|
||||
* @package HelloElementor
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
$footer_nav_menu = wp_nav_menu( [
|
||||
'theme_location' => 'menu-2',
|
||||
'fallback_cb' => false,
|
||||
'echo' => false,
|
||||
] );
|
||||
?>
|
||||
<footer id="site-footer" class="site-footer">
|
||||
<?php if ( $footer_nav_menu ) : ?>
|
||||
<nav class="site-navigation">
|
||||
<?php
|
||||
// PHPCS - escaped by WordPress with "wp_nav_menu"
|
||||
echo $footer_nav_menu; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user