我想了解WP中創建的主題。根據我的理解,wp_footer()在主頁面包含footer.php。但我不明白的是爲什麼wp_footer()在footer.php中被調用,就像在二十七頁腳中一樣?爲什麼在wp_footer()footer.php本身中調用wp_footer()?
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="wrap">
<?php
get_template_part('template-parts/footer/footer', 'widgets');
if (has_nav_menu('social')) : ?>
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e('Footer Social Links Menu', 'twentyseventeen'); ?>">
<?php
wp_nav_menu(array(
'theme_location' => 'social',
'menu_class' => 'social-links-menu',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>' . twentyseventeen_get_svg(array('icon' => 'chain')),
));
?>
</nav><!-- .social-navigation -->
<?php endif;
get_template_part('template-parts/footer/site', 'info');
?>
</div><!-- .wrap -->
</footer><!-- #colophon -->
</div><!-- .site-content-contain -->
</div><!-- #page -->
<?php wp_footer(); Here?>