footer.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * The template for displaying the footer.
  4. *
  5. * Contains the closing of the #content div and all content after.
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package popper
  10. */
  11. ?>
  12. </div><!-- #content -->
  13. <footer id="colophon" class="site-footer" role="contentinfo">
  14. <?php get_sidebar('footer'); ?>
  15. <?php if ( has_nav_menu( 'rodape' ) ) : ?>
  16. <nav id="footer-navigation" class="footer-navigation clear" role="navigation">
  17. <div class="the-footer-menu centered">
  18. <!-- depth - https://developer.wordpress.org/reference/functions/wp_nav_menu/ -->
  19. <?php wp_nav_menu( array(
  20. 'theme_location' => 'rodape',
  21. 'menu_id' => 'rodape-menu',
  22. 'depth' => 1 // mostra somente o menu no topo, os submenus nao mostra
  23. ) ); ?>
  24. </div>
  25. </nav><!-- #footer-navigation -->
  26. <?php endif; ?>
  27. <div class="site-info">
  28. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'popper' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'popper' ), 'WordPress' ); ?></a>
  29. <span class="sep"> | </span>
  30. <?php printf( esc_html__( 'Theme: %1$s', 'popper' ), '<a href="https://wordpress.org/themes/popper/" target="_none" rel="nofollow">Popper</a>' ); ?>
  31. </div><!-- .site-info -->
  32. </footer><!-- #colophon -->
  33. </div><!-- #page -->
  34. <?php wp_footer(); ?>
  35. </body>
  36. </html>