forked from seoagentur-hamburg/techbrain.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-list.php
28 lines (27 loc) · 1.03 KB
/
content-list.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
<?php
/**
* @package Graphy
*/
?>
<div class="post-grid post-grid-list">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( has_post_thumbnail() ): ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'graphy-post-thumbnail-medium' ); ?></a>
</div><!-- .post-thumbnail -->
<?php endif; ?>
<div class="post-list-content">
<header class="entry-header">
<?php if ( is_sticky() && is_home() && ! is_paged() ): ?>
<div class="featured"><?php esc_html_e( 'Featured', 'graphy' ); ?></div>
<?php endif; ?>
<?php graphy_category(); ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php graphy_entry_meta(); ?>
</header><!-- .entry-header -->
<div class="entry-summary">
<p><?php echo graphy_shorten_text( get_the_excerpt(), 160 ); ?></p>
</div><!-- .entry-summary -->
</div><!-- .post-list-content -->
</article><!-- #post-## -->
</div><!-- .post-list -->