<?php
/** Site footer. @package Fragrance_Trade */
$fragrance_social_links = array(
	'facebook_url' => __( 'Facebook', 'fragrance-trade' ), 'twitter_url' => __( 'X / Twitter', 'fragrance-trade' ),
	'youtube_url' => __( 'YouTube', 'fragrance-trade' ), 'linkedin_url' => __( 'LinkedIn', 'fragrance-trade' ),
	'instagram_social_url' => __( 'Instagram', 'fragrance-trade' ),
);
$fragrance_email = fragrance_trade_inquiry_email();
$fragrance_whatsapp = fragrance_trade_whatsapp_number();
?>
<footer class="site-footer b2b-footer">
	<div class="container py-5">
		<div class="row g-5">
			<div class="col-lg-5">
				<h2 class="h3 text-white mb-3"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></h2>
				<p class="footer-positioning"><?php echo esc_html( fragrance_trade_get_mod( 'footer_text' ) ); ?></p>
				<p class="footer-kicker mb-0"><?php esc_html_e( '汽车贴膜 · 专业施工 · 门店服务', 'fragrance-trade' ); ?></p>
			</div>
			<div class="col-sm-6 col-lg-3">
				<h2 class="h6 text-uppercase text-white mb-3"><?php esc_html_e( '快速导航', 'fragrance-trade' ); ?></h2>
				<ul class="list-unstyled footer-links">
					<li><a href="<?php echo esc_url( home_url( '/services/' ) ); ?>"><?php esc_html_e( '服务项目', 'fragrance-trade' ); ?></a></li>
					<li><a href="<?php echo esc_url( home_url( '/cases/' ) ); ?>"><?php esc_html_e( '案例作品', 'fragrance-trade' ); ?></a></li>
					<li><a href="<?php echo esc_url( home_url( '/about/' ) ); ?>"><?php esc_html_e( '关于门店', 'fragrance-trade' ); ?></a></li>
					<li><a href="<?php echo esc_url( home_url( '/contact/' ) ); ?>"><?php esc_html_e( '预约/联系', 'fragrance-trade' ); ?></a></li>
				</ul>
			</div>
			<div class="col-sm-6 col-lg-4">
				<h2 class="h6 text-uppercase text-white mb-3"><?php esc_html_e( '开始合作', 'fragrance-trade' ); ?></h2>
				<p><a href="mailto:<?php echo esc_attr( antispambot( $fragrance_email ) ); ?>"><?php echo esc_html( antispambot( $fragrance_email ) ); ?></a></p>
				<?php if ( $fragrance_whatsapp ) : ?><p><a href="<?php echo esc_url( fragrance_trade_get_inquiry_url() ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( '通过 WhatsApp 联系我们', 'fragrance-trade' ); ?></a></p><?php endif; ?>
				<ul class="list-unstyled d-flex flex-wrap gap-3 footer-social mb-0">
					<?php foreach ( $fragrance_social_links as $setting => $label ) : $url = fragrance_trade_get_mod( $setting, '' ); if ( $url ) : ?>
						<li><a href="<?php echo esc_url( $url ); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html( $label ); ?></a></li>
					<?php endif; endforeach; ?>
				</ul>
			</div>
		</div>
		<div class="footer-bottom d-flex flex-wrap justify-content-between gap-2 pt-4 mt-4 border-top">
			<p class="mb-0">&copy; <?php echo esc_html( wp_date( 'Y' ) ); ?> <?php echo esc_html( get_bloginfo( 'name' ) ); ?></p>
			<p class="mb-0"><?php esc_html_e( '具体服务内容与价格以到店确认为准。', 'fragrance-trade' ); ?></p>
		</div>
	</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>
