Reescritura COMPLETA de header.php, footer.php y single.php para replicar EXACTAMENTE la estructura del template RDash (líneas 54-1155). **Issue #82 - header.php (líneas 54-133):** - ✅ Eliminados wrappers extra: <div id="page">, <div id="content"> - ✅ Top Notification Bar: container (NO container-fluid), sin cookie check - ✅ Navbar: toggler PRIMERO, collapse con menú + botón Let's Talk - ✅ Estructura HTML limpia sin wrappers innecesarios **Issue #83 - footer.php (líneas 1022-1155):** - ✅ Footer Contact Form: col-lg-5 (info) + col-lg-7 (form) correcto - ✅ Footer Principal: footer.py-5.mt-0.bg-dark.text-white - ✅ Widget areas: 3 cols pequeñas + 1 newsletter con offset - ✅ Social icons agregados: Twitter, Instagram, Facebook - ✅ Eliminado footer menu (no está en template) **Issue #84 - single.php (líneas 135-1020) - CRÍTICO:** - ✅ Hero Section: container-fluid.py-5.mb-4.hero-title con category badges + H1 - ✅ Grid layout: container > row > col-lg-9 + col-lg-3 - ✅ Orden correcto en col-lg-9: 1. Featured Image 2. Post Content 3. Share Buttons (6 redes) 4. CTA A/B Testing (variante A y B) 5. Related Posts (12 cards simples #f8f9fa) 6. Paginación - ✅ Eliminados wrappers WordPress: <article>, <header>, <footer>, <main>, <div id="primary"> - ✅ Eliminado post meta, tags, comments, post navigation **Problemas CRÍTICOS resueltos:** - ❌ Sidebar en medio → ✅ Sidebar al LADO (col-lg-3) - ❌ Related posts vibrantes → ✅ Cards simples #f8f9fa - ❌ Hero section ausente → ✅ Hero con gradiente navy - ❌ Wrappers extra → ✅ Estructura limpia - ❌ Elements faltantes → ✅ Todos los componentes presentes **Validación:** - ✅ Sintaxis PHP: 0 errores en 3 archivos - ✅ Estructura HTML: Replica exactamente template RDash - ✅ Grid layout: Bootstrap 5.3.2 correcto - ✅ Orden de componentes: Idéntico al template **Estadísticas:** - 3 archivos reescritos completamente - single.php: -258 líneas antiguas, +207 líneas nuevas - header.php: -110 líneas antiguas, +94 líneas nuevas - footer.php: -190 líneas antiguas, +151 líneas nuevas - Total: Código más limpio y fiel al template Closes #82, #83, #84 Relacionado con: #81 (FASE 2 principal), #57 (Discrepancias visuales) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,187 +1,148 @@
|
||||
<?php
|
||||
/**
|
||||
* The footer template file
|
||||
* Footer Template
|
||||
*
|
||||
* This template displays the site footer including widget areas,
|
||||
* copyright information, and the closing HTML tags.
|
||||
* Replica EXACTAMENTE la estructura del template RDash (líneas 1022-1155)
|
||||
* Sin wrappers extra.
|
||||
*
|
||||
* @package Apus_Theme
|
||||
* @since 1.0.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if (is_active_sidebar('footer-contact')) : ?>
|
||||
<!-- Footer Contact Form Section (Issue #37) -->
|
||||
<section class="footer-contact-section py-5 mt-5 bg-secondary bg-opacity-25">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-10">
|
||||
<div class="row">
|
||||
<!-- Info Column -->
|
||||
<div class="col-lg-5 mb-4 mb-lg-0">
|
||||
<h2 class="h3 mb-3"><?php _e('¿Tienes alguna pregunta?', 'apus-theme'); ?></h2>
|
||||
<p class="mb-4"><?php _e('Completa el formulario y nuestro equipo te responderá en menos de 24 horas.', 'apus-theme'); ?></p>
|
||||
<div class="contact-info">
|
||||
<div class="d-flex align-items-start mb-3">
|
||||
<i class="bi bi-telephone-fill me-3 fs-5 text-primary-orange"></i>
|
||||
<div>
|
||||
<h6 class="mb-1"><?php _e('Teléfono', 'apus-theme'); ?></h6>
|
||||
<p class="mb-0 text-muted">+52 55 1234 5678</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-start mb-3">
|
||||
<i class="bi bi-envelope-fill me-3 fs-5 text-primary-orange"></i>
|
||||
<div>
|
||||
<h6 class="mb-1"><?php _e('Email', 'apus-theme'); ?></h6>
|
||||
<p class="mb-0 text-muted">contacto@apumexico.com</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex align-items-start">
|
||||
<i class="bi bi-geo-alt-fill me-3 fs-5 text-primary-orange"></i>
|
||||
<div>
|
||||
<h6 class="mb-1"><?php _e('Ubicación', 'apus-theme'); ?></h6>
|
||||
<p class="mb-0 text-muted"><?php _e('Ciudad de México, México', 'apus-theme'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Form Column -->
|
||||
<div class="col-lg-7">
|
||||
<form id="footerContactForm">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="footerFullName" name="fullName" placeholder="<?php esc_attr_e('Nombre completo *', 'apus-theme'); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="footerCompany" name="company" placeholder="<?php esc_attr_e('Empresa', 'apus-theme'); ?>">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="tel" class="form-control" id="footerWhatsapp" name="whatsapp" placeholder="<?php esc_attr_e('WhatsApp *', 'apus-theme'); ?>" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="email" class="form-control" id="footerEmail" name="email" placeholder="<?php esc_attr_e('Correo electrónico *', 'apus-theme'); ?>" required>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<textarea class="form-control" id="footerComments" name="comments" rows="4" placeholder="<?php esc_attr_e('¿En qué podemos ayudarte?', 'apus-theme'); ?>"></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-contact-submit w-100">
|
||||
<i class="bi bi-send-fill me-2"></i><?php _e('Enviar Mensaje', 'apus-theme'); ?>
|
||||
</button>
|
||||
</div>
|
||||
<div id="footerFormMessage" class="col-12 mt-2 alert" style="display: none;"></div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- Footer Contact Form Section (Template líneas 1023-1086) -->
|
||||
<section class="py-5 mt-5 bg-secondary bg-opacity-25">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-10">
|
||||
<h2 class="h3 text-center mb-4"><?php esc_html_e('¿Tienes un proyecto en mente?', 'apus-theme'); ?></h2>
|
||||
|
||||
<div class="row">
|
||||
<!-- Contact Info - col-lg-5 (Template líneas 1030-1064) -->
|
||||
<div class="col-lg-5 mb-4 mb-lg-0">
|
||||
<h3 class="h5 mb-4"><?php esc_html_e('Información de Contacto', 'apus-theme'); ?></h3>
|
||||
|
||||
<div class="d-flex align-items-start mb-3">
|
||||
<i class="bi bi-telephone-fill fs-4 me-3" style="color: #FF8600;"></i>
|
||||
<div>
|
||||
<h6 class="mb-1"><?php esc_html_e('Teléfono', 'apus-theme'); ?></h6>
|
||||
<p class="mb-0 text-muted">+52 123 456 7890</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-start mb-3">
|
||||
<i class="bi bi-envelope-fill fs-4 me-3" style="color: #FF8600;"></i>
|
||||
<div>
|
||||
<h6 class="mb-1"><?php esc_html_e('Email', 'apus-theme'); ?></h6>
|
||||
<p class="mb-0 text-muted">contacto@apumexico.com</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-start">
|
||||
<i class="bi bi-geo-alt-fill fs-4 me-3" style="color: #FF8600;"></i>
|
||||
<div>
|
||||
<h6 class="mb-1"><?php esc_html_e('Ubicación', 'apus-theme'); ?></h6>
|
||||
<p class="mb-0 text-muted"><?php esc_html_e('Ciudad de México, México', 'apus-theme'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contact Form - col-lg-7 (Template líneas 1066-1084) -->
|
||||
<div class="col-lg-7">
|
||||
<form id="footerContactForm">
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label for="footerFullName" class="form-label"><?php esc_html_e('Nombre completo *', 'apus-theme'); ?></label>
|
||||
<input type="text" class="form-control" id="footerFullName" name="fullName" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="footerCompany" class="form-label"><?php esc_html_e('Empresa', 'apus-theme'); ?></label>
|
||||
<input type="text" class="form-control" id="footerCompany" name="company">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="footerWhatsapp" class="form-label"><?php esc_html_e('WhatsApp *', 'apus-theme'); ?></label>
|
||||
<input type="tel" class="form-control" id="footerWhatsapp" name="whatsapp" required>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="footerEmail" class="form-label"><?php esc_html_e('Email *', 'apus-theme'); ?></label>
|
||||
<input type="email" class="form-control" id="footerEmail" name="email" required>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label for="footerComments" class="form-label"><?php esc_html_e('Comentarios', 'apus-theme'); ?></label>
|
||||
<textarea class="form-control" id="footerComments" name="comments" rows="4"></textarea>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-contact-submit w-100">
|
||||
<i class="bi bi-send-fill me-2"></i><?php esc_html_e('Enviar Mensaje', 'apus-theme'); ?>
|
||||
</button>
|
||||
</div>
|
||||
<div id="footerFormMessage" class="col-12 mt-2 alert" style="display: none;"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div><!-- #content .site-content -->
|
||||
<!-- Footer Principal (Template líneas 1088-1147) -->
|
||||
<footer class="py-5 mt-0 bg-dark text-white" role="contentinfo">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- Widget Areas (3 columnas pequeñas) -->
|
||||
<?php if (is_active_sidebar('footer-1')) : ?>
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<?php dynamic_sidebar('footer-1'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<footer class="py-5 mt-0 bg-dark text-white" role="contentinfo">
|
||||
<?php if (is_active_sidebar('footer-2')) : ?>
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<?php dynamic_sidebar('footer-2'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?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">
|
||||
<?php if (is_active_sidebar('footer-3')) : ?>
|
||||
<div class="col-6 col-md-2 mb-3">
|
||||
<?php dynamic_sidebar('footer-3'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- 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; ?>
|
||||
<!-- Newsletter Area (1 columna grande) -->
|
||||
<?php if (is_active_sidebar('footer-4')) : ?>
|
||||
<div class="col-md-5 offset-md-1 mb-3">
|
||||
<?php dynamic_sidebar('footer-4'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- 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; ?>
|
||||
<!-- Copyright y Social Icons (Template líneas 1118-1132) -->
|
||||
<div class="d-flex flex-column flex-sm-row justify-content-between py-4 my-4 border-top">
|
||||
<p>© <?php echo date('Y'); ?> <?php bloginfo('name'); ?>. <?php esc_html_e('Todos los derechos reservados.', 'apus-theme'); ?></p>
|
||||
<ul class="list-unstyled d-flex">
|
||||
<li class="ms-3">
|
||||
<a class="link-light" href="#" aria-label="<?php esc_attr_e('Twitter', 'apus-theme'); ?>">
|
||||
<i class="bi bi-twitter"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="ms-3">
|
||||
<a class="link-light" href="#" aria-label="<?php esc_attr_e('Instagram', 'apus-theme'); ?>">
|
||||
<i class="bi bi-instagram"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="ms-3">
|
||||
<a class="link-light" href="#" aria-label="<?php esc_attr_e('Facebook', 'apus-theme'); ?>">
|
||||
<i class="bi bi-facebook"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- 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 -->
|
||||
|
||||
<!-- Modal Container - Carga dinámica del modal de contacto (Issue #34) -->
|
||||
<div id="modalContainer">
|
||||
<?php get_template_part( 'template-parts/modal', 'contact' ); ?>
|
||||
</div>
|
||||
<!-- Modal Container (Template línea 1150) -->
|
||||
<div id="modalContainer"></div>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user