Files
xmartica/wp-content/themes/xmartica/footer.php
T
2026-10-08 10:39:09 -06:00

179 lines
10 KiB
PHP

<?php
/**
* Site footer.
*
* @package Xmartica
*/
$xmartica_footer_claim = get_post_meta( get_queried_object_id(), 'footer_claim', true );
$xmartica_footer_is_enterprise = is_page_template( 'page-consultoria-de-transformacion-empresarial.php' ) || is_page( 'consultoria-de-transformacion-empresarial' );
$xmartica_footer_cta_text = esc_html__( 'Habla con un especialista', 'html5blank' );
if ( ! is_string( $xmartica_footer_claim ) || '' === trim( $xmartica_footer_claim ) ) {
$xmartica_footer_claim = esc_html__( 'Transformación con ejecución real.', 'html5blank' );
}
$xmartica_footer_claim = trim( wp_strip_all_tags( $xmartica_footer_claim ) );
$xmartica_footer_mark = '';
if ( preg_match( '/([.!?])$/u', $xmartica_footer_claim, $xmartica_mark_match ) ) {
$xmartica_footer_mark = $xmartica_mark_match[1];
$xmartica_footer_claim = preg_replace( '/[.!?]$/u', '', $xmartica_footer_claim );
}
$xmartica_footer_words = preg_split( '/\s+/u', $xmartica_footer_claim, -1, PREG_SPLIT_NO_EMPTY );
$xmartica_footer_accent = '';
$xmartica_footer_lead = '';
if ( $xmartica_footer_words ) {
$xmartica_accent_count = min( 2, count( $xmartica_footer_words ) );
$xmartica_accent_words = array_splice( $xmartica_footer_words, -$xmartica_accent_count );
$xmartica_footer_lead = implode( ' ', $xmartica_footer_words );
$xmartica_footer_accent = implode( ' ', $xmartica_accent_words );
}
if ( $xmartica_footer_is_enterprise ) {
$xmartica_footer_cta_text = esc_html__( 'Habla con un consultor de transformación empresarial', 'html5blank' );
}
$xmartica_footer_logo_id = 18;
$xmartica_footer_ets_id = 19;
$xmartica_footer_cta_arrow_id = 23;
$xmartica_footer_contact_arrow_id = 24;
$xmartica_footer_link_arrow_id = 25;
$xmartica_footer_separator_id = 26;
$xmartica_footer_logo = wp_get_attachment_url( $xmartica_footer_logo_id );
$xmartica_footer_ets = wp_get_attachment_url( $xmartica_footer_ets_id );
$xmartica_footer_cta_arrow = wp_get_attachment_url( $xmartica_footer_cta_arrow_id );
$xmartica_footer_contact_arrow = wp_get_attachment_url( $xmartica_footer_contact_arrow_id );
$xmartica_footer_link_arrow = wp_get_attachment_url( $xmartica_footer_link_arrow_id );
$xmartica_footer_separator = wp_get_attachment_url( $xmartica_footer_separator_id );
$xmartica_footer_contact_url = home_url( '/#contacto' );
$xmartica_footer_faqs = home_url( '/#preguntas-frecuentes' );
$xmartica_footer_privacy = get_privacy_policy_url();
$xmartica_footer_service_links = array(
array(
'label' => esc_html__( 'Consultoría de Transformación Empresarial', 'html5blank' ),
'path' => '/consultoria-de-transformacion-empresarial',
),
array(
'label' => esc_html__( 'Consultoría de Transformación Digital', 'html5blank' ),
'path' => '/consultoria-de-transformacion-digital',
),
array(
'label' => esc_html__( 'Consultoría de Mejora de Procesos', 'html5blank' ),
'path' => '/consultoria-de-mejora-de-procesos',
),
array(
'label' => esc_html__( 'Consultoría de Datos y Analítica', 'html5blank' ),
'path' => '/consultoria-de-datos-y-analitica',
),
array(
'label' => esc_html__( 'Consultoría de Estrategia de IA', 'html5blank' ),
'path' => '/consultoria-de-estrategia-de-ia',
),
array(
'label' => esc_html__( 'Consultoría de Gestión del Cambio', 'html5blank' ),
'path' => '/consultoria-de-gestion-del-cambio',
),
array(
'label' => esc_html__( 'Estrategia de Experiencia de Cliente', 'html5blank' ),
'path' => '/estrategia-de-experiencia-de-cliente',
),
);
if ( ! $xmartica_footer_privacy ) {
$xmartica_footer_privacy = home_url( '/privacy-policy/' );
}
?>
<footer id="site-footer" class="site-footer px-[240px] pb-[102px] pt-[60px] text-white xxxl:px-[120px] xxl:px-[72px] xl:px-8 lg:px-4 lg:pb-12" style="background: linear-gradient(to bottom, #122239 0%, #0f1a2c 100%);" data-node-id="334:3408">
<div class="mx-auto flex w-full max-w-[1440px] flex-col items-center gap-5">
<h2 class="m-0 <?php echo $xmartica_footer_is_enterprise ? 'w-full max-w-[1220px]' : 'w-[494px]'; ?> text-center text-[55px] font-semibold leading-[60px] lg:w-full lg:max-w-[900px] lg:text-[42px] lg:leading-[48px] sm:text-[34px] sm:leading-[40px]" data-node-id="332:1112">
<?php if ( $xmartica_footer_is_enterprise ) : ?>
<span class="block">
<?php echo esc_html__( 'Transformación empresarial que ', 'html5blank' ); ?><span class="bg-gradient-to-r from-color-2 from-[75.481%] to-white bg-clip-text text-transparent"><?php echo esc_html__( 'llega hasta la', 'html5blank' ); ?></span>
</span>
<span class="block bg-gradient-to-r from-color-2 from-[75.481%] to-white bg-clip-text text-transparent"><?php echo esc_html__( 'operación.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Estrategia, modelo operativo y ejecución —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'diseñados y entregados juntos.', 'html5blank' ); ?></span>
<?php else : ?>
<?php if ( $xmartica_footer_lead ) : ?>
<span><?php echo esc_html( $xmartica_footer_lead ); ?></span>
<?php endif; ?>
<?php if ( $xmartica_footer_lead && $xmartica_footer_accent ) : ?> <?php endif; ?>
<span class="bg-gradient-to-r from-color-2 from-[75.481%] to-white bg-clip-text text-transparent"><?php echo esc_html( $xmartica_footer_accent ); ?></span><span><?php echo esc_html( $xmartica_footer_mark ); ?></span>
<?php endif; ?>
</h2>
<a class="flex h-[47px] items-center justify-center gap-5 rounded-[50px] px-10 py-3 text-lg font-normal text-white no-underline transition-colors hover:text-color-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-color-2" href="<?php echo esc_url( $xmartica_footer_contact_url ); ?>" data-node-id="332:1113">
<span><?php echo esc_html( $xmartica_footer_cta_text ); ?></span>
<span class="flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-color-2" aria-hidden="true" data-node-id="332:1115">
<?php if ( $xmartica_footer_cta_arrow ) : ?>
<img class="block h-[15px] w-[15px] max-w-none" src="<?php echo esc_url( $xmartica_footer_cta_arrow ); ?>" alt="" width="15" height="15" data-node-id="332:1116">
<?php endif; ?>
</span>
</a>
<div class="flex min-h-[330px] w-[1341px] max-w-full items-center justify-between rounded-[40px] border-[0.5px] border-color-2 bg-[linear-gradient(156.167deg,rgba(79,172,217,0.5)_0.50145%,rgba(0,0,0,0.5)_144.11%)] pb-[49px] pl-[50px] pt-[50px] lg:h-auto lg:min-h-0 lg:flex-col lg:items-stretch lg:gap-10 lg:px-8 lg:py-10 sm:rounded-[28px] sm:px-6" data-node-id="334:3405">
<div class="flex w-[214px] shrink-0 flex-col items-start gap-[15px] lg:w-full" data-node-id="335:3414">
<a class="flex items-center justify-center py-2.5" href="<?php echo esc_url( home_url( '/' ) ); ?>" aria-label="<?php echo esc_attr__( 'Xmart ETS — Inicio', 'html5blank' ); ?>" data-node-id="333:3173">
<span class="flex items-center gap-0.5">
<?php if ( $xmartica_footer_logo ) : ?>
<img class="block h-[21.0823px] w-[83.4433px] max-w-none" src="<?php echo esc_url( $xmartica_footer_logo ); ?>" alt="Xmart" width="83.4433" height="21.0823" data-node-id="333:3175">
<?php endif; ?>
<span class="flex h-[31.17px] w-[69.52px] items-center justify-center rounded-[20px] bg-color-2 px-2.5 py-[5px]">
<?php if ( $xmartica_footer_ets ) : ?>
<img class="block h-[21.1699px] w-[49.5201px] max-w-none" src="<?php echo esc_url( $xmartica_footer_ets ); ?>" alt="ETS" width="49.5201" height="21.1699" data-node-id="333:3182">
<?php endif; ?>
</span>
</span>
</a>
<p class="m-0 text-base font-semibold leading-normal" data-node-id="333:3191"><?php echo wp_kses_post( __( 'Transformación empresarial<br>y digital.', 'html5blank' ) ); ?></p>
<a class="flex items-center justify-center gap-[5px] text-xs font-semibold text-white no-underline hover:text-color-2" href="<?php echo esc_url( $xmartica_footer_contact_url ); ?>" data-node-id="333:3187">
<span><?php echo esc_html__( 'Contáctanos', 'html5blank' ); ?></span>
<?php if ( $xmartica_footer_contact_arrow ) : ?>
<img class="block h-[15px] w-[15px] max-w-none" src="<?php echo esc_url( $xmartica_footer_contact_arrow ); ?>" alt="" width="15" height="15" aria-hidden="true" data-node-id="333:3189">
<?php endif; ?>
</a>
<div class="text-xs font-light leading-normal" data-node-id="333:3186">
<p class="m-0">© <?php echo esc_html( wp_date( 'Y' ) ); ?> XmartETS</p>
<a class="text-white no-underline hover:text-color-2" href="<?php echo esc_url( $xmartica_footer_privacy ); ?>"><?php echo esc_html__( 'Privacy Policy', 'html5blank' ); ?></a>
</div>
</div>
<nav class="flex w-[669px] max-w-full shrink-0 flex-col items-start justify-center gap-[14px] lg:w-full" aria-label="<?php echo esc_attr__( 'Navegación del footer', 'html5blank' ); ?>" data-node-id="335:3420">
<div class="w-full">
<p class="m-0 bg-gradient-to-r from-color-2 from-[55.769%] to-white bg-clip-text text-[35px] font-semibold leading-[44px] text-transparent lg:text-[30px]">
<?php echo esc_html__( 'Soluciones', 'html5blank' ); ?>
</p>
<ul class="mt-2.5 flex w-full flex-wrap items-center gap-x-2 gap-y-1.5 p-0 pr-8" aria-label="<?php echo esc_attr__( 'Siete áreas de práctica', 'html5blank' ); ?>">
<?php foreach ( $xmartica_footer_service_links as $xmartica_footer_service_link ) : ?>
<li class="m-0 shrink-0 list-none p-0">
<a class="site-footer__solution-link inline-flex min-h-[24px] items-center whitespace-nowrap rounded-full px-3 py-1 text-[11px] font-light leading-[14px] text-white no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white" href="<?php echo esc_url( home_url( $xmartica_footer_service_link['path'] ) ); ?>">
<?php echo esc_html( $xmartica_footer_service_link['label'] ); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php if ( $xmartica_footer_separator ) : ?>
<img class="block h-px w-[518px] max-w-full" src="<?php echo esc_url( $xmartica_footer_separator ); ?>" alt="" width="518" height="1" aria-hidden="true" data-node-id="335:3418">
<?php endif; ?>
</nav>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>