-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
63 lines (62 loc) · 2.15 KB
/
index.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
<?php get_header(); ?>
<?php wp_head(); ?>
<!-- main content -->
<div class="main-content grid_16">
<div class="grid_11 alpha primary news">
<!-- single post in primary news -->
<div class="post-list primary">
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li class="post-item">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="date-info">
<p>
<span class="week-day"><?php the_time('D') ?></span>
<span class="day"><?php the_time('d') ?></span>
<span class="month"><?php the_time('M') ?></span>
</p>
</div>
<?php if(has_post_thumbnail()) : ?>
<a class="image-link" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail( array('width'=> 115, 'height' => 122) ); ?>
</a>
<?php endif; ?>
<div class="content">
<?php the_excerpt(); ?>
</div>
<ul class="taxonomies horizontal-list">
<li class="categories">
<h4><span>Categories</span></h4>
<div class="taxonomy">
<?php the_category(); ?>
</div>
</li>
<?php if(has_tag()) : ?>
<li class="tags">
<h4><span>Tags</span></h4>
<ul class="taxonomy">
<?php
echo get_the_tag_list('<li>','','</li>');
?>
</ul>
</li>
<?php endif; ?>
</ul>
</li>
<?php endwhile; ?>
<?php wp_reset_postdata();?>
</ul>
</div>
<!-- end of single post in primary news -->
</div>
<!-- sidebar -->
<?php get_sidebar(); ?>
<!-- end sidebar -->
<!-- end main content -->
</div>
<div class="clear"></div>
<?php get_footer(); ?>
</div>
<?php wp_footer(); ?>
</body>
</html>