chore: import MING theme source
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* Page template.
|
||||
*
|
||||
* @package MING
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
||||
// WooCommerce 頁面(購物車 / 結帳 / 我的帳戶)需要完整寬度。
|
||||
$ming_wide = function_exists( 'is_account_page' )
|
||||
&& ( is_account_page() || is_cart() || is_checkout() || is_wc_endpoint_url() );
|
||||
$ming_wrap_style = $ming_wide ? '' : ' style="max-width:46em"';
|
||||
?>
|
||||
|
||||
<main class="section">
|
||||
<div class="wrap"<?php echo $ming_wrap_style; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
?>
|
||||
<article <?php post_class(); ?>>
|
||||
<p class="eyebrow">MING</p>
|
||||
<h2 class="h2"><?php the_title(); ?></h2>
|
||||
<div class="entry-content" style="margin-top:2.5rem">
|
||||
<?php
|
||||
the_content();
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links">' . esc_html__( '頁面:', 'ming' ),
|
||||
'after' => '</div>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</article>
|
||||
<?php
|
||||
if ( comments_open() || get_comments_number() ) {
|
||||
comments_template();
|
||||
}
|
||||
endwhile;
|
||||
?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
Reference in New Issue
Block a user