Advertisement
marutim

footer.php

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