Implementación de correcciones críticas de estructura HTML base para replicar exactamente el template RDash. Todas las correcciones validadas en staging con wp-debug plugin. **Issue #68 - Sidebar Sticky (CRÍTICO):** - sidebar.php: Eliminado wrapper <aside id="secondary"> - sidebar.php: Agregado <div class="sidebar-sticky position-sticky" style="top: 5rem;"> - sidebar.php: Eliminado <div class="sidebar-inner"> innecesario - single.php línea 245: Cambiado get_template_part('template-parts/sidebar') → get_sidebar() - Resultado: Sidebar ahora flota al lado del contenido (sticky funcional) - Template ref: index.html líneas 1164-1194 **Issue #66 - Navbar Structure:** - header.php: Eliminado navbar-brand completo (logo NO debe existir) - header.php: Movido navbar-toggler para ser PRIMERO dentro de container - header.php: Removido ms-auto de navbar-nav menu - Resultado: Orden correcto (Toggler → Collapse con menú) - Template ref: index.html líneas 264-320 **Issue #67 - Notification Bar:** - header.php: Cambiado container-fluid → container - header.php: Eliminado botón close completo (NO existe en template) - header.php: Removido position-relative de flex div - Resultado: Notification bar con estructura correcta - Template ref: index.html líneas 253-262 **Issue #69 - Footer Classes:** - footer.php línea 85: Eliminado id="colophon" class="site-footer" - footer.php línea 85: Agregado class="py-5 mt-0 bg-dark text-white" - Resultado: Footer con clases Bootstrap correctas - Template ref: index.html línea 1267 **Validación en Staging:** ✅ Sidebar sticky: <div class="sidebar-sticky position-sticky" style="top: 5rem;"> presente ✅ Navbar: Toggler primero, sin logo, sin ms-auto ✅ Notification bar: container, sin botón close ✅ Footer: clases py-5 mt-0 bg-dark text-white ✅ PHP syntax: 0 errores en 4 archivos ✅ WP Debug: Templates y template parts cargando correctamente **Estadísticas:** - 4 archivos modificados (sidebar, single, header, footer) - 27 inserciones, 47 eliminaciones (net -20 líneas) - 4 issues completados (#68 CRÍTICO, #66, #67, #69) - Template RDash index.html: 1333 líneas referenciadas 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
816 B
PHP
38 lines
816 B
PHP
<?php
|
|
/**
|
|
* The sidebar template file
|
|
*
|
|
* This template displays the primary sidebar widget area.
|
|
* If no widgets are active, the sidebar will not be displayed.
|
|
*
|
|
* @package Apus_Theme
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
// Exit if the sidebar is not active
|
|
if ( ! is_active_sidebar( 'sidebar-1' ) ) {
|
|
return;
|
|
}
|
|
?>
|
|
|
|
<div class="sidebar-sticky position-sticky" style="top: 5rem;">
|
|
<?php
|
|
/**
|
|
* Display sidebar widgets (TOC)
|
|
*
|
|
* Widgets can be added through Appearance > Widgets in the WordPress admin.
|
|
* The sidebar must be registered in functions.php for widgets to appear here.
|
|
*/
|
|
dynamic_sidebar( 'sidebar-1' );
|
|
?>
|
|
|
|
<?php
|
|
/**
|
|
* CTA Box Sidebar (Issue #36)
|
|
*
|
|
* Display CTA box below TOC on single posts
|
|
*/
|
|
get_template_part( 'template-parts/cta-box', 'sidebar' );
|
|
?>
|
|
</div><!-- .sidebar-sticky -->
|