-
Notifications
You must be signed in to change notification settings - Fork 5
/
page-comments.php
24 lines (23 loc) · 967 Bytes
/
page-comments.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
<?php
/*
Template Name: 留言墙
*/
get_header();?>
<link rel='stylesheet' id='comments-css' href='<?php echo get_template_directory_uri().'/style/css/comments.css'?>' type='text/css' media='all' />
<main class="site-content container">
<article class="post-content">
<div class="post-header">
<h1 class="post-title"><?php the_title(); ?></h1>
</div>
<div class="post-main">
<?php while( have_posts() ): the_post(); ?>
<?php the_content();?>
<?php endwhile; ?>
</div>
</article>
<?php if ( comments_open() || get_comments_number() ) :?>
<?php comments_template();?>
<?php endif;?>
</main>
<script>hljs.initHighlightingOnLoad();hljs.initLineNumbersOnLoad();function highlightjs(){$("code.hljs").each(function(i,block){hljs.lineNumbersBlock(block)})}document.addEventListener("highlightjs",highlightjs,false);</script>
<?php get_footer();