-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.php
96 lines (76 loc) · 2.75 KB
/
tag.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/*
* this is tag.
*
* @package conveythought
*/
get_header(); ?>
<!--main-->
<div id="main" class="col-md-9 col-sm-8 col-xs-12">
<!-- page title -->
<h1 class="post-title"><?php single_tag_title(''); ?></h1>
<!-- //page title -->
<?php if (have_posts()) ://loop start ?>
<!-- post-wrap -->
<div class="post-wrap">
<?php while (have_posts()) : the_post(); ?>
<!-- section -->
<article <?php post_class('post section row'); ?>>
<!-- archive-thumbnailtime -->
<div class="archive-thumbnailtime col-md-2 col-sm-2 col-xs-3">
<div class="time-img">
<p><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<span class="thumbnail-day"><?php echo get_post_time('d'); ?></span>
<span class="thumbnail-date"><?php echo get_post_time('Y.m'); ?></span>
</p></a>
</div>
</div>
<!-- //archive-thumbnailtime -->
<?php if(has_post_thumbnail()){ //If it have a thumbnail?>
<!-- archive-post -->
<div class="archive-post col-md-7 col-sm-7 col-xs-9">
<header class="entry-header">
<h1 class="archive-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
</header>
<div class="entry-content clearfix">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_excerpt(); ?></a>
</div><!--entry-content-->
<footer>
<?php get_template_part( 'parts/parts', 'tag_category' ); ?>
</footer>
</div>
<!-- archive_post -->
<?php
//archive-thumbnail
echo '<div class="archive-thumbnail col-md-3 col-sm-3 col-xs-12"><div class="mini-img"><a href="';
echo the_permalink();
echo '">';
the_post_thumbnail( 'list-thumbnail' );
echo '</a></div></div>';
//archive-thumbnail end
}else{ ?>
<!-- archive-post -->
<div class="archive-post col-md-10 col-sm-10 col-xs-9">
<header class="entry-header">
<h1 class="archive-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
</header>
<div class="entry-content clearfix">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_excerpt(); ?></a>
</div><!--entry-content-->
<footer>
<?php get_template_part( 'parts/parts', 'tag_category' ); ?>
</footer>
</div>
<!-- archive_post -->
<?php } ?>
</article>
<!--section-->
<?php endwhile; ?>
</div>
<!-- post-wrap -->
<?php endif;//loop end ?>
<?php the_posts_pagination();//pager ?>
</div>
<!-- main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>