[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref