STYLE Refactor footer structure: streamline action hooks, switch to blog 1 for footer template inclusion, and enhance code clarity.
This commit is contained in:
parent
1a3d61eb8a
commit
9a69cf632a
14
footer.php
14
footer.php
|
|
@ -6,11 +6,19 @@
|
|||
<?php do_action('tailpress_content_after'); ?>
|
||||
|
||||
<footer id="colophon" class="site-footer bg-gray-50 py-12" role="contentinfo">
|
||||
|
||||
<?php
|
||||
$current_blog_id = get_current_blog_id();
|
||||
|
||||
switch_to_blog(1);
|
||||
$blog1_theme_path = get_template_directory();
|
||||
restore_current_blog();
|
||||
|
||||
include($blog1_theme_path . '/template-parts/footer.php');
|
||||
?>
|
||||
<?php do_action('tailpress_footer'); ?>
|
||||
|
||||
<div class="container mx-auto text-center text-gray-500">
|
||||
© <?php echo date_i18n( 'Y' );?> - <?php echo get_bloginfo( 'name' );?>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user