Files
roi-theme/wp-content/themes/apus-theme/front-page.php
FrankZamora 7ba9080f57 Agregar estructura completa del tema APUS con Bootstrap 5 y optimizaciones de rendimiento
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>
2025-11-04 09:31:47 -06:00

134 lines
3.0 KiB
PHP

<?php
/**
* The template for displaying the static front page
*
* This template is used when a static page is set as the front page
* in WordPress Settings > Reading.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#front-page
*
* @package Apus_Theme
* @since 1.0.0
*/
get_header();
?>
<main id="main-content" class="site-main front-page" role="main">
<div class="content-wrapper">
<!-- Primary Content Area -->
<div id="primary" class="content-area">
<?php
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Featured Image (Hero Section) -->
<?php if ( has_post_thumbnail() ) : ?>
<div class="hero-section">
<?php
the_post_thumbnail(
'full',
array(
'alt' => the_title_attribute(
array(
'echo' => false,
)
),
'loading' => 'eager',
)
);
?>
</div>
<?php endif; ?>
<!-- Front Page Header -->
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</header><!-- .entry-header -->
<!-- Front Page Content -->
<div class="entry-content">
<?php
the_content();
// Display page links for paginated pages
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'apus-theme' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<!-- Front Page Footer -->
<?php if ( get_edit_post_link() ) : ?>
<footer class="entry-footer">
<?php
// Edit post link for logged-in users with permission
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Page title. Only visible to screen readers. */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'apus-theme' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php
// Display comments section if enabled
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
<?php
/**
* Hook to display additional content on front page
* This can be used to add featured posts, testimonials, etc.
*/
do_action( 'apus_front_page_content' );
?>
</div><!-- #primary -->
<?php
/**
* Sidebar on Front Page
* Only display if sidebar is active
*/
if ( is_active_sidebar( 'sidebar-1' ) ) :
get_sidebar();
endif;
?>
</div><!-- .content-wrapper -->
</main><!-- #main-content -->
<?php
get_footer();