Advertisement
Guest User

Untitled

a guest
May 6th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $site_logo = Village::get_theme_mod( "site_footer_logo", null );
  5.  
  6. if ( $site_logo && is_array( $site_logo ) && ! empty( $site_logo['url'] ) ) {
  7. $header['style']['height'] = $site_logo['height'] . 'px';
  8. $site_logo = $site_logo['url'];
  9. } else {
  10. $site_logo = null;
  11. }
  12.  
  13. $site_title = get_bloginfo( 'name' );
  14.  
  15.  
  16.  
  17.  
  18. ?>
  19.  
  20. </div><!-- #content -->
  21.  
  22. <footer id="footer" class="site-footer" role="contentinfo">
  23. <div class="site-footer__inner">
  24. <div class="site-title">
  25. <!-- BEGIN Logo -->
  26. <a class="site-logo" href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
  27. <?php if ( null != $site_logo ): ?>
  28. <img src="<?php echo esc_url( $site_logo ); ?>" alt="<?php echo esc_attr( $site_title ); ?>" />
  29. <?php else: ?>
  30. <?php echo esc_html( $site_title ); ?>
  31. <?php endif; ?>
  32. </a>
  33. <!-- END Logo -->
  34. </div>
  35.  
  36. <?php wp_nav_menu( array( 'theme_location' => 'footer-menu' ) ); ?>
  37.  
  38.  
  39. <div class="site-info">
  40. <?php
  41. $copyright_text = Village::get_theme_mod('site_footer_text', '');
  42.  
  43. $copyright_text = str_replace('%Y', date('Y'), $copyright_text);
  44. $copyright_text = str_replace('%y', date('y'), $copyright_text );
  45.  
  46. echo wp_kses_post( $copyright_text );
  47.  
  48. ?>
  49. </div><!-- .site-info -->
  50. </div>
  51. </footer><!-- #colophon -->
  52.  
  53. </div><!-- #page -->
  54.  
  55. <?php
  56.  
  57. if( Village::get_theme_mod('enable_default_gallery', true ) ) {
  58.  
  59. if( is_watson_portfolio() ) {
  60. get_template_part( 'portfolio/PhotoSwipe' );
  61. }
  62.  
  63. }
  64. ?>
  65.  
  66. <?php wp_footer(); ?>
  67. </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement