-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsingle-product.php
53 lines (46 loc) · 1.22 KB
/
single-product.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The Single page of Mynote theme.
*
* @author Terry Lin
* @link https://terryl.in/
*
* @package WordPress
* @subpackage Mynote
* @since 1.0.0
* @version 1.6.3
*/
get_header();
?>
<div class="data-schema is-single" itemscope itemtype="<?php mynote_article_schema(); ?>">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<div class="single-post-header">
<div class="container">
<h1 id="post-title" itemprop="headline"><?php the_title(); ?></h1>
<div class="post-mynote-buttons">
<?php mynote_edit_button(); ?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div class="container">
<div class="row row-layout-choice-post">
<main id="main-container" class="col-lg-12 col-md-12 col-sm-12" role="main">
<?php woocommerce_content(); ?>
</main>
</div>
<?php
the_post_navigation(
array(
'prev_text' => '<i class="fas fa-angle-left"></i> <span class="screen-reader-text">' . __( 'Previous Post', 'mynote' ) . '</span> %title',
'next_text' => '<i class="fas fa-angle-right"></i> <span class="screen-reader-text">' . __( 'Next Post', 'mynote' ) . '</span> %title',
)
);
?>
</div>
</div>
<?php
get_footer();