forked from librewiki/liberty-skin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
70 lines (66 loc) · 2.05 KB
/
single.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* Liberty theme single page template.
*
* @package Liberty
* @since 1.0.0
*/
?>
<?php get_header(); ?>
<body <?php body_class(); ?>>
<div class="Liberty">
<?php get_template_part( 'template/navbar' ); ?>
<section>
<div class="content-wrapper">
<?php get_template_part( 'template/sidebar' ); ?>
<div class="container-fluid liberty-content">
<div class="liberty-content-header liberty-content-header-single">
<div class="alert alert-dismissible fade in alert-info liberty-notice" role="alert">
<?php bloginfo( 'description' ); ?>
</div>
<div class="content-tools">
<div class="btn-group" role="group" aria-label="content-tools">
<button type="button" class="btn btn-secondary tools-btn tools-share">
<i class="fas fa-share-alt"></i> 공유
</button>
</div>
</div>
<div class="title">
<a href=<?php the_permalink(); ?>>
<h1>
<?php the_title(); ?>
</h1>
</a>
</div>
</div>
<div class="liberty-content-main liberty-content-main-single">
<div class="reading_time">
<span class="reading-time-number"><i class="fas fa-book-reader"></i> 읽는데 <?php echo do_shortcode( '[rt_reading_time]' ); ?>분 정도 걸려요</span>
</div>
<div class="written_time">
<i class="far fa-clock"></i> <?php the_date( 'Y년 F j일' ); ?> <?php the_time( 'a g:i에 작성됨.' ); ?>
</div>
<div id="catlinks" class="catlinks">
<span id="catlinks-header">카테고리 : </span>
<span id="catlinks-cat">
<?php the_category( ' | ' ); ?>
</span>
</div>
<article class="content">
<?php the_content(); ?>
</article>
</div>
<?php get_footer(); ?>
<?php get_template_part( 'template/nav-button' ); ?>
</div>
</div>
</section>
</div>
<?php wp_footer(); ?>
<script>
var page_title = '<?php the_title(); ?>';
var blog_name = '<?php bloginfo( 'name' ); ?>';
var page_link = '<?php the_permalink(); ?>';
</script>
</body>
</html>