footer.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. * If the full site editing plugin is active then remove the widgets section,
  8. * privacy policy, and navigation area in place of the footer template part
  9. * that can be edited directly in the block editor.
  10. *
  11. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  12. *
  13. * @package WordPress
  14. * @subpackage Twenty_Nineteen
  15. * @since 1.0.0
  16. */
  17. ?>
  18. </div><!-- #content -->
  19. <footer id="colophon" class="site-footer">
  20. <?php
  21. if ( class_exists( 'A8C\FSE\WP_Template' ) ) {
  22. $template = new A8C\FSE\WP_Template();
  23. $template->output_template_content( A8C\FSE\WP_Template::FOOTER );
  24. } else {
  25. get_template_part( 'template-parts/footer/footer', 'widgets' );
  26. }
  27. ?>
  28. <div class="site-info">
  29. <?php $blog_info = get_bloginfo( 'name' ); ?>
  30. <?php if ( ! empty( $blog_info ) ) : ?>
  31. <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
  32. <?php endif; ?>
  33. <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint">
  34. <?php
  35. /* translators: %s: WordPress. */
  36. printf( __( 'Proudly powered by %s.', 'twentynineteen' ), 'WordPress' );
  37. ?>
  38. </a>
  39. <?php if ( !class_exists( 'A8C\FSE\WP_Template' ) ) : ?>
  40. <?php
  41. if ( function_exists( 'the_privacy_policy_link' ) ) {
  42. the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  43. }
  44. ?>
  45. <?php if ( has_nav_menu( 'footer' ) ) : ?>
  46. <nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'twentynineteen' ); ?>">
  47. <?php
  48. wp_nav_menu(
  49. array(
  50. 'theme_location' => 'footer',
  51. 'menu_class' => 'footer-menu',
  52. 'depth' => 1,
  53. )
  54. );
  55. ?>
  56. </nav><!-- .footer-navigation -->
  57. <?php endif; ?>
  58. <?php endif; ?>
  59. </div><!-- .site-info -->
  60. </footer><!-- #colophon -->
  61. </div><!-- #page -->
  62. <?php wp_footer(); ?>
  63. </body>
  64. </html>