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 case template.
|
||||
*
|
||||
* @package Fragrance_Trade
|
||||
*/
|
||||
get_header();
|
||||
?>
|
||||
<main id="primary" class="site-main">
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<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( '/cases/' ) ); ?>"><?php esc_html_e( '案例作品', 'fragrance-trade' ); ?></a>
|
||||
<span aria-hidden="true"> / </span>
|
||||
<span><?php the_title(); ?></span>
|
||||
</nav>
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<div class="mb-4"><?php the_post_thumbnail( 'large', array( 'class' => 'img-fluid rounded' ) ); ?></div>
|
||||
<?php endif; ?>
|
||||
<header class="mb-4">
|
||||
<h1><?php the_title(); ?></h1>
|
||||
<?php
|
||||
$types = get_the_terms( get_the_ID(), 'case_type' );
|
||||
if ( $types && ! is_wp_error( $types ) ) :
|
||||
?>
|
||||
<p class="case-types"><?php echo esc_html( implode( ', ', wp_list_pluck( $types, 'name' ) ) ); ?></p>
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
<div class="case-content"><?php the_content(); ?></div>
|
||||
<a href="<?php echo esc_url( home_url( '/contact/' ) ); ?>" class="btn btn-b2b-primary mt-3"><?php esc_html_e( '预约同款施工', 'fragrance-trade' ); ?></a>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
</main>
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user