-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry-summary.php
More file actions
35 lines (35 loc) · 1.42 KB
/
entry-summary.php
File metadata and controls
35 lines (35 loc) · 1.42 KB
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
<div id="post-number-<?php echo $wp_query->currentpost+1;?>" class="entry-summary preview
<?php if ( ($wp_query->current_post +1 ) % 2 === 0) : ?> preview--even<?php endif; ?>
<?php if ( ($wp_query->current_post +1 ) % 2 === 1) : ?> preview--odd<?php endif; ?>">
<?php if ( has_post_thumbnail() ) : ?>
<div style="background-image: url('<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ),'full', false ); echo $src[0] ?>')"
class="preview__image--big">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<div class="preview__image-placeholder"></div>
</a>
<?php endif; ?>
</div>
<div class="preview__column">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<div class="preview__text-block ">
<div class= "preview__text-block--fade ">
<h2 class="fade-letters"><?php the_title_attribute(); ?></h2>
<p><?php the_excerpt(); ?>
</p>
</div>
</div>
</a>
<div class="preview__image--small">
<?php if ( has_post_thumbnail() ) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php
if (class_exists('MultiPostThumbnails')) :
MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image');
echo the_post_thumbnail();
endif;
?>
</a>
<?php endif; ?>
</div>
</div>
</div>