<?php
/** Factory tour video. @package Fragrance_Trade */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! fragrance_trade_show_section( 'b2b_show_video' ) ) { return; }
$url = fragrance_trade_get_mod( 'b2b_video_url', '' );
?>
<section class="factory-video-section">
	<div class="container"><div class="factory-video-card"><img src="<?php echo esc_url( fragrance_trade_image_uri( 'b2b_video_image', 'placeholder-video.svg' ) ); ?>" alt="<?php esc_attr_e( '汽车贴膜施工流程示意图', 'fragrance-trade' ); ?>" width="1600" height="899" loading="lazy" decoding="async"><div class="factory-video-overlay"><p class="section-eyebrow"><?php esc_html_e( '施工流程', 'fragrance-trade' ); ?></p><h2><?php echo esc_html( fragrance_trade_get_mod( 'b2b_video_title' ) ); ?></h2><p><?php echo esc_html( fragrance_trade_get_mod( 'b2b_video_text' ) ); ?></p><p class="factory-video-disclosure"><?php esc_html_e( '页面图片为流程示意；门店实拍内容以实际上传为准。', 'fragrance-trade' ); ?></p><?php if ( $url ) : ?><a class="video-play-link" href="<?php echo esc_url( $url ); ?>" target="_blank" rel="noopener noreferrer"><svg width="26" height="30" aria-hidden="true"><use href="#play"></use></svg><span><?php esc_html_e( '观看门店视频', 'fragrance-trade' ); ?></span></a><?php else : ?><a class="btn btn-b2b-light" href="<?php echo esc_url( home_url( '/contact/' ) ); ?>"><?php esc_html_e( '联系门店查看实拍', 'fragrance-trade' ); ?></a><?php endif; ?></div></div></div>
</section>
