-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-archive.php
executable file
·42 lines (26 loc) · 1.17 KB
/
loop-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
<?php if ( is_post_type_archive('person') ): ?>
<?php if ( '' != trim(C::get_person_gravatar_raw()) ):
/*
This will only display People with $gravatar images.
*/
?>
<div class="person promo">
<div class="avatar"><a href="<?php the_permalink(); ?>"><?php echo C::get_person_gravatar(175); ?></a></div>
<div class="name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
</div>
<?php else: ?>
<div class="person promo character-break">
<div class="avatar"><a href="<?php the_permalink(); ?>"><?php echo C::get_person_gravatar(175); ?></a></div>
<div class="name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
</div>
<?php endif; ?>
<?php else: ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php get_the_image( array( 'size' => 'thumbnail' ) ); ?>
<?php do_atomic( 'before_entry' ); // hybrid_before_entry ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php do_atomic( 'after_entry' ); // hybrid_after_entry ?>
</div><!-- .hentry -->
<?php endif; ?>