feat: initial commit - 汽车贴膜门店 WordPress 主题 (B2B Trade v2.0.0)
- WordPress classic theme for car tinting/foil shop - 13 homepage template parts - Customizer panel with 13 sections - RFQ inquiry form handler - Bootstrap 5.3 + AOS + Colorbox frontend - 13 SVG placeholder images - Chinese content defaults
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Single service template.
|
||||
*
|
||||
* @package Fragrance_Trade
|
||||
*/
|
||||
get_header();
|
||||
?>
|
||||
<main id="primary" class="site-main">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<?php
|
||||
$image = get_post_meta( get_the_ID(), '_service_image', true );
|
||||
$img = $image ? $image : fragrance_trade_asset_uri( 'products/placeholder-01.svg' );
|
||||
?>
|
||||
<article class="container py-5">
|
||||
<nav class="breadcrumb-nav mb-4" aria-label="<?php esc_attr_e( '面包屑', 'fragrance-trade' ); ?>">
|
||||
<a href="<?php echo esc_url( home_url( '/services/' ) ); ?>"><?php esc_html_e( '服务项目', 'fragrance-trade' ); ?></a>
|
||||
<span aria-hidden="true"> / </span>
|
||||
<span><?php the_title(); ?></span>
|
||||
</nav>
|
||||
<div class="row g-5 align-items-center">
|
||||
<div class="col-lg-6">
|
||||
<img src="<?php echo esc_url( $img ); ?>" alt="<?php the_title_attribute(); ?>" class="img-fluid rounded">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<div class="service-content"><?php the_content(); ?></div>
|
||||
<a href="<?php echo esc_url( home_url( '/contact/?service=' . rawurlencode( get_the_title() ) ) ); ?>" class="btn btn-b2b-primary mt-3"><?php esc_html_e( '预约这项服务', 'fragrance-trade' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
</main>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user