footer.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * The template for displaying the footer
  4. *
  5. * Contains footer content and the closing of the #main and #page div elements.
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Fourteen
  9. * @since Twenty Fourteen 1.0
  10. */
  11. ?>
  12. </div><!-- #main -->
  13. </div><!-- #page -->
  14. <footer id="colophon" class="site-footer" role="contentinfo">
  15. <div class="inner-wrapper">
  16. <div class="row">
  17. <div class="col-3">
  18. <p>115 Reynolds Park Dr<br />Greenwood, SC 29646<br /><br />Tel: 864-229-1409<br />Fax: 864-229-0003</p>
  19. <div class="social">
  20. <ul class='social-links'>
  21. <li><a href='https://www.facebook.com/ClimateControlofGreenwood' target='_blank'><img width="22" src="<?php bloginfo('stylesheet_directory'); ?>/images/fb-icon.png"/> FOLLOW US</a></li>
  22. </ul>
  23. </div>
  24. <div class="credits">
  25. <?php echo str_replace( '[date]', date("Y"), get_field('footer_right', 'options') ); ?>
  26. </div>
  27. </div>
  28. <div class="col-3">
  29. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
  30. </div>
  31. <div class="col-3">
  32. <h4>Climate Control Tips</h4>
  33. <ul>
  34. <?php
  35. $recent_posts = wp_get_recent_posts();
  36. foreach( $recent_posts as $recent ){
  37. echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
  38. }
  39. wp_reset_query();
  40. ?>
  41. </ul>
  42. </div>
  43. <div class="col-3">
  44. <ul>
  45. <?php wp_list_categories( array(
  46. 'show_count' => false,
  47. 'exclude' => array( 1 )
  48. ) ); ?>
  49. </ul>
  50. <ul>
  51. <?php wp_tag_cloud(); ?>
  52. </ul>
  53. </div>
  54. </div>
  55. </div>
  56. </footer><!-- #colophon -->
  57. <?php wp_footer(); ?>
  58. <script>
  59. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  60. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  61. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  62. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  63. ga('create', 'UA-101520496-1', 'auto');
  64. ga('send', 'pageview');
  65. </script>
  66. </body>
  67. </html>