[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-content/themes/twentysixteen/ -> footer.php (source)

   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   * @package WordPress
   8   * @subpackage Twenty_Sixteen
   9   * @since Twenty Sixteen 1.0
  10   */
  11  ?>
  12  
  13          </div><!-- .site-content -->
  14  
  15          <footer id="colophon" class="site-footer" role="contentinfo">
  16              <?php if ( has_nav_menu( 'primary' ) ) : ?>
  17                  <nav class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
  18                      <?php
  19                          wp_nav_menu(
  20                              array(
  21                                  'theme_location' => 'primary',
  22                                  'menu_class'     => 'primary-menu',
  23                              )
  24                          );
  25                      ?>
  26                  </nav><!-- .main-navigation -->
  27              <?php endif; ?>
  28  
  29              <?php if ( has_nav_menu( 'social' ) ) : ?>
  30                  <nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
  31                      <?php
  32                          wp_nav_menu(
  33                              array(
  34                                  'theme_location' => 'social',
  35                                  'menu_class'     => 'social-links-menu',
  36                                  'depth'          => 1,
  37                                  'link_before'    => '<span class="screen-reader-text">',
  38                                  'link_after'     => '</span>',
  39                              )
  40                          );
  41                      ?>
  42                  </nav><!-- .social-navigation -->
  43              <?php endif; ?>
  44  
  45              <div class="site-info">
  46                  <?php
  47                      /**
  48                       * Fires before the twentysixteen footer text for footer customization.
  49                       *
  50                       * @since Twenty Sixteen 1.0
  51                       */
  52                      do_action( 'twentysixteen_credits' );
  53                  ?>
  54                  <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
  55                  <?php
  56                  if ( function_exists( 'the_privacy_policy_link' ) ) {
  57                      the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
  58                  }
  59                  ?>
  60                  <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>" class="imprint">
  61                      <?php
  62                      /* translators: %s: WordPress */
  63                      printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' );
  64                      ?>
  65                  </a>
  66              </div><!-- .site-info -->
  67          </footer><!-- .site-footer -->
  68      </div><!-- .site-inner -->
  69  </div><!-- .site -->
  70  
  71  <?php wp_footer(); ?>
  72  </body>
  73  </html>


Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7