Cleanup: Remoción masiva de restos de WordPress y consolidación de archivos GKACHELE™

This commit is contained in:
komkida91
2026-01-27 18:00:16 +01:00
parent d9aad67066
commit 7083aa3893
874 changed files with 137670 additions and 137443 deletions

View File

@@ -0,0 +1,40 @@
<?php
/**
* Template part for displaying author Meta
*/
?>
<div class="col">
<article class="blog-post author-details">
<div class="media">
<?php
$abiz_author_description = get_the_author_meta( 'description' );
$abiz_author_id = get_the_author_meta( 'ID' );
$abiz_current_user_id = is_user_logged_in() ? wp_get_current_user()->ID : false;
?>
<div class="auth-mata">
<?php echo get_avatar( get_the_author_meta('ID'), 200); ?>
</div>
<div class="media-body author-meta-det">
<h5><?php the_author_link(); ?></h5>
<?php
if ( '' === $abiz_author_description ) {
if ( $abiz_current_user_id && $abiz_author_id === $abiz_current_user_id ) { ?>
<p>
<?php
// Translators: %1$s: <a> tag. %2$s: </a>.
printf( wp_kses_post( __( 'You haven&rsquo;t entered your Biographical Information yet. %1$sEdit your Profile%2$s now.', 'abiz' ) ), '<br/><a href="' . esc_url( get_edit_user_link( $abiz_current_user_id ) ) . '">', '</a>' );
?>
</p>
<?php }
} else {
?>
<p><?php echo wp_kses_post( $abiz_author_description ); ?></p>
<?php
}
?>
<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ) ); ?>" class="btn btn-white"><?php esc_html_e('View All Post','abiz'); ?></a>
</div>
</div>
</article>
</div>

View File

@@ -0,0 +1,37 @@
<?php
/**
* Template part for displaying a message that posts cannot be found.
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'blog-inner' ); ?>>
<div class="post-details-outer">
<?php
if ( is_home() && current_user_can( 'publish_posts' ) ) :
printf(
'<p>' . wp_kses(
/* translators: 1: link to WP admin new post page. */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'abiz' ),
array(
'a' => array(
'href' => array(),
),
)
) . '</p>',
esc_url( admin_url( 'post-new.php' ) )
);
elseif ( is_search() ) :
?>
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'abiz' ); ?></p>
<?php
else :
?>
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'abiz' ); ?></p>
<?php
endif;
?>
</div>
</article>

View File

@@ -0,0 +1,87 @@
<?php
/**
* Template part for displaying page content in page.php.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Abiz
*/
$blog_archive_ordering = get_theme_mod( 'blog_archive_ordering', abiz_get_default_option( 'blog_archive_ordering' ));
$enable_blog_excerpt = get_theme_mod( 'enable_blog_excerpt', abiz_get_default_option( 'enable_blog_excerpt' ));
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-inner'); ?>>
<div class="blog-item-current">
<div class="inner-box">
<div class="blog-header">
<?php if ( has_post_thumbnail() ) : ?>
<div class="blog-thumb">
<div class="post-thumb blog-img">
<div class="post-thumb-inner">
<div class="post-thumb">
<a href="<?php echo esc_url(get_permalink());?>">
<?php the_post_thumbnail(); ?>
</a>
</div>
</div>
</div>
<div class="post-thumb blog-img">
<div class="post-thumb-inner">
<div class="post-thumb">
<a href="<?php echo esc_url(get_permalink());?>">
<?php the_post_thumbnail(); ?>
</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="post-category <?php if ( !has_post_thumbnail() ) : esc_attr_e('not-thumb','abiz'); endif; ?>">
<i class="fas fa-folder"></i>
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="category tag"><?php the_category(' , '); ?></a>
</div>
</div>
<div class="blog-post-content">
<?php foreach ( $blog_archive_ordering as $blog_data_order ) : ?>
<?php if ( 'meta' === $blog_data_order ) : ?>
<ul class="post-meta list-item">
<li class="post-item author">
<i class="fas fa-user"></i>
<a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) ));?>">
<?php esc_html(the_author()); ?></a>
</li>
<li class="post-item date">
<i class="fas fa-calendar-days"></i>
<?php echo esc_html(get_the_date('d M Y')); ?></a>
</li>
</ul>
<?php
elseif ( 'title' === $blog_data_order ) :
if ( is_single() ) :
the_title('<h4 class="post-title">', '</h4>' );
else:
the_title( sprintf( '<h4 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h4>' );
endif;
elseif ( 'content' === $blog_data_order ) :
if($enable_blog_excerpt == '1' && !is_single()):
the_excerpt();
abiz_blog_excerpt_button();
else:
the_content(
sprintf(
__( 'Read More', 'abiz' ),
'<span class="screen-reader-text"> '.esc_html(get_the_title()).'</span>'
)
);
endif;
endif;
endforeach;
?>
</div>
</div>
</div>
</article>

View File

@@ -0,0 +1,92 @@
<?php
/**
* The default template for displaying content
*/
$blog_archive_ordering = get_theme_mod( 'blog_archive_ordering', abiz_get_default_option( 'blog_archive_ordering' ));
$enable_blog_excerpt = get_theme_mod( 'enable_blog_excerpt', abiz_get_default_option( 'enable_blog_excerpt' ));
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('blog-inner'); ?>>
<div class="blog-item-current">
<div class="inner-box">
<div class="blog-header">
<?php if ( has_post_thumbnail() ) : ?>
<div class="blog-thumb">
<div class="post-thumb blog-img">
<div class="post-thumb-inner">
<div class="post-thumb">
<a href="<?php echo esc_url(get_permalink());?>">
<?php the_post_thumbnail(); ?>
</a>
</div>
</div>
</div>
<div class="post-thumb blog-img">
<div class="post-thumb-inner">
<div class="post-thumb">
<a href="<?php echo esc_url(get_permalink());?>">
<?php the_post_thumbnail(); ?>
</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="post-category <?php if ( !has_post_thumbnail() ) : esc_attr_e('not-thumb','abiz'); endif; ?>">
<i class="fas fa-folder"></i>
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="category tag"><?php the_category(' , '); ?></a>
</div>
</div>
<div class="blog-post-content">
<?php foreach ( $blog_archive_ordering as $blog_data_order ) : ?>
<?php if ( 'meta' === $blog_data_order ) : ?>
<ul class="post-meta list-item">
<li class="post-item author">
<i class="fas fa-user"></i>
<a href="<?php echo esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) ));?>">
<?php esc_html(the_author()); ?></a>
</li>
<li class="post-item date">
<i class="fas fa-calendar-days"></i>
<?php echo esc_html(get_the_date('d M Y')); ?></a>
</li>
<li class="post-item comments">
<i class="fa fa-comment"></i>
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark" class="comments-count">
<?php echo esc_html(get_comments_number($post->ID)); ?> <?php esc_html_e('Comments','abiz'); ?></a>
</li>
</ul>
<?php
elseif ( 'title' === $blog_data_order ) :
if ( is_single() ) :
the_title('<h4 class="post-title">', '</h4>' );
else:
the_title( sprintf( '<h4 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h4>' );
endif;
elseif ( 'content' === $blog_data_order ) :
if($enable_blog_excerpt == '1' && !is_single()):
the_excerpt();
abiz_blog_excerpt_button();
else:
the_content(
sprintf(
__( 'Read More', 'abiz' ),
'<span class="screen-reader-text"> '.esc_html(get_the_title()).'</span>'
)
);
endif;
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'abiz' ),
'after' => '</div>',
) );
endif;
endforeach;
?>
</div>
</div>
</div>
</article>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Template part for displaying footer copyright.
*/
?>
<div class="footer-copyright">
<div class="container">
<div class="row align-items-center gy-lg-0 gy-4">
<div class="col-lg-12 col-md-12 col-12 text-center">
<?php get_template_part('template-parts/site','info'); ?>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,45 @@
<?php
/**
* Template part for displaying top footer.
*/
$enable_top_footer = get_theme_mod('enable_top_footer',abiz_get_default_option( 'enable_top_footer' ));
$footer_top_info = get_theme_mod('footer_top_info',abiz_get_default_option( 'footer_top_info' ));
if($enable_top_footer=='1'): ?>
<div class="footer-top">
<div class="container">
<div class="row">
<?php
if ( ! empty( $footer_top_info ) ) {
$footer_top_info = json_decode( $footer_top_info );
foreach ( $footer_top_info as $item ) {
$title = ! empty( $item->title ) ? apply_filters( 'abiz_translate_single_string', $item->title, 'Footer Top section' ) : '';
$subtitle = ! empty( $item->subtitle ) ? apply_filters( 'abiz_translate_single_string', $item->subtitle, 'Footer Top section' ) : '';
$link = ! empty( $item->link ) ? apply_filters( 'abiz_translate_single_string', $item->link, 'Footer Top section' ) : '';
$icon = ! empty( $item->icon_value ) ? apply_filters( 'abiz_translate_single_string', $item->icon_value, 'Footer Top section' ) : '';
?>
<div class="col-lg-3 col-md-6 col-12 text-center wow fadeInUp mb-4">
<aside class="widget widget-contact first">
<div class="contact-area">
<div class="contact-icon">
<?php if(!empty($icon)): ?>
<div class="contact-corn"><i class="fa <?php echo esc_attr($icon); ?>"></i></div>
<?php endif;?>
</div>
<div class="contact-info">
<?php if(!empty($title)): ?>
<h3 class="title"><?php echo esc_html($title); ?></h3>
<?php endif;?>
<?php if(!empty($subtitle)): ?>
<p class="text"><a href="<?php echo esc_url($link); ?>"><?php echo esc_html($subtitle); ?></a></p>
<?php endif;?>
</div>
</div>
</aside>
</div>
<?php } } ?>
</div>
</div>
</div>
<?php
endif; ?>

View File

@@ -0,0 +1,34 @@
<?php
/**
* Template part for displaying footer widget.
*/
?>
<div class="footer-main st-pt-default">
<div class="container">
<div class="row row-cols-1 row-cols-lg-4 row-cols-md-2 g-5">
<?php if ( is_active_sidebar( 'footer-sidebar-1' ) ) : ?>
<div class="col wow fadeInUp">
<?php dynamic_sidebar( 'footer-sidebar-1'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-sidebar-2' ) ) : ?>
<div class="col wow fadeInUp">
<?php dynamic_sidebar( 'footer-sidebar-2'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-sidebar-3' ) ) : ?>
<div class="col wow fadeInUp">
<?php dynamic_sidebar( 'footer-sidebar-3'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-sidebar-4' ) ) : ?>
<div class="col wow fadeInUp">
<?php dynamic_sidebar( 'footer-sidebar-4'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Template part for displaying Header My Account.
*/
$enable_account = get_theme_mod( 'enable_account',abiz_get_default_option( 'enable_account' ));
if($enable_account == '1') { ?>
<li class="header-account-wrapper">
<?php if ( is_user_logged_in() ) { ?>
<a href="<?php echo esc_url(wp_logout_url( home_url())); ?>"><i class="fas fa-user"></i></a>
<?php }else{ ?>
<a href="<?php echo esc_url(wp_login_url( home_url())); ?>"><i class="fas fa-user"></i></a>
<?php } ?>
</li>
<?php }

View File

@@ -0,0 +1,13 @@
<?php
/**
* Template part for displaying Header Button.
*/
$enable_hdr_btn = get_theme_mod('enable_hdr_btn',abiz_get_default_option( 'enable_hdr_btn' ));
$hdr_btn_label = get_theme_mod('hdr_btn_label',abiz_get_default_option( 'hdr_btn_label' ));
$hdr_btn_link = get_theme_mod('hdr_btn_link',abiz_get_default_option( 'hdr_btn_link' ));
$hdr_btn_target = get_theme_mod('hdr_btn_target','');
if($enable_hdr_btn == '1') { ?>
<li class="button-area">
<a href="<?php echo esc_url( $hdr_btn_link ); ?>" <?php if($hdr_btn_target == '1'): echo "target='_blank'"; endif;?> class="btn btn-primary btn-like-icon"><?php echo wp_kses_post( $hdr_btn_label ); ?><span class="bticn"><i class="fas fa-arrow-right"></i></span></a>
</li>
<?php }

View File

@@ -0,0 +1,32 @@
<?php
/**
* Template part for displaying Header Cart.
*/
$enable_cart = get_theme_mod( 'enable_cart',abiz_get_default_option( 'enable_cart' ));
if ( $enable_cart == '1' && class_exists( 'WooCommerce' ) ) { ?>
<li class="cart-wrapper">
<button type="button" class="cart-icon-wrap header-cart">
<i class="fa fa-shopping-bag"></i>
<?php
$count = WC()->cart->cart_contents_count;
$cart_url = wc_get_cart_url();
if ( $count > 0 ) {
?>
<span><?php echo esc_html( $count ); ?></span>
<?php
}
else {
?>
<span><?php esc_html_e('0','abiz'); ?></span>
<?php
}
?>
</button>
<div class="shopping-cart">
<ul class="shopping-cart-items">
<?php get_template_part('woocommerce/cart/mini','cart'); ?>
</ul>
</div>
</li>
<?php }

View File

@@ -0,0 +1,19 @@
<?php
/**
* Template part for displaying Header Search.
*/
$enable_nav_search = get_theme_mod( 'enable_nav_search',abiz_get_default_option( 'enable_nav_search' ));
if($enable_nav_search == '1') { ?>
<li class="search-button">
<button type="button" id="header-search-toggle" class="header-search-toggle" aria-expanded="false" aria-label="<?php esc_attr_e('Search Popup','abiz'); ?>"><i class="fa fa-search"></i></button>
<div class="header-search-popup">
<div class="header-search-flex">
<form method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>" aria-label="<?php esc_attr_e( 'Site Search', 'abiz' ); ?>">
<input type="search" class="form-control header-search-field" placeholder="<?php esc_attr_e( 'Type To Search', 'abiz' ); ?>" name="s" id="search">
<button type="submit" class="search-submit"><i class="fa fa-search"></i></button>
</form>
<button type="button" id="header-search-close" class="close-style header-search-close" aria-label="<?php esc_attr_e('Search Popup Close','abiz'); ?>"></button>
</div>
</div>
</li>
<?php }

View File

@@ -0,0 +1,25 @@
<?php
/**
* Template part for displaying site branding.
*/
if(has_custom_logo())
{
the_custom_logo();
}
else {
?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
<h4 class="site-title">
<?php
echo esc_html(bloginfo('name'));
?>
</h4>
</a>
<?php
}
?>
<?php
$abiz_description = get_bloginfo( 'description');
if ($abiz_description) : ?>
<p class="site-description"><?php echo esc_html($abiz_description); ?></p>
<?php endif;

View File

@@ -0,0 +1,29 @@
<?php
/**
* Template part for displaying site page header.
*/
$enable_page_header = get_theme_mod('enable_page_header','1');
if($enable_page_header == '1') {
?>
<section id="breadcrumb-section" class="breadcrumb-area breadcrumb-center" style="background: url(<?php echo esc_url(get_header_image()); ?>) center center scroll;">
<div class="container">
<div class="row">
<div class="col-12">
<div class="breadcrumb-content">
<div class="breadcrumb-heading">
<h1>
<?php abiz_page_title(); ?>
</h1>
</div>
<ol class="breadcrumb-list">
<li class="home-icon"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><i class="fa fa-home"></i></a></li>
<li>
<?php abiz_page_header(); ?>
</li>
</ol>
</div>
</div>
</div>
</div>
</section>
<?php } ?>

View File

@@ -0,0 +1,10 @@
<?php
/**
* Template part for displaying site branding.
*/
$footer_copyright = get_theme_mod('footer_copyright',abiz_get_default_option( 'footer_copyright' ));
if ( ! empty( $footer_copyright ) ){ ?>
<div class="copyright-text">
<?php echo wp_kses_post( str_replace( '{current_year}', date( 'Y' ), $footer_copyright ) ); ?>
</div>
<?php }

View File

@@ -0,0 +1,13 @@
<?php
/**
* Template part for displaying site main navigation.
*/
wp_nav_menu(
array(
'theme_location' => 'primary_menu',
'container' => '',
'menu_class' => 'main-menu',
'fallback_cb' => 'abiz_bootstrap_fallback_page_menu',
'walker' => new abiz_bootstrap_navwalker()
)
);