-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.php
35 lines (35 loc) · 1.07 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
<?php
get_header();
?>
<div class="main">
<div class="top">
<h1><?php echo get_bloginfo('name');?><small><?php echo get_bloginfo('description');?></small></h1>
</div>
<div class="photography">
<div class="pic_list">
</div>
</div>
<div class="posts">
<?php if (have_posts()) :
$i = 1;
while (have_posts()) :
$i++;
the_post();?>
<article class="article <?php if($i%2 != 0){ echo 'odd';}?>">
<a href="<?php the_permalink();?>"><div class="article-thumb">
<?php dysis_post_thumbnail();?>
<img class="post_thumbmail" data-original="<?php echo $thumb;?>" />
</div></a>
<div class="article-content">
<?php the_title( sprintf( '<a href="%s" rel="bookmark"><h1>', esc_url( get_permalink() ) ), '</h1></a>' );?>
<p class="small"><em><span class="icon icon-calendar"></span> <?php the_time('Y-m-d H:i') ?></em></p>
<?php the_excerpt();?>
<a href="<?php the_permalink();?>" class="more-link">阅读全文</a>
</div>
</article>
<?php endwhile; ?>
<?php dysis_posts_pagination(); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer();?>