forked from kunalkushwaha/WPMedium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-archive.php
25 lines (22 loc) · 1.12 KB
/
content-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
<?php
$class = '';
if ( is_sticky() && !is_paged() ) $class .= 'sticky';
if ( ! has_post_thumbnail() && ! wpmedium_o( 'use_post_thumbnail' ) ) $class .= ' no-thumbnail'; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $class ); ?>>
<header class="entry-header">
<div class="entry-header-image">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php wpmedium_the_post_thumbnail( null, 'medium-featured-image' ); ?></a>
</div>
<h1 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'wpmedium' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php ( is_sticky() ? wpmedium_the_long_excerpt( get_the_content() ) : the_excerpt() ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<div class="wrap">
<?php wpmedium_post_entry_meta(); ?>
</div>
</footer><!-- .entry-meta -->
</article>