Se implementa tema WordPress personalizado para Análisis de Precios Unitarios con funcionalidades avanzadas: - Sistema de templates (front-page, single, archive, page, 404, search) - Integración de Bootstrap 5.3.8 con estructura modular de assets - Panel de opciones del tema con Customizer API - Optimizaciones de rendimiento (Critical CSS, Image Optimization, Performance) - Funcionalidades SEO y compatibilidad con Rank Math - Sistema de posts relacionados y tabla de contenidos - Badge de categorías y manejo de AdSense diferido - Tipografías Google Fonts configurables - Documentación completa del tema y guías de uso 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
115 lines
3.7 KiB
PHP
115 lines
3.7 KiB
PHP
<?php
|
|
/**
|
|
* The footer template file
|
|
*
|
|
* This template displays the site footer including widget areas,
|
|
* copyright information, and the closing HTML tags.
|
|
*
|
|
* @package Apus_Theme
|
|
* @since 1.0.0
|
|
*/
|
|
?>
|
|
|
|
</div><!-- #content .site-content -->
|
|
|
|
<footer id="colophon" class="site-footer" role="contentinfo">
|
|
|
|
<?php if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) || is_active_sidebar( 'footer-4' ) ) : ?>
|
|
<div class="footer-widgets">
|
|
<div class="container">
|
|
<div class="row g-4">
|
|
|
|
<!-- Footer Widget Area 1 -->
|
|
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
|
|
<div class="<?php echo esc_attr( apus_get_footer_column_class( 1 ) ); ?>">
|
|
<aside class="footer-widget-area footer-widget-1" role="complementary" aria-label="<?php esc_attr_e( 'Footer Widget Area 1', 'apus-theme' ); ?>">
|
|
<?php dynamic_sidebar( 'footer-1' ); ?>
|
|
</aside>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<!-- Footer Widget Area 2 -->
|
|
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
|
|
<div class="<?php echo esc_attr( apus_get_footer_column_class( 2 ) ); ?>">
|
|
<aside class="footer-widget-area footer-widget-2" role="complementary" aria-label="<?php esc_attr_e( 'Footer Widget Area 2', 'apus-theme' ); ?>">
|
|
<?php dynamic_sidebar( 'footer-2' ); ?>
|
|
</aside>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<!-- Footer Widget Area 3 -->
|
|
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
|
|
<div class="<?php echo esc_attr( apus_get_footer_column_class( 3 ) ); ?>">
|
|
<aside class="footer-widget-area footer-widget-3" role="complementary" aria-label="<?php esc_attr_e( 'Footer Widget Area 3', 'apus-theme' ); ?>">
|
|
<?php dynamic_sidebar( 'footer-3' ); ?>
|
|
</aside>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<!-- Footer Widget Area 4 -->
|
|
<?php if ( is_active_sidebar( 'footer-4' ) ) : ?>
|
|
<div class="<?php echo esc_attr( apus_get_footer_column_class( 4 ) ); ?>">
|
|
<aside class="footer-widget-area footer-widget-4" role="complementary" aria-label="<?php esc_attr_e( 'Footer Widget Area 4', 'apus-theme' ); ?>">
|
|
<?php dynamic_sidebar( 'footer-4' ); ?>
|
|
</aside>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
</div><!-- .row -->
|
|
</div><!-- .container -->
|
|
</div><!-- .footer-widgets -->
|
|
<?php endif; ?>
|
|
|
|
<!-- Footer Bottom / Copyright Section -->
|
|
<div class="footer-bottom">
|
|
<div class="container">
|
|
<div class="row align-items-center">
|
|
|
|
<!-- Copyright Information -->
|
|
<div class="col-md-6 col-12 text-center text-md-start mb-3 mb-md-0">
|
|
<div class="copyright-text">
|
|
<?php
|
|
printf(
|
|
/* translators: 1: Copyright symbol, 2: Current year, 3: Site name */
|
|
esc_html__( '%1$s %2$s %3$s. Todos los derechos reservados.', 'apus-theme' ),
|
|
'©',
|
|
esc_html( gmdate( 'Y' ) ),
|
|
'<span class="site-name">' . esc_html( get_bloginfo( 'name' ) ) . '</span>'
|
|
);
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer Menu -->
|
|
<div class="col-md-6 col-12 text-center text-md-end">
|
|
<?php
|
|
if ( has_nav_menu( 'footer' ) ) {
|
|
wp_nav_menu(
|
|
array(
|
|
'theme_location' => 'footer',
|
|
'menu_id' => 'footer-menu',
|
|
'menu_class' => 'footer-menu',
|
|
'container' => 'nav',
|
|
'container_class' => 'footer-navigation',
|
|
'container_aria_label' => esc_attr__( 'Footer Menu', 'apus-theme' ),
|
|
'depth' => 1,
|
|
'fallback_cb' => false,
|
|
)
|
|
);
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
</div><!-- .row -->
|
|
</div><!-- .container -->
|
|
</div><!-- .footer-bottom -->
|
|
|
|
</footer><!-- #colophon -->
|
|
|
|
</div><!-- #page -->
|
|
|
|
<?php wp_footer(); ?>
|
|
|
|
</body>
|
|
</html>
|