-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patharchive.php
executable file
·77 lines (71 loc) · 2.58 KB
/
archive.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
<?php
/**
* The blog list template file.
*
*/
get_header("site");
?>
<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>
<?php if (have_posts()) :?>
<?php while ( have_posts() ) : the_post();
?>
<article class="post-entry">
<div class="entry-main">
<div class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
<div class="entry-meta">
<span class="entry-date-sub"><a href="<?php echo get_day_link('', '', ''); ?>"><?php echo get_the_date("M d, Y");?></a></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"><a href="<?php the_permalink();?>#comments"><?php comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', '');?></a></span>
</div>
</div>
<div class="entry-content">
<?php if ( has_post_thumbnail() ) {the_post_thumbnail();} ?>
<?php the_excerpt();?>
</div>
<div class="entry-footer">
<div class="entry-meta">
<span class="entry-more"><a href="<?php the_permalink();?>">>><?php _e("Read More","onetone");?></a></span>
</div>
</div>
</div>
<div class="entry-aside">
<div class="entry-meta">
<div class="entry-date">
<?php
$archive_year = get_the_time('Y');
$archive_month = get_the_time('M');
$archive_day = get_the_time('d');
?>
<?php echo $archive_year;?><br />
<?php echo $archive_month;?>, <?php echo $archive_day;?>
</div>
</div>
</div>
</article>
<?php endwhile;?>
<?php endif;?>
<nav class="paging-navigation">
<div class="loop-pagination">
<?php if(function_exists("onetone_native_pagenavi")){onetone_native_pagenavi("echo",$wp_query);}?>
</div>
</nav>
</div>
</div>
</div>
<!--main-->
<div class="sidebar">
<div class="widget-area">
<?php dynamic_sidebar("default_sidebar") ;?>
</div>
</div>
<!--sidebar-->
</div>
<?php get_footer("site"); ?>