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