presseddesigns

Untitled

Jul 31st, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template Part for displaying the footer.
  4. *
  5. * @package BTP_Flare_Theme
  6. */
  7. ?>
  8. <?php
  9. /* For the SEO purposes the preheader is placed here. */
  10. get_template_part( 'preheader' );
  11. get_template_part( 'prefooter' );
  12. ?>
  13. <footer id="footer" role="contentinfo" class="<?php echo btp_footer_get_class(); ?>">
  14. <div id="footer-inner">
  15. <p id="footer-text">
  16. <?php
  17. $btp_footer_text = btp_theme_get_option_value('general_footer_text');
  18. /* WPML fallback */
  19. if ( function_exists( 'icl_t' ) ) {
  20. $btp_footer_text = icl_t( 'btp_theme_options', 'general_footer_text', $btp_footer_text);
  21. }
  22. echo wp_kses_data( $btp_footer_text );
  23. ?>
  24. </p>
  25. <nav id="footer-nav">
  26. <?php
  27. if ( has_nav_menu( 'footer_nav' ) ) {
  28. $footer_nav = array(
  29. 'theme_location' => 'footer_nav',
  30. 'container' => '',
  31. 'menu_id' => 'footer-nav-menu',
  32. 'menu_class' => 'footer-menu',
  33. 'depth' => 1,
  34. );
  35. wp_nav_menu($footer_nav);
  36. } else {
  37. btp_helpmode_render(
  38. __( 'Empty Footer Navigation', 'btp_theme' ),
  39. '<p>' . sprintf( __( 'You should <a href="%s">assign a menu to the Footer Navigation Theme Location</a>', 'btp_theme' ), network_admin_url( 'nav-menus.php' ) ) . '</p>'
  40. );
  41. }
  42. ?>
  43. <?php if ( 'none' !== btp_theme_get_option_value('style_footer_back_to_top') ): ?>
  44. <p id="footer-back-to-top"><a href="#page" class="back-to"><?php _e( 'Top', 'btp_theme' ); ?></a></p>
  45. <?php endif; ?>
  46. </nav>
  47. </div><!-- #footer-inner -->
  48. <div class="background">
  49. <div class="shadow"></div>
  50. <div class="pattern"></div>
  51. <div class="flare">
  52. <div></div>
  53. <div></div>
  54. </div>
  55. </div>
  56. </footer><!-- #footer -->
  57. </div><!-- #page-inner -->
  58. </div><!-- #page -->
  59. <?php wp_footer(); ?>
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment