Improve formatting of footer.php

This commit is contained in:
Tetrakern 2024-06-14 11:45:02 +02:00
parent 4b3c948157
commit 388c572a3e

View File

@ -47,17 +47,20 @@ if ( get_theme_mod( 'footer_style' ) === 'isolated' ) {
// Hook after #main closes // Hook after #main closes
do_action( 'fictioneer_after_main', $args ); do_action( 'fictioneer_after_main', $args );
// Render footer
if ( ! ( $args['blank'] ?? 0 ) ) {
// Elementor?
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) {
// Start HTML ---> ?>
<footer class="footer layout-links <?php echo implode( ' ', $extra_classes ); ?>">
<div class="footer__wrapper"><?php do_action( 'fictioneer_site_footer', $args ); ?></div>
</footer>
<?php // <--- End HTML
}
}
?> ?>
<?php if ( ! ( $args['blank'] ?? 0 ) ) :
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) :
?>
<footer class="footer layout-links <?php echo implode( ' ', $extra_classes ); ?>">
<div class="footer__wrapper">
<?php do_action( 'fictioneer_site_footer', $args ); ?>
</div>
</footer>
<?php endif; endif; ?>
</div> <!-- #site --> </div> <!-- #site -->
<?php <?php
@ -76,7 +79,6 @@ do_action( 'fictioneer_after_main', $args );
} }
?> ?>
<?php /* Adding the AJAX nonce this way allows caching plugins to update it dynamically. */ ?>
<input id="general-fictioneer-nonce" name="fictioneer_nonce" type="hidden" value="<?php echo wp_create_nonce( 'fictioneer_nonce' ); ?>"> <input id="general-fictioneer-nonce" name="fictioneer_nonce" type="hidden" value="<?php echo wp_create_nonce( 'fictioneer_nonce' ); ?>">
<?php <?php