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
20
footer.php
20
footer.php
|
|
@ -1,16 +1,24 @@
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<?php do_action( 'tailpress_content_end' ); ?>
|
<?php do_action('tailpress_content_end'); ?>
|
||||||
|
|
||||||
|
|
||||||
<?php do_action( 'tailpress_content_after' ); ?>
|
<?php do_action('tailpress_content_after'); ?>
|
||||||
|
|
||||||
<footer id="colophon" class="site-footer bg-gray-50 py-12" role="contentinfo">
|
<footer id="colophon" class="site-footer bg-gray-50 py-12" role="contentinfo">
|
||||||
<?php do_action( 'tailpress_footer' ); ?>
|
|
||||||
|
|
||||||
<div class="container mx-auto text-center text-gray-500">
|
<?php
|
||||||
© <?php echo date_i18n( 'Y' );?> - <?php echo get_bloginfo( 'name' );?>
|
$current_blog_id = get_current_blog_id();
|
||||||
</div>
|
|
||||||
|
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'); ?>
|
||||||
|
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user