footer.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 WordPress
  10. * @subpackage Twenty_Twenty_One
  11. * @since Twenty Twenty-One 1.0
  12. */
  13. ?>
  14. </main><!-- #main -->
  15. </div><!-- #primary -->
  16. </div><!-- #content -->
  17. <?php get_template_part( 'template-parts/footer/footer-widgets' ); ?>
  18. <footer id="colophon" class="site-footer" role="contentinfo">
  19. <?php if ( has_nav_menu( 'footer' ) ) : ?>
  20. <nav aria-label="<?php esc_attr_e( 'Secondary menu', 'twentytwentyone' ); ?>" class="footer-navigation">
  21. <ul class="footer-navigation-wrapper">
  22. <?php
  23. wp_nav_menu(
  24. array(
  25. 'theme_location' => 'footer',
  26. 'items_wrap' => '%3$s',
  27. 'container' => false,
  28. 'depth' => 1,
  29. 'link_before' => '<span>',
  30. 'link_after' => '</span>',
  31. 'fallback_cb' => false,
  32. )
  33. );
  34. ?>
  35. </ul><!-- .footer-navigation-wrapper -->
  36. </nav><!-- .footer-navigation -->
  37. <?php endif; ?>
  38. <div class="site-info">
  39. <div class="site-name">
  40. <p><?php echo get_bloginfo( 'name' ); ?></p>
  41. <p><?php echo get_bloginfo( 'description' ); ?></p>
  42. <p>672 Marina Drive, Suite 110, Daniel Island, SC 29492</p>
  43. <?php
  44. $blog_id = get_current_blog_id();
  45. if ( $blog_id == 2 ) {
  46. ?>
  47. <p>Telephone: 843-881-0501 • Toll Free: 800-927-2826 • Fax: 843-884-6665</p>
  48. <p>&copy; <a href="https://tridentcharleston.com">tridentcharleston.com</a> • 2006-2022</p>
  49. <?php } else { ?>
  50. <p>Telephone: 843-884-2826 • Toll Free: 800-927-2826 • Fax: 843-884-6665</p>
  51. <p>&copy; <a href="https://hbrtwn.com">hbrtwn.com</a> • 2006-2022</p>
  52. <?php } ?>
  53. </div><!-- .site-name -->
  54. <div class="powered-by">
  55. <?php hbr_global_menu(); ?>
  56. </div><!-- .powered-by -->
  57. </div><!-- .site-info -->
  58. <!-- <span class="site-credits"><a href="https://davidwindham.com" target="_blank">(site) David Windham</span>-->
  59. </footer><!-- #colophon -->
  60. </div><!-- #page -->
  61. <?php wp_footer(); ?>
  62. <!-- Global site tag (gtag.js) - Google Analytics -->
  63. <script async src="https://www.googletagmanager.com/gtag/js?id=G-JSTGJMKX6V"></script>
  64. <script>
  65. window.dataLayer = window.dataLayer || [];
  66. function gtag(){dataLayer.push(arguments);}
  67. gtag('js', new Date());
  68. gtag('config', 'G-JSTGJMKX6V');
  69. </script>
  70. </body>
  71. </html>