Refactor: Reorganizar repositorio - Solo tema WordPress

Se movió el repositorio git desde la raíz de WordPress a la carpeta del tema.
Este commit limpia todos los archivos de WordPress del historial de tracking
y mantiene únicamente los archivos del tema apus-theme.

Cambios:
- Eliminado tracking de archivos de WordPress core
- Mantenido solo archivos del tema (97 archivos)
- Actualizado .gitignore para excluir carpetas de desarrollo
- Historial de commits anteriores se mantiene intacto

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-09 09:15:47 -06:00
parent 861267e699
commit bbc6ed2c98
24226 changed files with 97 additions and 5056856 deletions

123
home.php Normal file
View File

@@ -0,0 +1,123 @@
<?php
/**
* The template for displaying the blog posts index
*
* This template is used when the blog posts page is different from the front page.
* It displays a listing of recent blog posts with pagination.
* Set in WordPress Settings > Reading > "Posts page".
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#home
*
* @package Apus_Theme
* @since 1.0.0
*/
get_header();
?>
<main id="main-content" class="site-main" role="main">
<div class="content-wrapper">
<!-- Primary Content Area -->
<div id="primary" class="content-area">
<?php if ( have_posts() ) : ?>
<!-- Blog Header -->
<header class="page-header">
<?php
// Display blog page title
if ( is_home() && ! is_front_page() && get_option( 'page_for_posts' ) ) :
?>
<h1 class="page-title">
<?php echo esc_html( get_the_title( get_option( 'page_for_posts' ) ) ); ?>
</h1>
<?php
// Display blog page description if available
$blog_page = get_post( get_option( 'page_for_posts' ) );
if ( $blog_page && ! empty( $blog_page->post_content ) ) :
?>
<div class="page-description">
<?php echo wp_kses_post( wpautop( $blog_page->post_excerpt ) ); ?>
</div>
<?php endif; ?>
<?php else : ?>
<h1 class="page-title">
<?php esc_html_e( 'Blog', 'apus-theme' ); ?>
</h1>
<?php endif; ?>
</header><!-- .page-header -->
<!-- Blog Posts Loop -->
<div class="blog-posts">
<?php
// Start the WordPress Loop
while ( have_posts() ) :
the_post();
/**
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
?>
</div><!-- .blog-posts -->
<?php
/**
* Pagination
* Display navigation to next/previous set of posts when applicable.
*/
the_posts_pagination(
array(
'mid_size' => 2,
'prev_text' => sprintf(
'%s <span class="nav-prev-text">%s</span>',
'<span class="nav-icon" aria-hidden="true">&laquo;</span>',
esc_html__( 'Previous', 'apus-theme' )
),
'next_text' => sprintf(
'<span class="nav-next-text">%s</span> %s',
esc_html__( 'Next', 'apus-theme' ),
'<span class="nav-icon" aria-hidden="true">&raquo;</span>'
),
'before_page_number' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'apus-theme' ) . ' </span>',
'aria_label' => esc_attr__( 'Posts navigation', 'apus-theme' ),
)
);
else :
/**
* No posts found
* Display a message when no content is available.
*/
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</div><!-- #primary -->
<?php
/**
* Sidebar
* Display the sidebar if it's active.
*/
if ( is_active_sidebar( 'sidebar-1' ) ) :
get_sidebar();
endif;
?>
</div><!-- .content-wrapper -->
</main><!-- #main-content -->
<?php
get_footer();