-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
80 lines (76 loc) · 2.64 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
71
72
73
74
75
76
77
78
79
80
<?php
/**
* The sigle template file.
*
*/
get_header("site");
?>
<div id="post-<?php the_ID(); ?>" <?php post_class("clear"); ?>>
<div class="site-main">
<div class="main-content">
<div class="content-area">
<div class="site-content" role="main">
<header class="archive-header">
<h1 class="archive-title"><?php onetone_get_breadcrumb();?></h1>
</header>
<article class="post-entry">
<div class="entry-main">
<?php if (have_posts()) :?>
<?php
while ( have_posts() ) : the_post();
?>
<div class="entry-header">
<h1 class="entry-title"><?php the_title();?></h1>
<div class="entry-meta"> <span class="entry-date-sub"><?php echo get_the_time("M d, Y"); ?></span> <span class="entry-category"><?php _e("Categories","onetone");?> : <?php the_category(', '); ?></span> <span class="entry-author"><?php _e("Author","onetone");?>: <?php echo get_the_author_link();?></span> <span class="entry-comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', '');?></span> </div>
</div>
<div class="entry-content">
<!--post content-->
<?php the_content();?>
<!--post econtent end-->
</div>
<?php endwhile;?>
<?php endif;?>
</div>
<div class="entry-aside">
<div class="entry-meta">
<?php
$archive_year = get_the_time('Y');
$archive_month = get_the_time('M');
$archive_day = get_the_time('d');
?>
<div class="entry-date"><?php echo $archive_year;?><br />
<?php echo $archive_month;?>, <?php echo $archive_day;?></div>
<div class="entry-tags">
<?php
if(get_the_tag_list()) {
echo get_the_tag_list('<ul><li>','</li><li>','</li></ul>');
}
?>
</div>
</div>
</div>
</article>
<nav class="post-navigation"> </nav>
<div class="comments-area">
<?php
wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'onetone' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
echo '<div class="comment-wrapper">';
comments_template();
echo '</div>';
?>
<!--comment-respond end-->
</div>
<!--comments-area end-->
</div>
</div>
</div>
<!--main-->
<div class="sidebar">
<div class="widget-area">
<?php dynamic_sidebar(1) ;?>
</div>
</div>
<!--sidebar-->
</div>
</div>
<?php get_footer("site"); ?>