-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharchive.php
35 lines (30 loc) · 1.16 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
<?php get_header();?>
<div class="mdl-grid site-width">
<div id="primary" class="lv mdl-cell mdl-cell--12-col">
<div id="content">
<?php if ( is_author() ) :?>
<div class="mdl-card card-mid mdl-shadow--2dp bio">
<div class="border mdl-shadow--3dp">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 96); // 包裹一层,避免阴影跟随旋转 ?>
</div>
<div class="author-info">
<span class="mdl-color--green-100"><?php the_author();?></span>
<small class="mdl-color--light-blue-100"><?php the_author_meta( 'description' );?></small>
</div>
</div>
<h1><?php printf(__('%s的文章:', 'alnico'), get_the_author());?></h1>
<?php else:?>
<?php the_archive_title('<h1>', '</h1>');?>
<?php endif;?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post();?>
<?php get_template_part( 'card', get_post_format() );?>
<?php endwhile;?>
<?php alnico_page_nav();?>
<?php else : ?>
<?php //get_template_part( 'content', 'none' );?>
<?php endif;?>
</div>
</div>
</div>
<?php get_footer();?>