浏览代码

stratford social nav

Maggie Cabrera 4 年之前
父节点
当前提交
00ed303270
共有 1 个文件被更改,包括 1 次插入15 次删除
  1. 1 15
      stratford/template-parts/footer/footer-content.php

+ 1 - 15
stratford/template-parts/footer/footer-content.php

@@ -1,20 +1,6 @@
 <footer id="colophon" class="site-footer responsive-max-width">
 	<?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?>
-	<?php if ( has_nav_menu( 'social' ) ) : ?>
-		<nav class="footer-navigation social-navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'varia' ); ?>">
-			<?php
-			wp_nav_menu(
-				array(
-					'theme_location' => 'social',
-					'menu_class'     => 'social-links-menu',
-					'link_before'    => '<span class="screen-reader-text">',
-					'link_after'     => '</span>' . varia_get_icon_svg( 'link' ),
-					'depth'          => 1,
-				)
-			);
-			?>
-		</nav><!-- .social-navigation -->
-	<?php endif; ?>
+	<?php get_template_part( 'template-parts/header/social', 'navigation' ); ?>
 	<div class="site-info">
 		<?php get_template_part( 'template-parts/footer/privacy-policy', '' ); ?>
 		<?php get_template_part( 'template-parts/footer/site-name', '' ); ?>