Files
xmarticaims/wp-content/themes/xmartica/footer.php
T
2026-11-02 10:26:32 -06:00

273 lines
20 KiB
PHP

<?php
/**
* Site footer.
*
* @package Xmartica
*/
$xmartica_language = function_exists( 'pll_current_language' )
? pll_current_language( 'slug' )
: 'en';
if ( 'es' === $xmartica_language ) {
require get_theme_file_path( '/footer-es.php' );
return;
}
$xmartica_footer_home_url = wp_make_link_relative( function_exists( 'pll_home_url' ) ? pll_home_url( 'en' ) : home_url( '/' ) );
$xmartica_footer_claim = get_post_meta( get_queried_object_id(), 'footer_claim', true );
$xmartica_footer_is_enterprise = is_page_template( 'page-business-transformation-consulting.php' ) || is_page( 'business-transformation-consulting' );
$xmartica_footer_is_digital = is_page_template( 'page-digital-transformation-consulting.php' ) || is_page( 'digital-transformation-consulting' );
$xmartica_footer_is_process = is_page_template( 'page-process-improvement-consulting.php' ) || is_page( 'process-improvement-consulting' );
$xmartica_footer_is_data = is_page_template( 'page-data-analytics-consulting.php' ) || is_page( 'data-analytics-consulting' );
$xmartica_footer_is_ai = is_page_template( 'page-ai-strategy-consulting.php' ) || is_page( 'ai-strategy-consulting' );
$xmartica_footer_is_change = is_page_template( 'page-change-management-consulting.php' ) || is_page( 'change-management-consulting' );
$xmartica_footer_is_cx = is_page_template( 'page-customer-experience-strategy.php' ) || is_page( 'customer-experience-strategy' );
$xmartica_footer_is_home = is_front_page();
$xmartica_footer_is_industrial = is_page_template( 'page-industrial-technical-services.php' ) || is_page( 'industrial-technical-services' );
$xmartica_footer_is_maintenance = is_page_template( 'page-industrial-maintenance-services.php' ) || is_page( 'industrial-maintenance-services' );
$xmartica_footer_is_reliability = is_page_template( 'page-reliability-engineering.php' ) || is_page( 'reliability-engineering' );
$xmartica_footer_is_asset = is_page_template( 'page-asset-management-services.php' ) || is_page( 'asset-management-services' );
$xmartica_footer_is_repair = is_page_template( 'page-industrial-repair-services.php' ) || is_page( 'industrial-repair-services' );
$xmartica_footer_cta_text = esc_html__( 'Talk to a specialist', 'html5blank' );
if ( ! is_string( $xmartica_footer_claim ) || '' === trim( $xmartica_footer_claim ) ) {
if ( $xmartica_footer_is_home ) {
$xmartica_footer_claim = esc_html__( 'From asset strategy to operational continuity.', 'html5blank' );
} elseif ( $xmartica_footer_is_industrial ) {
$xmartica_footer_claim = esc_html__( 'Industrial technical services that show up when it matters. Field services, equipment testing and technical support in one place.', 'html5blank' );
} elseif ( $xmartica_footer_is_maintenance ) {
$xmartica_footer_claim = esc_html__( 'Industrial maintenance that keeps assets available. Engineering, execution, training and spare parts — one maintenance partner.', 'html5blank' );
} elseif ( $xmartica_footer_is_reliability ) {
$xmartica_footer_claim = esc_html__( 'Reliability that prevents the failure, not just fixes it. Criticality analysis, root cause analysis and reliability-centered maintenance.', 'html5blank' );
} elseif ( $xmartica_footer_is_asset ) {
$xmartica_footer_claim = esc_html__( 'Asset management that proves its value. Strategy, governance, performance and ISO 55001 — in one program.', 'html5blank' );
} elseif ( $xmartica_footer_is_repair ) {
$xmartica_footer_claim = esc_html__( 'Industrial repair that meets specification, not just gets it running. Repair, overhaul, rebuild and refurbishment in one workshop.', 'html5blank' );
} else {
$xmartica_footer_claim = esc_html__( 'Transformation with real execution.', '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__( 'Talk to a business transformation consultant', 'html5blank' );
}
$xmartica_footer_contact_arrow_id = 24;
$xmartica_footer_link_arrow_id = 25;
$xmartica_footer_separator_id = 26;
$xmartica_footer_logo = get_theme_file_uri( '/assets/header/xmart.svg' );
$xmartica_footer_ims = get_theme_file_uri( '/assets/header/ims.svg' );
$xmartica_footer_cta_arrow = get_theme_file_uri( '/assets/header/arrow-forward-sharp.svg' );
$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__( 'Industrial Technical Services', 'html5blank' ),
'path' => '/industrial-technical-services',
),
array(
'label' => esc_html__( 'Industrial Maintenance Services', 'html5blank' ),
'path' => '/industrial-maintenance-services',
),
array(
'label' => esc_html__( 'Reliability Engineering', 'html5blank' ),
'path' => '/reliability-engineering',
),
array(
'label' => esc_html__( 'Asset Management Services', 'html5blank' ),
'path' => '/asset-management-services',
),
array(
'label' => esc_html__( 'Industrial Repair Services', 'html5blank' ),
'path' => '/industrial-repair-services',
),
);
if ( ! $xmartica_footer_privacy ) {
$xmartica_footer_privacy = home_url( '/privacy-policy/' );
}
?>
<footer id="site-footer" class="site-footer site-footer--ims 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:#111d31;" 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_industrial || $xmartica_footer_is_maintenance || $xmartica_footer_is_reliability || $xmartica_footer_is_asset || $xmartica_footer_is_repair || $xmartica_footer_is_home || $xmartica_footer_is_enterprise || $xmartica_footer_is_digital || $xmartica_footer_is_process || $xmartica_footer_is_data || $xmartica_footer_is_ai || $xmartica_footer_is_change || $xmartica_footer_is_cx ) ? '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_home ) : ?>
<span class="block"><?php echo esc_html__( 'From ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'asset strategy', 'html5blank' ); ?></span><?php echo esc_html__( ' to', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'operational continuity.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_industrial ) : ?>
<span class="block"><?php echo esc_html__( 'Industrial technical services that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'show up when it matters', 'html5blank' ); ?></span><?php echo esc_html__( '.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Field services, equipment testing and', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'technical support in one place.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_maintenance ) : ?>
<span class="block"><?php echo esc_html__( 'Industrial maintenance that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'keeps assets available', 'html5blank' ); ?></span><?php echo esc_html__( '.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Engineering, execution, training and spare parts —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'one maintenance partner.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_reliability ) : ?>
<span class="block"><?php echo esc_html__( 'Reliability that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'prevents the failure', 'html5blank' ); ?></span><?php echo esc_html__( ', not just fixes it.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Criticality analysis, root cause analysis and', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'reliability-centered maintenance.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_asset ) : ?>
<span class="block"><?php echo esc_html__( 'Asset management that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'proves its value', 'html5blank' ); ?></span><?php echo esc_html__( '.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Strategy, governance, performance and ISO 55001 —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'in one program.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_repair ) : ?>
<span class="block"><?php echo esc_html__( 'Industrial repair that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'meets specification', 'html5blank' ); ?></span><?php echo esc_html__( ', not just gets it running.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Repair, overhaul, rebuild and refurbishment', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'in one workshop.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_enterprise ) : ?>
<span class="block"><?php echo esc_html__( 'Business transformation that', 'html5blank' ); ?></span>
<span class="block bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'reaches the operating floor.', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'Strategy, operating model and execution —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'designed and delivered together.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_digital ) : ?>
<span class="block">
<?php echo esc_html__( 'Digital transformation that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'reaches production.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Strategy, architecture and adoption —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'designed and delivered together.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_process ) : ?>
<span class="block">
<?php echo esc_html__( 'Process improvement that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'compounds.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Faster workflows, fewer manual handoffs,', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'and performance that holds.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_data ) : ?>
<span class="block">
<?php echo esc_html__( 'Data that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'drives decisions', 'html5blank' ); ?></span><?php echo esc_html__( ', not just dashboards.', 'html5blank' ); ?>
</span>
<span class="block"><?php echo esc_html__( 'Strategy, governance and analytics —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'built to be used.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_ai ) : ?>
<span class="block">
<?php echo esc_html__( 'AI that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'earns trust', 'html5blank' ); ?></span><?php echo esc_html__( ', not just attention.', 'html5blank' ); ?>
</span>
<span class="block"><?php echo esc_html__( 'Strategy, governance and implementation —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'designed together.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_change ) : ?>
<span class="block">
<?php echo esc_html__( 'Change that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'sticks', 'html5blank' ); ?></span><?php echo esc_html__( ', not just launches.', 'html5blank' ); ?>
</span>
<span class="block"><?php echo esc_html__( 'Readiness, adoption and leadership alignment —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'built into the rollout.', 'html5blank' ); ?></span>
<?php elseif ( $xmartica_footer_is_cx ) : ?>
<span class="block">
<?php echo esc_html__( 'Customer experience that ', 'html5blank' ); ?><span class="bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-transparent"><?php echo esc_html__( 'earns loyalty.', 'html5blank' ); ?></span>
</span>
<span class="block"><?php echo esc_html__( 'Journey, commercial model and execution —', 'html5blank' ); ?></span>
<span class="block"><?php echo esc_html__( 'designed together.', '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-[#ffcd11] to-[#fff3a7] 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-[#ffcd11] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[#ffcd11]" 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-[#ffcd11]" 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-[#ffcd11] bg-[linear-gradient(108deg,rgba(255,205,17,0.5)_0%,rgba(14,28,47,0.64)_100%)] 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( $xmartica_footer_home_url ); ?>" aria-label="<?php echo esc_attr__( 'XmartIMS — Home', '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.42px] w-[70.246px] items-center justify-center rounded-[20px] bg-[#ffcd11] px-2.5 py-[5px]">
<?php if ( $xmartica_footer_ims ) : ?>
<img class="block h-[21.42px] w-[50.246px] max-w-none" src="<?php echo esc_url( $xmartica_footer_ims ); ?>" alt="IMS" width="50.246" height="21.42" 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( __( 'Business and digital<br>transformation.', 'html5blank' ) ); ?></p>
<a class="flex items-center justify-center gap-[5px] text-xs font-semibold text-white no-underline hover:text-[#fff3a7]" href="<?php echo esc_url( $xmartica_footer_contact_url ); ?>" data-node-id="333:3187">
<span><?php echo esc_html__( 'Contact us', '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-[#fff3a7]" 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__( 'Footer navigation', 'html5blank' ); ?>" data-node-id="335:3420">
<div class="w-full">
<p class="m-0 bg-gradient-to-r from-[#ffcd11] to-[#fff3a7] bg-clip-text text-[35px] font-semibold leading-[44px] text-transparent lg:text-[30px]">
<?php echo esc_html__( 'Solutions', '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__( 'Five service areas', '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>
<style>
.site-footer--ims .site-footer__solution-link::before {
background: linear-gradient(90deg, #ffcd11 0%, rgba(255, 205, 17, 0.48) 52%, rgba(255, 255, 255, 0.85) 100%);
}
.site-footer--ims .site-footer__solution-link:hover {
background-color: rgba(255, 205, 17, 0.16);
box-shadow: 0 0 18px rgba(255, 205, 17, 0.16);
}
</style>
<?php wp_footer(); ?>
</body>
</html>